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]
Message-ID: <20201215093448.GK67148@shao2-debian>
Date:   Tue, 15 Dec 2020 17:34:49 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     vjitta@...eaurora.org
Cc:     0day robot <lkp@...el.com>, Minchan Kim <minchan@...nel.org>,
        Vijayanand Jitta <vjitta@...eaurora.org>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        vincenzo.frascino@....com, glider@...gle.com,
        dan.j.williams@...el.com, broonie@...nel.org, mhiramat@...nel.org,
        akpm@...ux-foundation.org, andreyknvl@...gle.com, qcai@...hat.com,
        ylal@...eaurora.org, vinmenon@...eaurora.org
Subject: [lib] 1333d0ba67:
 WARNING:at_kernel/locking/lockdep.c:#lockdep_register_key

Greeting,

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

commit: 1333d0ba67aa139cd33d20039e3a1dd9c79ec546 ("[PATCH v3] lib: stackdepot: Add support to configure STACK_HASH_SIZE")
url: https://github.com/0day-ci/linux/commits/vjitta-codeaurora-org/lib-stackdepot-Add-support-to-configure-STACK_HASH_SIZE/20201210-130554
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git a2f5ea9e314ba6778f885c805c921e9362ec0420

in testcase: locktorture
version: 
with following parameters:

	runtime: 300s
	test: default

test-description: This torture test consists of creating a number of kernel threads which acquire the lock and hold it for specific amount of time, thus simulating different critical region behaviors.
test-url: https://www.kernel.org/doc/Documentation/locking/locktorture.txt


on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

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


+-----------------------------------------------------------+------------+------------+
|                                                           | a2f5ea9e31 | 1333d0ba67 |
+-----------------------------------------------------------+------------+------------+
| boot_successes                                            | 4          | 15         |
| boot_failures                                             | 0          | 10         |
| WARNING:at_kernel/locking/lockdep.c:#lockdep_register_key | 0          | 10         |
| EIP:lockdep_register_key                                  | 0          | 10         |
+-----------------------------------------------------------+------------+------------+


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


[    9.506645] WARNING: CPU: 1 PID: 193 at kernel/locking/lockdep.c:1177 lockdep_register_key+0x178/0x210
[    9.507533] Modules linked in: bochs_drm(+) drm_vram_helper drm_ttm_helper ttm crc32_pclmul drm_kms_helper rapl snd_pcm drm snd_timer drm_panel_orientation_quirks fb snd fbdev i2c_piix4 i2c_core piix(+) qemu_fw_cfg
[    9.509376] CPU: 1 PID: 193 Comm: udevd Not tainted 5.10.0-rc7-00035-g1333d0ba67aa #1
[    9.510125] EIP: lockdep_register_key+0x178/0x210
[    9.510589] Code: b5 00 20 b0 42 85 c0 0f 84 35 ff ff ff 89 58 04 8b 1d 6c 72 be 42 85 db 0f 85 5f ff ff ff e9 29 ff ff ff 8d b4 26 00 00 00 00 <0f> 0b 8d 65 f4 5b 5e 5f 5d c3 8d b6 00 00 00 00 89 c2 b8 08 70 be
[    9.512369] EAX: 00000001 EBX: 42782b48 ECX: 00000003 EDX: 41dff601
[    9.512966] ESI: 42782b48 EDI: 42782b6c EBP: 42515c48 ESP: 42515c38
[    9.513565] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00010202
[    9.514245] CR0: 80050033 CR2: 3fda9000 CR3: 024fc9a0 CR4: 000406f0
[    9.514843] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    9.515462] DR6: fffe0ff0 DR7: 00000400
[    9.515831] Call Trace:
[    9.516079]  ? alloc_workqueue+0x13f/0x3b0
[    9.516489]  ? ttm_mem_global_init+0x35/0x2e0 [ttm]
[    9.516961]  ? slob_alloc+0x1dd/0x1f0
[    9.517382]  ? ttm_bo_device_init+0x15a/0x290 [ttm]
[    9.517857]  ? drm_vram_helper_alloc_mm+0x5f/0xe0 [drm_vram_helper]
[    9.518464]  ? bochs_mm_init+0x16/0x30 [bochs_drm]
[    9.518920]  ? bochs_pci_probe+0xef/0x140 [bochs_drm]
[    9.519506]  ? pci_device_probe+0xcc/0x140
[    9.519901]  ? really_probe+0x1bd/0x3f0
[    9.520274]  ? driver_probe_device+0x55/0x180
[    9.520694]  ? mutex_lock_nested+0x14/0x20
[    9.521096]  ? __device_driver_lock+0x1d/0x40
[    9.521515]  ? device_driver_attach+0x49/0x50
[    9.521942]  ? __driver_attach+0x89/0x130
[    9.522323]  ? device_driver_attach+0x50/0x50
[    9.522737]  ? bus_for_each_dev+0x4c/0x80
[    9.523126]  ? driver_attach+0x14/0x20
[    9.523506]  ? device_driver_attach+0x50/0x50
[    9.523964]  ? bus_add_driver+0x14f/0x1c0
[    9.524353]  ? pci_bus_num_vf+0x10/0x10
[    9.524727]  ? driver_register+0x61/0xb0
[    9.525108]  ? 0xdfbab000
[    9.525363]  ? __pci_register_driver+0x4d/0x60
[    9.525796]  ? bochs_init+0x20/0x1000 [bochs_drm]
[    9.526245]  ? do_one_initcall+0x54/0x230
[    9.526636]  ? slob_alloc+0x90/0x1f0
[    9.527031]  ? __kmalloc+0x62/0x1a0
[    9.527392]  ? do_init_module+0x1a/0x3f0
[    9.527777]  ? do_init_module+0x49/0x3f0
[    9.528157]  ? __vfree+0x1d/0x50
[    9.528480]  ? load_module+0x1098/0x1260
[    9.528860]  ? __ia32_sys_finit_module+0x89/0xd0
[    9.529290]  ? do_int80_syscall_32+0x2c/0x40
[    9.529701]  ? entry_INT80_32+0xed/0xed
[    9.530078] ---[ end trace 735bd35c911b2630 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.10.0-rc7-00035-g1333d0ba67aa .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 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



Thanks,
Rong Chen


View attachment "config-5.10.0-rc7-00035-g1333d0ba67aa" of type "text/plain" (139890 bytes)

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

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

View attachment "locktorture" of type "text/plain" (1238 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ