FYI, we noticed the following commit (built with gcc-7):
commit: b54bfac0e4b30beee5f086ef8b81ab49ae5fe138 ("xfs: Use
filemap_huge_fault")
git://git.infradead.org/users/willy/linux-dax.git xarray-pagecache
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):
+----------------------------------------------------+------------+------------+
| | a47853185d | b54bfac0e4 |
+----------------------------------------------------+------------+------------+
| boot_successes | 0 | 3 |
| boot_failures | 4 | 23 |
| WARNING:at_fs/iomap/buffered-io.c:#iomap_readpages | 4 | 18 |
| RIP:iomap_readpages | 4 | 18 |
| BUG:unable_to_handle_page_fault_for_address:ff | 0 | 1 |
| BUG:soft_lockup-CPU##stuck_for#s | 0 | 7 |
| RIP:__find_get_page | 0 | 3 |
| RIP:xas_load | 0 | 6 |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 7 |
| BUG:kernel_NULL_pointer_dereference,address | 0 | 4 |
| Oops:#[##] | 0 | 4 |
| RIP:iomap_page_mkwrite | 0 | 4 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 4 |
+----------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
[ 40.131732] INFO: creating /lkp/benchmarks/ltp/output directory
[ 40.131734]
[ 40.139428] INFO: creating /lkp/benchmarks/ltp/results directory
[ 40.139430]
[ 40.153998] Checking for required user/group ids
[ 40.154000]
[ 40.157482]
[ 40.171285] 'nobody' user id and group found.
[ 40.171288]
[ 40.175406] 'bin' user id and group found.
[ 40.175408]
[ 40.180443] 'daemon' user id and group found.
[ 40.180445]
[ 40.184363] Users group found.
[ 40.184365]
[ 40.187619] Sys group found.
[ 40.187621]
[ 40.200650] Required users/groups exist.
[ 40.200652]
[ 40.207315] If some fields are empty or look unusual you may have an old version.
[ 40.207317]
[ 40.213146] Compare to the current minimal requirements in Documentation/Changes.
[ 40.213149]
[ 40.217098]
[ 40.220644] /etc/os-release
[ 40.220646]
[ 40.225051] PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
[ 40.225053]
[ 40.229427] NAME="Debian GNU/Linux"
[ 40.229429]
[ 40.232418] VERSION_ID="9"
[ 40.232420]
[ 40.235723] VERSION="9 (stretch)"
[ 40.235726]
[ 40.239565] ID=debian
[ 40.239568]
[ 40.242920]
HOME_URL="https://www.debian.org/"
[ 40.242922]
[ 40.246937]
SUPPORT_URL="https://www.debian.org/support"
[ 40.246939]
[ 40.252011]
BUG_REPORT_URL="https://bugs.debian.org/"
[ 40.252013]
[ 40.257258]
[ 40.258940] uname:
[ 40.258942]
[ 40.263910] Linux vm-snb-8G-1beec5b16908 5.3.0-11851-gb54bfac0e4b30 #1 SMP Wed Sep 25
20:46:33 CST 2019 x86_64 GNU/Linux
[ 40.263912]
[ 40.268364]
[ 40.270266] /proc/cmdline
[ 40.270268]
[ 41.493061] loop: module loaded
[ 41.514099] LTP: starting ADSP000 (aiodio_sparse)
[ 41.520670] BUG: kernel NULL pointer dereference, address: 0000000000000008
[ 41.522062] #PF: supervisor read access in kernel mode
[ 41.523203] #PF: error_code(0x0000) - not-present page
[ 41.524237] PGD 0 P4D 0
[ 41.524935] Oops: 0000 [#1] SMP PTI
[ 41.525753] CPU: 0 PID: 2408 Comm: aiodio_sparse Not tainted 5.3.0-11851-gb54bfac0e4b30
#1
[ 41.527273] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 41.528740] RIP: 0010:iomap_page_mkwrite+0x40/0x1a0
[ 41.529761] Code: 02 00 00 48 83 ec 08 48 8b 07 48 8b 5f 48 48 c7 c7 70 44 10 a5 48 8b
80 a0 00 00 00 4c 8b 60 20 e8 65 b4 d8 ff e8 d0 36 74 00 <48> 8b 53 08 48 8d 42 ff
83 e2 01 48 0f 44 c3 f0 48 0f ba 28 00 0f
[ 41.533401] RSP: 0000:ffffb1af0047bd58 EFLAGS: 00010246
[ 41.534606] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 41.535976] RDX: 0000000000000000 RSI: 000000000000020e RDI: ffffffffa5104470
[ 41.537365] RBP: ffff8ca897311150 R08: ffff8ca89743c320 R09: 0000000000000000
[ 41.538945] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8ca897311150
[ 41.540543] R13: ffffffffc04f4130 R14: 0000000000000001 R15: ffffb1af0047bdf0
[ 41.541983] FS: 00007f3911f52700(0000) GS:ffff8ca93fc00000(0000)
knlGS:0000000000000000
[ 41.543633] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 41.544898] CR2: 0000000000000008 CR3: 000000019a160000 CR4: 00000000000406f0
[ 41.546347] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 41.547869] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 41.549327] Call Trace:
[ 41.550748] ? down_read+0x21/0xb0
[ 41.551757] __xfs_filemap_fault+0x157/0x220 [xfs]
[ 41.552872] ? mmap_region+0x23f/0x660
[ 41.553852] __handle_mm_fault+0x443/0xf60
[ 41.555004] handle_mm_fault+0xdd/0x220
[ 41.556003] __do_page_fault+0x2f1/0x520
[ 41.557012] ? ksys_mmap_pgoff+0x1c1/0x220
[ 41.558045] do_page_fault+0x30/0x120
[ 41.559111] async_page_fault+0x3e/0x50
[ 41.560118] RIP: 0033:0x7f39116003a8
[ 41.561090] Code: c3 48 81 fa 00 08 00 00 77 a8 48 83 fa 40 77 16 f3 0f 7f 07 f3 0f 7f
47 10 f3 0f 7f 44 17 f0 f3 0f 7f 44 17 e0 c3 48 8d 4f 40 <f3> 0f 7f 07 48 83 e1 c0
f3 0f 7f 44 17 f0 f3 0f 7f 47 10 f3 0f 7f
[ 41.564877] RSP: 002b:00007ffd118c92b8 EFLAGS: 00010206
[ 41.566162] RAX: 00007f390b000000 RBX: 0000000006400000 RCX: 00007f390b000040
[ 41.567774] RDX: 0000000006400000 RSI: 00000000000000aa RDI: 00007f390b000000
[ 41.569273] RBP: 0000000006400000 R08: 0000000000000007 R09: 0000000000000000
[ 41.570835] R10: 000000000000034e R11: 00007f3911600300 R12: 0000000000000007
[ 41.572306] R13: 00007f390b000000 R14: 0000000000000001 R15: 00007ffd118ca280
[ 41.573746] Modules linked in: loop xfs libcrc32c dm_mod intel_rapl_msr sr_mod
intel_rapl_common cdrom sg crct10dif_pclmul ata_generic pata_acpi crc32_pclmul
crc32c_intel ghash_clmulni_intel ppdev bochs_drm drm_vram_helper ttm snd_pcm aesni_intel
drm_kms_helper crypto_simd ata_piix snd_timer syscopyarea sysfillrect cryptd glue_helper
sysimgblt fb_sys_fops snd libata drm soundcore pcspkr joydev serio_raw i2c_piix4
parport_pc floppy parport ip_tables
[ 41.581237] CR2: 0000000000000008
[ 41.582299] ---[ end trace 46a11312ec67d652 ]---
To reproduce:
# build kernel
cd linux
cp config-5.3.0-11851-gb54bfac0e4b30 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage
modules
make HOSTCC=gcc-7 CC=gcc-7 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
Thanks,
Rong Chen