[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200513054447.GD17565@shao2-debian>
Date: Wed, 13 May 2020 13:44:47 +0800
From: kernel test robot <rong.a.chen@...el.com>
To: Brendan Higgins <brendanhiggins@...gle.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Heidi Fahim <heidifahim@...gle.com>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [software node] 7589238a8c:
BUG:kernel_NULL_pointer_dereference,address
Greeting,
FYI, we noticed the following commit (built with gcc-7):
commit: 7589238a8cf37331607c3222a64ac3140b29532d ("Revert "software node: Simplify software_node_release() function"")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
in testcase: kernel-selftests
with following parameters:
group: kselftests-lib
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G
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 <rong.a.chen@...el.com>
[ 81.294302] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 81.299499] #PF: supervisor read access in kernel mode
[ 81.301121] #PF: error_code(0x0000) - not-present page
[ 81.302088] PGD 0 P4D 0
[ 81.302571] Oops: 0000 [#1] SMP PTI
[ 81.303252] CPU: 1 PID: 1189 Comm: modprobe Not tainted 5.6.0-rc4-00001-g7589238a8cf37 #1
[ 81.304928] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 81.306473] RIP: 0010:ida_free+0x76/0x140
[ 81.307218] Code: 00 00 48 c7 44 24 28 00 00 00 00 0f 88 c0 00 00 00 89 f3 e8 8c 3e 02 00 48 89 e7 49 89 c5 e8 f1 f6 00 00 a8 01 48 89 c5 75 41 <4c> 0f a3 20 72 74 48 8b 3c 24 4c 89 ee e8 18 3c 02 00 89 de 48 c7
[ 81.311772] RSP: 0000:ffffb32b40ff7a98 EFLAGS: 00010046
[ 81.337521] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 81.340410] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb32b40ff7a98
[ 81.343254] RBP: 0000000000000000 R08: ffffb32b40ff7a98 R09: 0000000000000000
[ 81.346138] R10: ffffffffffffffff R11: 0000000000000000 R12: 0000000000000000
[ 81.348985] R13: 0000000000000246 R14: ffffffffc0632937 R15: ffffb32b40ff7e88
[ 81.353197] FS: 00007f1fe8a395c0(0000) GS:ffff9609f7d00000(0000) knlGS:0000000000000000
[ 81.356217] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 81.359250] CR2: 0000000000000000 CR3: 000000015e8f8000 CR4: 00000000000406e0
[ 81.362127] Call Trace:
[ 81.364185] software_node_release+0x26/0xb0
[ 81.366534] kobject_put+0xa6/0x1b0
[ 81.368685] kobject_del+0x45/0x60
[ 81.370784] kobject_put+0x8b/0x1b0
[ 81.372911] software_node_unregister_nodes+0x25/0x40
[ 81.375351] test_pointer+0xb8d/0xbb5 [test_printf]
[ 81.377815] ? test_pointer+0xbb5/0xbb5 [test_printf]
[ 81.380276] test_printf_init+0x368/0x1075 [test_printf]
[ 81.383175] do_one_initcall+0x46/0x220
[ 81.385499] ? free_unref_page_commit+0x9f/0x120
[ 81.387915] ? _cond_resched+0x19/0x30
[ 81.390128] ? kmem_cache_alloc_trace+0x3b/0x230
[ 81.392560] do_init_module+0x5b/0x21d
[ 81.394766] load_module+0x1bf1/0x2080
[ 81.396961] ? ima_post_read_file+0xe2/0x120
[ 81.399179] ? __do_sys_finit_module+0xe9/0x110
[ 81.401413] __do_sys_finit_module+0xe9/0x110
[ 81.403595] do_syscall_64+0x5b/0x1f0
[ 81.405648] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 81.408077] RIP: 0033:0x7f1fe896cf49
[ 81.410293] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 17 3f 0c 00 f7 d8 64 89 01 48
[ 81.416838] RSP: 002b:00007ffcdd8d3898 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 81.419744] RAX: ffffffffffffffda RBX: 000055a5fce0e060 RCX: 00007f1fe896cf49
[ 81.422531] RDX: 0000000000000000 RSI: 000055a5fb151638 RDI: 0000000000000005
[ 81.425377] RBP: 000055a5fb151638 R08: 0000000000000000 R09: 000055a5fce0f950
[ 81.428220] R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000
[ 81.431049] R13: 000055a5fce0e200 R14: 0000000000040000 R15: 0000000000000000
[ 81.433857] Modules linked in: test_printf(+) bochs_drm drm_vram_helper drm_ttm_helper ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm sr_mod intel_rapl_msr cdrom intel_rapl_common sg crct10dif_pclmul ppdev crc32_pclmul crc32c_intel ghash_clmulni_intel ata_generic pata_acpi snd_pcm aesni_intel snd_timer crypto_simd cryptd glue_helper joydev snd soundcore pcspkr serio_raw ata_piix libata i2c_piix4 parport_pc floppy parport ip_tables
[ 81.453400] CR2: 0000000000000000
[ 81.455665] ---[ end trace 3ff065295a4eab6a ]---
To reproduce:
# build kernel
cd linux
cp config-5.6.0-rc4-00001-g7589238a8cf37 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare 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.6.0-rc4-00001-g7589238a8cf37" of type "text/plain" (203215 bytes)
View attachment "job-script" of type "text/plain" (5900 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (15112 bytes)
Powered by blists - more mailing lists