FYI, we noticed the following commit (built with gcc-7):
commit: b415391a5f396d877cf8e01f71c1f6cdd918f916 ("xfs: move the log ioend workqueue
to struct xlog")
git://git.infradead.org/users/hch/xfs xfs-log-item-cleanup
in testcase: xfstests
with following parameters:
disk: 4HDD
fs: xfs
test: generic-group8
test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url:
git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
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):
+-------------------------------------------------------+------------+------------+
| | 9e1cd78798 | b415391a5f |
+-------------------------------------------------------+------------+------------+
| boot_successes | 0 | 0 |
| boot_failures | 1 | 22 |
| BUG:kernel_reboot-without-warning_in_test_stage | 1 | 8 |
| BUG:kernel_NULL_pointer_dereference,address | 0 | 9 |
| Oops:#[##] | 0 | 9 |
| RIP:_raw_spin_lock | 0 | 7 |
| RIP:native_safe_halt | 0 | 12 |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 11 |
| WARNING:at_kernel/workqueue.c:#__queue_work | 0 | 1 |
| RIP:__queue_work | 0 | 5 |
| BUG:kernel_hang_in_test_stage | 0 | 1 |
| general_protection_fault:#[##] | 0 | 2 |
| BUG:soft_lockup-CPU##stuck_for#s | 0 | 1 |
| RIP:smp_call_function_single | 0 | 1 |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 1 |
+-------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp(a)intel.com>
[ 499.892181] BUG: kernel NULL pointer dereference, address: 0000000000000238
[ 499.895048] #PF: supervisor read access in kernel mode
[ 499.897136] #PF: error_code(0x0000) - not-present page
[ 499.899376] PGD 0 P4D 0
[ 499.900918] Oops: 0000 [#1] SMP PTI
[ 499.902810] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.2.0-rc3-00017-gb415391 #1
[ 499.905457] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 499.908295] RIP: 0010:__queue_work+0x1b9/0x420
[ 499.910178] Code: 00 48 63 04 02 83 f8 ff 0f 84 a6 01 00 00 48 8d 84 c5 10 01 00 00 4c
89 f7 4c 8b 38 e8 10 e6 ff ff 48 85 c0 0f 85 d4 fe ff ff <49> 8b 07 e9 d5 fe ff ff
65 8b 05 48 23 b5 60 89 c0 48 0f a3 05 4e
[ 499.917358] RSP: 0018:ffffb45ac03bce10 EFLAGS: 00010046
[ 499.919928] RAX: 0000000000000000 RBX: ffffffffa07a2a60 RCX: 0000000000000000
[ 499.923024] RDX: 0000000000027848 RSI: 000000007fffffff RDI: ffff970d600dd6f0
[ 499.926188] RBP: ffff970d60037a00 R08: 0000000000000000 R09: 0000000000000000
[ 499.929455] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
[ 499.932690] R13: 0000000000002000 R14: ffff970d600dd6f0 R15: 0000000000000238
[ 499.935262] FS: 0000000000000000(0000) GS:ffff970dab100000(0000)
knlGS:0000000000000000
[ 499.938064] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 499.940345] CR2: 0000000000000238 CR3: 000000007e192000 CR4: 00000000000006e0
[ 499.942847] Call Trace:
[ 499.945839] <IRQ>
[ 499.947187] queue_work_on+0x34/0x40
[ 499.948860] blk_update_request+0x78/0x300
[ 499.950765] blk_mq_end_request+0x1a/0x120
[ 499.952548] blk_flush_complete_seq+0xe5/0x350
[ 499.954405] ? scsi_io_completion+0x85/0x4f0
[ 499.956230] flush_end_io+0x122/0x1b0
[ 499.957925] blk_done_softirq+0xa1/0xd0
[ 499.959741] __do_softirq+0xe3/0x311
[ 499.961398] irq_exit+0xdd/0xf0
[ 499.962948] call_function_single_interrupt+0xf/0x20
[ 499.964901] </IRQ>
[ 499.966206] RIP: 0010:native_safe_halt+0xe/0x10
[ 499.968035] Code: eb bd 90 90 90 90 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 86 de 5a
00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 76 de 5a 00 fb f4 <c3> 90 66 66 66 66 90 41
55 41 54 55 53 e8 00 05 6c ff 65 8b 2d 49
[ 499.974334] RSP: 0018:ffffb45ac0387eb8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff04
[ 499.977047] RAX: ffffffff9fe5c1a0 RBX: 0000000000000001 RCX: 0000000000000001
[ 499.979882] RDX: 0000000000000001 RSI: 0000000000000087 RDI: 0000000000000001
[ 499.982476] RBP: 0000000000000001 R08: 0000007c19195a48 R09: 0000007433f1918c
[ 499.984974] R10: 0000000000000000 R11: 00000000000f4240 R12: 0000000000000000
[ 499.987550] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 499.990261] ? __sched_text_end+0x7/0x7
[ 499.992114] default_idle+0x1c/0x160
[ 499.993811] do_idle+0x1c4/0x280
[ 499.995383] cpu_startup_entry+0x19/0x20
[ 499.997119] start_secondary+0x184/0x1d0
[ 499.998858] secondary_startup_64+0xb6/0xc0
[ 500.000648] Modules linked in: xfs libcrc32c dm_mod sr_mod cdrom sg crct10dif_pclmul
crc32_pclmul crc32c_intel ghash_clmulni_intel ata_generic pata_acpi ppdev bochs_drm ttm
drm_kms_helper snd_pcm syscopyarea sysfillrect sysimgblt fb_sys_fops snd_timer drm
ata_piix snd aesni_intel crypto_simd libata cryptd glue_helper soundcore joydev pcspkr
parport_pc serio_raw parport floppy i2c_piix4 ip_tables
[ 500.015042] CR2: 0000000000000238
[ 500.017320] ---[ end trace bbfbad79f0ae8527 ]---
To reproduce:
# build kernel
cd linux
cp config-5.2.0-rc3-00017-gb415391 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in
this email
Thanks,
lkp