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]
Date:   Thu, 21 Mar 2019 16:49:37 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     "Paul E. McKenney" <paulmck@...ux.ibm.com>
Cc:     Barret Rhoden <brho@...gle.com>, Tejun Heo <tj@...nel.org>,
        LKML <linux-kernel@...r.kernel.org>,
        "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>, lkp@...org
Subject: [LKP] [rcu] f836ea2ec9: BUG:unable_to_handle_kernel

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

commit: f836ea2ec954a20af25861e68075ad743be046f4 ("rcu: Forbid DEFINE{,_STATIC}_SRCU() from modules")
https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev.2019.03.18a

in testcase: rcutorture
with following parameters:

	runtime: 300s
	test: cpuhotplug
	torture_type: srcu

test-description: rcutorture is rcutorture kernel module load/unload test.
test-url: https://www.kernel.org/doc/Documentation/RCU/torture.txt


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

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


+-------------------------------------------------+------------+------------+
|                                                 | f28943f8f0 | f836ea2ec9 |
+-------------------------------------------------+------------+------------+
| boot_successes                                  | 1          | 1          |
| boot_failures                                   | 3          | 7          |
| BUG:kernel_reboot-without-warning_in_test_stage | 3          | 3          |
| BUG:unable_to_handle_kernel                     | 0          | 4          |
| Oops:#[##]                                      | 0          | 4          |
| EIP:rcu_torture_init                            | 0          | 4          |
| Kernel_panic-not_syncing:Fatal_exception        | 0          | 4          |
+-------------------------------------------------+------------+------------+



[    9.610129] BUG: unable to handle kernel NULL pointer dereference at 00000054
[    9.611320] #PF error: [normal kernel read fault]
[    9.611823] *pdpt = 000000002a082001 *pde = 0000000000000000 
[    9.612440] Oops: 0000 [#1] PTI
[    9.612781] CPU: 0 PID: 592 Comm: modprobe Not tainted 5.1.0-rc1-00052-gf836ea2 #2
[    9.613583] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    9.614469] EIP: rcu_torture_init+0x75e/0x1000 [rcutorture]
[    9.615079] Code: 5b e8 46 4b 1f 00 eb 58 50 31 db 68 90 5d e1 f7 e8 70 bf 28 c9 68 07 61 e1 f7 e8 66 bf 28 c9 83 c4 0c 8b 04 9d 8c 62 e1 f7 43 <ff> 70 54 68 94 60 e1 f7 e8 4e bf 28 c9 83 fb 06 58 5a 75 e4 68 d8
[    9.617052] EAX: 00000000 EBX: 00000003 ECX: 00000006 EDX: f7e16142
[    9.617719] ESI: fffffff0 EDI: ea0d11b0 EBP: 00000001 ESP: e9bf5de8
[    9.618392] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 EFLAGS: 00010207
[    9.619118] CR0: 80050033 CR2: 00000054 CR3: 2a0ae000 CR4: 000406b0
[    9.619784] Call Trace:
[    9.620060]  ? 0xf7e1d000
[    9.620349]  ? do_one_initcall+0x52/0x250
[    9.620784]  ? do_init_module+0x19/0x1bb
[    9.621213]  ? rcu_read_lock_sched_held+0x38/0x60
[    9.621719]  ? kmem_cache_alloc_trace+0x105/0x270
[    9.622230]  ? slow_virt_to_phys+0x27/0x120
[    9.622682]  ? do_init_module+0x47/0x1bb
[    9.623111]  ? load_module+0x2030/0x2430
[    9.623537]  ? restore_all_kernel+0xf/0x74
[    9.623980]  ? sys_init_module+0xf7/0x140
[    9.624420]  ? kvm_sched_clock_read+0x13/0x30
[    9.624891]  ? do_fast_syscall_32+0xa1/0x2d0
[    9.625355]  ? entry_SYSENTER_32+0x69/0xbc
[    9.625797] Modules linked in: rcutorture(+) torture parport_pc serio_raw parport qemu_fw_cfg
[    9.626706] CR2: 0000000000000054
[    9.627081] ---[ end trace c93ea0cabc92d6b1 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.1.0-rc1-00052-gf836ea2 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=i386 olddefconfig
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=i386 prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=i386 modules_prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=i386 SHELL=/bin/bash
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=i386 bzImage


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



Thanks,
Rong Chen


View attachment "config-5.1.0-rc1-00052-gf836ea2" of type "text/plain" (128908 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ