FYI, we noticed the following commit (built with gcc-7):
commit: 402b1b327a0b0e8fd23d5866b9585ccc2380f199 ("Add decryption support for
sub-pagesized blocks")
https://git.kernel.org/cgit/linux/kernel/git/ebiggers/linux.git wip-subpage-encryption
in testcase: xfstests
with following parameters:
disk: 6HDD
fs: btrfs
test: btrfs-group1
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 4G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------------------------------+------------+------------+
| | 31d0610be3 | 402b1b327a |
+-------------------------------------------------------+------------+------------+
| boot_successes | 1 | 0 |
| boot_failures | 43 | 40 |
| BUG:kernel_reboot-without-warning_in_test_stage | 41 | 31 |
| BUG:kernel_NULL_pointer_dereference,address | 2 | 2 |
| Oops:#[##] | 2 | 7 |
| RIP:raid#_sse21_gen_syndrome[raid#_pq] | 2 | 2 |
| Kernel_panic-not_syncing:Fatal_exception | 2 | 2 |
| BUG:unable_to_handle_page_fault_for_address | 0 | 5 |
| RIP:read_callbacks | 0 | 5 |
| RIP:native_safe_halt | 0 | 5 |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 5 |
| BUG:soft_lockup-CPU##stuck_for#s | 0 | 1 |
| RIP:__do_softirq | 0 | 1 |
| RIP:clear_page_rep | 0 | 1 |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 1 |
| BUG:kernel_hang_in_boot_stage | 0 | 1 |
+-------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
[ 1439.695830] BUG: unable to handle page fault for address: 0000000003fffe53
[ 1439.702109] #PF: supervisor read access in kernel mode
[ 1439.705572] #PF: error_code(0x0000) - not-present page
[ 1439.709289] PGD 0 P4D 0
[ 1439.711570] Oops: 0000 [#1] SMP PTI
[ 1439.714095] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.2.0-rc2-00022-g402b1b3 #1
[ 1439.717917] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 1439.722137] RIP: 0010:read_callbacks+0x102/0x170
[ 1439.725031] Code: 48 c1 e3 06 48 03 18 eb 80 48 8b 35 a8 9c dd 01 4c 89 e7 e8 20 2c f0
ff 4c 89 ff 5b 5d 41 5c 41 5d 41 5e 41 5f e9 be 8b 12 00 <48> 8b 53 08 48 8d 42 ff
83 e2 01 48 0f 44 c3 f0 80 20 fb f0 80 4b
[ 1439.733926] RSP: 0018:ffffb279c06cce58 EFLAGS: 00010282
[ 1439.736950] RAX: 0000000000000598 RBX: 0000000003fffe4b RCX: 0000000000000598
[ 1439.740608] RDX: 00000000bd464770 RSI: 0000000000000001 RDI: ffff9a68bae02c00
[ 1439.744285] RBP: 0000000000000000 R08: 0000000000033850 R09: ffffffffc04738dd
[ 1439.747933] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9a68bd6d0a20
[ 1439.751612] R13: 0000000000001000 R14: 0000000000000598 R15: ffff9a68bfcf5498
[ 1439.755564] FS: 0000000000000000(0000) GS:ffff9a697fd00000(0000)
knlGS:0000000000000000
[ 1439.761896] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1439.769318] CR2: 0000000003fffe53 CR3: 000000007c628000 CR4: 00000000000406e0
[ 1439.777936] Call Trace:
[ 1439.788378] <IRQ>
[ 1439.790308] read_callbacks_end_bh+0x1b/0x40
[ 1439.793087] __end_buffer_async_read+0x18/0x60
[ 1439.795949] end_bio_bh_io_sync+0x26/0x40
[ 1439.798726] clone_endio+0x90/0x180 [dm_mod]
[ 1439.801543] blk_update_request+0x78/0x300
[ 1439.804197] blk_mq_end_request+0x1a/0x120
[ 1439.806903] blk_done_softirq+0xa1/0xd0
[ 1439.809404] __do_softirq+0xe3/0x311
[ 1439.811862] irq_exit+0xdd/0xf0
[ 1439.814164] call_function_single_interrupt+0xf/0x20
[ 1439.817082] </IRQ>
[ 1439.819030] RIP: 0010:native_safe_halt+0xe/0x10
[ 1439.821795] Code: eb bd 90 90 90 90 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 56 de 5a
00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 46 de 5a 00 fb f4 <c3> 90 66 66 66 66 90 41
55 41 54 55 53 e8 f0 03 6c ff 65 8b 2d 19
[ 1439.830746] RSP: 0018:ffffb279c0697eb8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff04
[ 1439.834651] RAX: ffffffffbc85c1d0 RBX: 0000000000000001 RCX: 0000000000000000
[ 1439.838373] RDX: 0000000000000001 RSI: 0000000000000087 RDI: 0000000000000001
[ 1439.842157] RBP: 0000000000000001 R08: 000002a24abd49ba R09: ffff9a697ffd3328
[ 1439.845956] R10: 0000000000000000 R11: 0000000000000b20 R12: 0000000000000000
[ 1439.849750] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 1439.853563] ? __sched_text_end+0x7/0x7
[ 1439.856261] default_idle+0x1c/0x160
[ 1439.858875] do_idle+0x1c4/0x280
[ 1439.861363] cpu_startup_entry+0x19/0x20
[ 1439.864171] start_secondary+0x184/0x1d0
[ 1439.867043] secondary_startup_64+0xb6/0xc0
[ 1439.869803] Modules linked in: ext4 mbcache jbd2 btrfs xor zstd_decompress
zstd_compress raid6_pq libcrc32c dm_flakey dm_mod sr_mod cdrom sg ata_generic pata_acpi
bochs_drm ttm crct10dif_pclmul crc32_pclmul drm_kms_helper crc32c_intel
ghash_clmulni_intel ppdev snd_pcm syscopyarea snd_timer sysfillrect sysimgblt snd
fb_sys_fops drm aesni_intel crypto_simd ata_piix soundcore cryptd glue_helper joydev
pcspkr serio_raw libata parport_pc i2c_piix4 parport floppy ip_tables [last unloaded:
xor]
[ 1439.890150] CR2: 0000000003fffe53
[ 1439.892797] ---[ end trace 762467852b11b149 ]---
To reproduce:
# build kernel
cd linux
cp config-5.2.0-rc2-00022-g402b1b3 .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,
Rong Chen