lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 31 Aug 2022 21:42:19 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Yu Zhao <yuzhao@...gle.com>
CC:     <lkp@...ts.01.org>, <lkp@...el.com>, <iommu@...ts.linux.dev>,
        "Christoph Hellwig" <hch@...radead.org>,
        Marek Szyprowski <m.szyprowski@...sung.com>,
        Robin Murphy <robin.murphy@....com>,
        Dongli Zhang <dongli.zhang@...cle.com>,
        <linux-kernel@...r.kernel.org>, Yu Zhao <yuzhao@...gle.com>
Subject: [swiotlb]  b253fbc6b9:
 WARNING:at_kernel/dma/direct.h:#dma_direct_map_page


Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: b253fbc6b9640aeebffc73d72bf0177c2a1ede1e ("[PATCH] Revert "swiotlb: panic if nslabs is too small"")
url: https://github.com/intel-lab-lkp/linux/commits/Yu-Zhao/Revert-swiotlb-panic-if-nslabs-is-too-small/20220830-073123
patch link: https://lore.kernel.org/lkml/20220829232934.3277747-1-yuzhao@google.com

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[    5.008908][    T1] ------------[ cut here ]------------
[    5.009988][    T1] e1000 0000:00:03.0: DMA addr 0x000000010036f8c0+1522 overflow (mask ffffffff, bus limit 0).
[    5.011794][    T1] WARNING: CPU: 0 PID: 1 at kernel/dma/direct.h:103 dma_direct_map_page+0x1a5/0x1d0
[    5.013544][    T1] Modules linked in:
[    5.014406][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.0.0-rc2-00055-gb253fbc6b964 #1
[    5.015977][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[    5.017844][    T1] RIP: 0010:dma_direct_map_page+0x1a5/0x1d0
[    5.018945][    T1] Code: 4d 8b 34 24 4c 89 e7 e8 f9 4d 26 00 49 89 d9 4d 89 e8 4c 89 f2 55 48 89 c6 48 c7 c7 b8 b4 ae 81 48 8d 4c 24 10 e8 57 5f 43 00 <0f> 0b 58 48 c7 c0 ff ff ff ff e9 e1 fe ff ff 48 89 e8 48 2b 41 18
[    5.022279][    T1] RSP: 0000:ffffc90000013ca8 EFLAGS: 00010286
[    5.023430][    T1] RAX: 0000000000000000 RBX: 00000000ffffffff RCX: ffffffff81fe1bc8
[    5.024926][    T1] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000003
[    5.026458][    T1] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000019
[    5.027939][    T1] R10: 33303a30303a3030 R11: 3030203030303165 R12: ffff8881001480b0
[    5.029449][    T1] R13: 00000000000005f2 R14: ffff88810023b140 R15: ffff8881001480b0
[    5.030894][    T1] FS:  0000000000000000(0000) GS:ffffffff81c53000(0000) knlGS:0000000000000000
[    5.032596][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    5.033901][    T1] CR2: ffff88843ffff000 CR3: 0000000001c1e000 CR4: 00000000000406f0
[    5.035415][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    5.036850][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    5.038427][    T1] Call Trace:
[    5.039111][    T1]  <TASK>
[    5.039749][    T1]  e1000_alloc_rx_buffers+0x141/0x3a0
[    5.040721][    T1]  e1000_configure+0x10b/0x120
[    5.041601][    T1]  e1000_open+0xb8/0x190
[    5.042413][    T1]  __dev_open+0xd3/0x180
[    5.043284][    T1]  __dev_change_flags+0x198/0x210
[    5.044254][    T1]  ? __dev_notify_flags+0x53/0xe0
[    5.045181][    T1]  dev_change_flags+0x1c/0x60
[    5.046084][    T1]  ic_open_devs+0xe1/0x2a0
[    5.046956][    T1]  ip_auto_config+0x155/0x4c2
[    5.047875][    T1]  ? root_nfs_parse_addr+0x9d/0x9d
[    5.048795][    T1]  do_one_initcall+0x46/0x190
[    5.049684][    T1]  do_initcalls+0x11a/0x13b
[    5.050542][    T1]  kernel_init_freeable+0xa3/0xd4
[    5.051458][    T1]  ? rest_init+0xa0/0xa0
[    5.052313][    T1]  kernel_init+0x11/0x110
[    5.053188][    T1]  ret_from_fork+0x22/0x30
[    5.054073][    T1]  </TASK>
[    5.054697][    T1] ---[ end trace 0000000000000000 ]---



To reproduce:

        # build kernel
	cd linux
	cp config-6.0.0-rc2-00055-gb253fbc6b964 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-6.0.0-rc2-00055-gb253fbc6b964" of type "text/plain" (73312 bytes)

View attachment "job-script" of type "text/plain" (4832 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (10692 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ