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-next>] [day] [month] [year] [list]
Message-ID: <20190726082329.GF22106@shao2-debian>
Date:   Fri, 26 Jul 2019 16:23:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Logan Gunthorpe <logang@...tatee.com>
Cc:     Jon Mason <jdmason@...zu.us>, Dave Jiang <dave.jiang@...el.com>,
        Allen Hubbe <allenbh@...il.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>, lkp@...org
Subject: [NTB] 26b3a37b92: WARNING:at_kernel/params.c:#param_sysfs_init

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

commit: 26b3a37b928457ba2cd98eaf6d7b0feca5a30fa6 ("NTB: Introduce MSI library")
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master

in testcase: locktorture
with following parameters:

	runtime: 300s
	test: cpuhotplug

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-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 2G

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


+----------------------------------------------+------------+------------+
|                                              | d217e07b32 | 26b3a37b92 |
+----------------------------------------------+------------+------------+
| boot_successes                               | 4          | 0          |
| boot_failures                                | 0          | 4          |
| WARNING:at_kernel/params.c:#param_sysfs_init | 0          | 4          |
| RIP:param_sysfs_init                         | 0          | 4          |
+----------------------------------------------+------------+------------+


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


[    1.062876] WARNING: CPU: 0 PID: 1 at kernel/params.c:861 param_sysfs_init+0xb1/0x20a
[    1.064618] Modules linked in:
[    1.065241] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-rc1-00018-g26b3a37b928457 #2
[    1.066691] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    1.066851] RIP: 0010:param_sysfs_init+0xb1/0x20a
[    1.066851] Code: 24 38 e8 ec 17 2e fd 49 8b 7c 24 38 e8 76 fe ff ff 48 85 c0 48 89 c5 74 25 31 d2 4c 89 e6 48 89 c7 e8 6d 6f 3c fd 85 c0 74 02 <0f> 0b 48 89 ef 31 f6 e8 5d 70 a7 fe 48 89 ef e8 95 52 a7 fe 48 83
[    1.066851] RSP: 0000:ffff88806b0ffe30 EFLAGS: 00010282
[    1.066851] RAX: 00000000ffffffef RBX: ffffffff83774220 RCX: ffff88806a85e880
[    1.066851] RDX: 00000000ffffffef RSI: ffff88806b000400 RDI: ffff88806a8608c0
[    1.066851] RBP: ffff88806b392000 R08: ffffed100d61ff59 R09: ffffed100d61ff59
[    1.066851] R10: 0000000000000001 R11: ffffed100d61ff58 R12: ffffffff83974bc0
[    1.066851] R13: 0000000000000004 R14: 0000000000000028 R15: 00000000000003b9
[    1.066851] FS:  0000000000000000(0000) GS:ffff88806b800000(0000) knlGS:0000000000000000
[    1.066851] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.066851] CR2: 0000000000000000 CR3: 000000000380e000 CR4: 00000000000406b0
[    1.066851] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    1.066851] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    1.066851] Call Trace:
[    1.066851]  ? file_caps_disable+0x10/0x10
[    1.066851]  ? locate_module_kobject+0xf2/0xf2
[    1.066851]  do_one_initcall+0x47/0x1f0
[    1.066851]  kernel_init_freeable+0x1b1/0x243
[    1.066851]  ? rest_init+0xd0/0xd0
[    1.066851]  kernel_init+0xa/0x130
[    1.066851]  ? calculate_sigpending+0x63/0x80
[    1.066851]  ? rest_init+0xd0/0xd0
[    1.066851]  ret_from_fork+0x1f/0x30
[    1.066851] ---[ end trace 78201497ae74cc91 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.2.0-rc1-00018-g26b3a37b928457 .config
	make HOSTCC=gcc-4.9 CC=gcc-4.9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-4.9 CC=gcc-4.9 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



Thanks,
lkp


View attachment "config-5.2.0-rc1-00018-g26b3a37b928457" of type "text/plain" (133175 bytes)

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

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ