FYI, we noticed the following commit (built with gcc-7):
commit: 8062cba442e4c43263c102a96cc85eda40052ca5 ("block: use get_user_bvec_fast in
__bio_iov_iter_get_pages")
git://git.infradead.org/users/hch/misc.git gup-bvec
in testcase: ltp
with following parameters:
disk: 1HDD
fs: xfs
test: ltp-aiodio.part2
test-description: The LTP testsuite contains a collection of tools for testing the Linux
kernel and related features.
test-url:
http://linux-test-project.github.io/
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):
+----------------------------------------------------+------------+------------+
| | 26e0d9b1ab | 8062cba442 |
+----------------------------------------------------+------------+------------+
| boot_successes | 21 | 21 |
| boot_failures | 19 | 32 |
| BUG:kernel_reboot-without-warning_in_test_stage | 14 | 13 |
| BUG:kernel_hang_in_boot_stage | 3 | 2 |
| BUG:soft_lockup-CPU##stuck_for#s | 2 | |
| RIP:clear_page_rep | 2 | |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 2 | |
| BUG:kernel_hang_in_test_stage | 0 | 2 |
| kernel_BUG_at_block/bio.c | 0 | 11 |
| invalid_opcode:#[##] | 0 | 13 |
| RIP:bio_split | 0 | 11 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 13 |
| BUG:kernel_hang_in_boot-around-mounting-root_stage | 0 | 2 |
| kernel_BUG_at_include/linux/scatterlist.h | 0 | 2 |
| RIP:blk_rq_map_sg | 0 | 2 |
+----------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
[ 83.056951] INFO: creating /lkp/benchmarks/ltp/output directory
[ 83.056959]
[ 83.086056] INFO: creating /lkp/benchmarks/ltp/results directory
[ 83.086062]
[ 83.147542] Checking for required user/group ids
[ 83.147549]
[ 83.153706]
[ 83.215645] 'nobody' user id and group found.
[ 83.215652]
[ 83.225002] 'bin' user id and group found.
[ 83.225009]
[ 83.235438] 'daemon' user id and group found.
[ 83.235443]
[ 83.241865] Users group found.
[ 83.241871]
[ 83.249315] Sys group found.
[ 83.249320]
[ 83.272006] Required users/groups exist.
[ 83.272013]
[ 83.288922] If some fields are empty or look unusual you may have an old version.
[ 83.288949]
[ 83.304050] Compare to the current minimal requirements in Documentation/Changes.
[ 83.304058]
[ 83.315464]
[ 83.320335] /etc/os-release
[ 83.320339]
[ 83.330327] PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
[ 83.330332]
[ 83.340861] NAME="Debian GNU/Linux"
[ 83.340866]
[ 83.347974] VERSION_ID="9"
[ 83.347979]
[ 83.357144] VERSION="9 (stretch)"
[ 83.357148]
[ 83.364551] ID=debian
[ 83.364556]
[ 83.376127]
HOME_URL="https://www.debian.org/"
[ 83.376133]
[ 83.387803]
SUPPORT_URL="https://www.debian.org/support"
[ 83.387810]
[ 83.398092]
BUG_REPORT_URL="https://bugs.debian.org/"
[ 83.398097]
[ 83.402752]
[ 83.407259] uname:
[ 83.407264]
[ 83.418160] Linux vm-snb-8G-443 5.2.0-rc2-00023-g8062cba #6 SMP Thu May 30 22:08:27 CST
2019 x86_64 GNU/Linux
[ 83.418167]
[ 83.423751]
[ 83.429567] /proc/cmdline
[ 83.429573]
[ 85.396522] loop: module loaded
[ 85.452363] LTP: starting ADSP000 (aiodio_sparse)
[ 91.027884] LTP: starting ADSP001 (aiodio_sparse -s 180k)
[ 94.239724] LTP: starting ADSP002 (aiodio_sparse -dd -s 1751k -w 11k)
[ 95.379782] LTP: starting ADSP003 (aiodio_sparse -i 9 -d -s 180k -w 18k)
[ 95.828592] ip=::::vm-snb-8G-443::dhcp root=/dev/ram0 user=lkp
job=/lkp/jobs/scheduled/vm-snb-8G-443/ltp-1HDD-xfs-ltp-aiodio.part2-debian-x86_64-2018-04-03.cgz-8062cba442-20190604-84365-1i0pvoo-8.yaml
ARCH=x86_64 kconfig=x86_64-rhel-7.6 branch=linux-devel/devel-hourly-2019053023
commit=8062cba442e4c43263c102a96cc85eda40052ca5
BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6/gcc-7/8062cba442e4c43263c102a96cc85eda40052ca5/vmlinuz-5.2.0-rc2-00023-g8062cba
max_uptime=3600
RESULT_ROOT=/result/ltp/1HDD-xfs-ltp-aiodio.part2/vm-snb-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.6/gcc-7/8062cba442e4c43263c102a96cc85eda40052ca5/8
LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100
net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic
load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel
console=tty0 earlyprintk=ttyS
[ 95.828602]
[ 95.976161]
[ 96.156873] LTP: starting ADSP004 (aiodio_sparse -i 2 -a 2k -w 2k -s 4k -n 2)
[ 96.184039] LTP: starting ADSP005 (aiodio_sparse -i 2 -a 4k -w 4k -s 8k -n 2)
[ 96.216673] LTP: starting ADSP006 (aiodio_sparse -i 2 -a 4k -w 4k -s 8k -n 2)
[ 96.245736] LTP: starting ADSP007 (aiodio_sparse -i 4 -a 8k -w 8k -s 32k -n 2)
[ 96.268575] LTP: starting ADSP008 (aiodio_sparse -i 4 -a 8k -w 16k -s 64k -n 2)
[ 96.300437] LTP: starting ADSP009 (aiodio_sparse -i 4 -a 8k -w 32k -s 128k -n 2)
[ 96.331035] LTP: starting ADSP010 (aiodio_sparse -i 4 -a 8k -w 64k -s 256k -n 2)
[ 96.395357] LTP: starting ADSP011 (aiodio_sparse -i 4 -a 8k -w 128k -s 512k -n 2)
[ 96.428703] LTP: starting ADSP012 (aiodio_sparse -i 4 -a 8k -w 256k -s 1024k -n 2)
[ 96.450766] ------------[ cut here ]------------
[ 96.457622] kernel BUG at block/bio.c:1855!
[ 96.460692] invalid opcode: 0000 [#1] SMP PTI
[ 96.464895] CPU: 0 PID: 2525 Comm: aiodio_sparse Not tainted 5.2.0-rc2-00023-g8062cba
#6
[ 96.468726] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 96.472744] RIP: 0010:bio_split+0x73/0x80
[ 96.475107] Code: 89 c7 e8 c0 e7 02 00 41 8b 74 24 28 48 89 ef e8 63 e2 ff ff f6 45 15
04 74 08 66 41 81 4c 24 14 00 04 4c 89 e0 5b 5d 41 5c c3 <0f> 0b 0f 0b 66 0f 1f 84
00 00 00 00 00 66 66 66 66 90 89 d0 41 57
[ 96.483753] RSP: 0018:ffffacbb41473868 EFLAGS: 00010246
[ 96.486931] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff982072d28648
[ 96.490629] RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffff98205bd4d3c0
[ 96.494399] RBP: ffffacbb41473918 R08: 000000000000007e R09: 0000000000000002
[ 96.498216] R10: ffff98205bd4d3c0 R11: ffff982072d28000 R12: 0000000000000000
[ 96.501832] R13: 000000000000003d R14: ffff98205bd4d3c0 R15: ffffacbb41473930
[ 96.505649] FS: 00007ff79aa3b700(0000) GS:ffff9820ffc00000(0000)
knlGS:0000000000000000
[ 96.509637] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 96.513108] CR2: 00007ff79aa45000 CR3: 000000019bdca000 CR4: 00000000000006f0
[ 96.516330] Call Trace:
[ 96.520716] blk_queue_split+0x297/0x500
[ 96.524021] blk_mq_make_request+0x96/0x600
[ 96.527022] generic_make_request+0x1d0/0x420
[ 96.530060] ? submit_bio+0x6c/0x140
[ 96.532921] submit_bio+0x6c/0x140
[ 96.535668] ? bio_iov_iter_get_pages+0x8c/0x200
[ 96.538759] iomap_dio_submit_bio+0x51/0x60
[ 96.541919] iomap_dio_bio_actor+0x1b9/0x3e0
[ 96.544798] ? iomap_readpage_actor+0x330/0x330
[ 96.547682] iomap_apply+0xba/0x130
[ 96.550323] iomap_dio_rw+0x2cf/0x410
[ 96.552964] ? iomap_readpage_actor+0x330/0x330
[ 96.555748] ? __x64_sys_io_cancel+0x180/0x180
[ 96.558628] ? xfs_file_aio_write_checks+0x155/0x220 [xfs]
[ 96.561722] ? xfs_file_dio_aio_write+0x19a/0x330 [xfs]
[ 96.564775] xfs_file_dio_aio_write+0x19a/0x330 [xfs]
[ 96.567708] ? selinux_file_permission+0x123/0x140
[ 96.570635] xfs_file_write_iter+0x8b/0xc0 [xfs]
[ 96.573650] aio_write+0x134/0x1b0
[ 96.576353] ? handle_mm_fault+0xdd/0x210
[ 96.578953] ? __do_page_fault+0x312/0x520
[ 96.581534] ? io_submit_one+0x5c0/0xbf0
[ 96.584120] ? __might_fault+0x2b/0x30
[ 96.586670] io_submit_one+0x5c0/0xbf0
[ 96.589138] ? async_page_fault+0x1e/0x30
[ 96.591818] ? __x64_sys_io_submit+0x9e/0x1c0
[ 96.594821] ? __might_fault+0x2b/0x30
[ 96.597725] __x64_sys_io_submit+0x9e/0x1c0
[ 96.600502] ? do_syscall_64+0x5b/0x1e0
[ 96.603047] ? __ia32_compat_sys_io_submit+0x1b0/0x1b0
[ 96.605946] do_syscall_64+0x5b/0x1e0
[ 96.608509] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 96.611456] RIP: 0033:0x7ff79a404717
[ 96.614033] Code: 00 75 08 8b 47 0c 39 47 08 74 08 e9 c3 ff ff ff 0f 1f 00 31 c0 c3 66
2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 d1 00 00 00 0f 05 <c3> 0f 1f 84 00 00 00 00
00 b8 d2 00 00 00 0f 05 c3 0f 1f 84 00 00
[ 96.622143] RSP: 002b:00007ffeab4ff018 EFLAGS: 00000206 ORIG_RAX: 00000000000000d1
[ 96.626141] RAX: ffffffffffffffda RBX: 000055f613dfd070 RCX: 00007ff79a404717
[ 96.630207] RDX: 000055f613dfd050 RSI: 0000000000000004 RDI: 00007ff79aa45000
[ 96.634345] RBP: 000055f613dfd070 R08: 0000000000000000 R09: 0000000000000000
[ 96.638160] R10: 000000000000000f R11: 0000000000000206 R12: 0000000000040000
[ 96.641921] R13: 00007ff79a930000 R14: 00007ff79aa3b698 R15: 0000000000000004
[ 96.645674] Modules linked in: loop xfs libcrc32c dm_mod sr_mod cdrom sg ppdev snd_pcm
ata_generic crct10dif_pclmul pata_acpi crc32_pclmul crc32c_intel ghash_clmulni_intel
bochs_drm ttm snd_timer drm_kms_helper snd aesni_intel crypto_simd ata_piix cryptd
syscopyarea glue_helper sysfillrect sysimgblt fb_sys_fops joydev soundcore drm libata
serio_raw pcspkr i2c_piix4 parport_pc parport floppy ip_tables
[ 96.661747] ---[ end trace b17d49fcd4bda01a ]---
To reproduce:
# build kernel
cd linux
cp config-5.2.0-rc2-00023-g8062cba .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