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, 25 May 2023 01:37:13 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     "Paul E. McKenney" <paulmck@...nel.org>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>, <rcu@...r.kernel.org>
Subject: [paulmck-rcu:dev.2023.05.20a] [rcuscale] 812195e4f7:
 BUG:kernel_NULL_pointer_dereference,address

Hello,

kernel test robot noticed "BUG:kernel_NULL_pointer_dereference,address" on:

commit: 812195e4f70ef0e9fc68127355c553c537749546 ("rcuscale: Measure grace-period kthread CPU time")
https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev.2023.05.20a

in testcase: boot

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

(please refer to attached dmesg/kmsg for entire log/backtrace)


+---------------------------------------------+------------+------------+
|                                             | 2393139b67 | 812195e4f7 |
+---------------------------------------------+------------+------------+
| boot_successes                              | 8          | 0          |
| boot_failures                               | 0          | 8          |
| BUG:kernel_NULL_pointer_dereference,address | 0          | 8          |
| Oops:#[##]                                  | 0          | 8          |
| Kernel_panic-not_syncing:Fatal_exception    | 0          | 8          |
+---------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202305241757.57c30887-yujie.liu@intel.com


[  629.144501][   T35] rcu-scale: rcu_scale_writer 0 has 100 measurements
[  629.181077][   T35] Dumping ftrace buffer:
[  629.181441][   T35]    (ftrace buffer empty)
[  629.181680][   T35] rcu-scale: Test complete
[  629.182322][   T33] BUG: kernel NULL pointer dereference, address: 0000000000000000
[  629.182708][   T33] #PF: supervisor instruction fetch in kernel mode
[  629.183027][   T33] #PF: error_code(0x0010) - not-present page
[  629.183322][   T33] PGD 13d085067 P4D 13d085067 PUD 0
[  629.183589][   T33] Oops: 0010 [#1] KASAN
[  629.183806][   T33] CPU: 0 PID: 33 Comm: rcu_scale_shutd Not tainted 6.4.0-rc1-00088-g812195e4f70e #1 19cf2b1999b45c3d98eb981eba187eee27b0ad34
[  629.184464][   T33] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[  629.184967][   T33] RIP: 0010:0x0
[ 629.185152][ T33] Code: Unable to access opcode bytes at 0xffffffffffffffd6.

Code starting with the faulting instruction
===========================================
[  629.185523][   T33] RSP: 0000:ffffc90000c2fe80 EFLAGS: 00010246
[  629.185869][   T33] RAX: 1ffffffff0e6b100 RBX: ffffffff87358800 RCX: ffffffff8998c003
[  629.186348][   T33] RDX: dffffc0000000000 RSI: ffff888114b7b140 RDI: ffffffff850e7a8d
[  629.186741][   T33] RBP: ffff88813b488560 R08: dffffc0000000000 R09: fffffbfff121ceab
[  629.187135][   T33] R10: dffff7fff121ceac R11: 1ffffffff121ceaa R12: dffffc0000000000
[  629.187550][   T33] R13: ffffc9000001fa60 R14: dffffc0000000000 R15: ffff888114b7b408
[  629.187941][   T33] FS:  0000000000000000(0000) GS:ffffffff86ef9000(0000) knlGS:0000000000000000
[  629.188391][   T33] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  629.188717][   T33] CR2: ffffffffffffffd6 CR3: 000000013d12f000 CR4: 00000000000406f0
[  629.189112][   T33] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  629.189503][   T33] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  629.189891][   T33] Call Trace:
[  629.190065][   T33]  <TASK>
[ 629.190213][ T33] rcu_scale_cleanup (kernel/rcu/rcuscale.c:817) 
[ 629.190465][ T33] rcu_scale_shutdown (kernel/rcu/rcuscale.c:905) 
[ 629.190709][ T33] ? wake_bit_function (kernel/sched/wait.c:418) 
[ 629.190973][ T33] kthread (kernel/kthread.c:380) 
[ 629.191185][ T33] ? rcu_scale_cleanup (kernel/rcu/rcuscale.c:901) 
[ 629.191442][ T33] ? kthread_unuse_mm (kernel/kthread.c:332) 
[ 629.191695][ T33] ret_from_fork (arch/x86/entry/entry_64.S:314) 
[  629.191920][   T33]  </TASK>
[  629.192075][   T33] Modules linked in:
[  629.192278][   T33] CR2: 0000000000000000
[  629.192498][   T33] ---[ end trace 0000000000000000 ]---
[  629.192762][   T33] RIP: 0010:0x0
[ 629.192937][ T33] Code: Unable to access opcode bytes at 0xffffffffffffffd6.

Code starting with the faulting instruction
===========================================
[  629.193292][   T33] RSP: 0000:ffffc90000c2fe80 EFLAGS: 00010246
[  629.193586][   T33] RAX: 1ffffffff0e6b100 RBX: ffffffff87358800 RCX: ffffffff8998c003
[  629.193967][   T33] RDX: dffffc0000000000 RSI: ffff888114b7b140 RDI: ffffffff850e7a8d
[  629.194347][   T33] RBP: ffff88813b488560 R08: dffffc0000000000 R09: fffffbfff121ceab
[  629.194727][   T33] R10: dffff7fff121ceac R11: 1ffffffff121ceaa R12: dffffc0000000000
[  629.195107][   T33] R13: ffffc9000001fa60 R14: dffffc0000000000 R15: ffff888114b7b408
[  629.195488][   T33] FS:  0000000000000000(0000) GS:ffffffff86ef9000(0000) knlGS:0000000000000000
[  629.195914][   T33] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  629.196230][   T33] CR2: ffffffffffffffd6 CR3: 000000013d12f000 CR4: 00000000000406f0
[  629.196628][   T33] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  629.197020][   T33] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  629.197410][   T33] Kernel panic - not syncing: Fatal exception
[  629.197709][   T33] Kernel Offset: disabled



To reproduce:

        # build kernel
	cd linux
	cp config-6.4.0-rc1-00088-g812195e4f70e .config
	make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=clang-14 CC=clang-14 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://github.com/intel/lkp-tests/wiki

View attachment "config-6.4.0-rc1-00088-g812195e4f70e" of type "text/plain" (163247 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ