FYI, we noticed the following commit (built with gcc-7):
commit: 16f187a5f332b9b8f78fcfccc82752797e1d8e07 ("x86: clean up ioremap")
git://git.infradead.org/users/hch/misc.git generic-ioremap
in testcase: ndctl
with following parameters:
bp_memmap: 4G!8G
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):
+----------------------------------------------------+------------+------------+
| | faeeef744c | 16f187a5f3 |
+----------------------------------------------------+------------+------------+
| boot_successes | 50 | 0 |
| boot_failures | 0 | 34 |
| WARNING:at_arch/x86/mm/ioremap.c:#__ioremap_caller | 0 | 34 |
| RIP:__ioremap_caller | 0 | 34 |
+----------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp(a)intel.com>
[ 15.391069] WARNING: CPU: 1 PID: 373 at arch/x86/mm/ioremap.c:177
__ioremap_caller+0x2ed/0x310
[ 15.393063] Modules linked in: nfit_test(O+) dax_pmem(O) nfit(O) sr_mod cdrom sg
intel_rapl_msr intel_rapl_common ata_generic pata_acpi crct10dif_pclmul crc32_pclmul
crc32c_intel ghash_clmulni_intel dax_pmem_compat(O) dax_pmem_core(O) device_dax(O)
nd_pmem(O) nd_btt(O) ppdev snd_pcm aesni_intel nd_e820(O) libnvdimm(O) snd_timer
crypto_simd bochs_drm ata_piix drm_vram_helper ttm snd cryptd glue_helper drm_kms_helper
libata syscopyarea sysfillrect soundcore sysimgblt fb_sys_fops pcspkr drm joydev serio_raw
nfit_test_iomap(O) i2c_piix4 parport_pc floppy parport ip_tables
[ 15.403025] CPU: 1 PID: 373 Comm: kworker/u4:3 Tainted: G O
5.3.0-12404-g16f187a5f332b #1
[ 15.404966] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 15.406793] Workqueue: events_unbound async_run_entry_fn
[ 15.408167] RIP: 0010:__ioremap_caller+0x2ed/0x310
[ 15.409483] Code: 09 c1 e9 99 fe ff ff 0f b7 05 71 20 5c 01 48 09 c1 e9 8a fe ff ff e8
c2 26 02 00 48 89 fe 48 c7 c7 28 25 4f b7 e8 61 d5 08 00 <0f> 0b 45 31 ff e9 9a fd
ff ff 89 c6 48 c7 c7 88 25 4f b7 45 31 ff
[ 15.413382] RSP: 0018:ffffa6a1c0313b88 EFLAGS: 00010282
[ 15.414798] RAX: 0000000000000032 RBX: ffffa6a1c023d000 RCX: 0000000000000000
[ 15.416440] RDX: 0000000000000000 RSI: ffff8b92ffd17778 RDI: ffff8b92ffd17778
[ 15.418197] RBP: 0000000000001000 R08: 00000000000002b0 R09: 0000000000aaaaaa
[ 15.419846] R10: 000ffffa6a1c023d R11: ffff8b92d8dec6c0 R12: 0000000000001000
[ 15.421491] R13: 0000000000000000 R14: ffffffffc05a050b R15: ffff8b92d4e67e48
[ 15.423185] FS: 0000000000000000(0000) GS:ffff8b92ffd00000(0000)
knlGS:0000000000000000
[ 15.424963] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 15.426457] CR2: 00007fd1601f65e0 CR3: 00000001a2c02000 CR4: 00000000000406e0
[ 15.428115] Call Trace:
[ 15.429663] ? nfit_test_request_region+0x25c/0x310 [nfit_test_iomap]
[ 15.431250] devm_nvdimm_memremap+0x10b/0x280 [libnvdimm]
[ 15.432682] nd_region_activate+0x19b/0x330 [libnvdimm]
[ 15.434158] ? _cond_resched+0x19/0x30
[ 15.435344] nd_region_probe+0x48/0x250 [libnvdimm]
[ 15.436677] ? kernfs_add_one+0xe4/0x130
[ 15.437895] nvdimm_bus_probe+0x69/0x190 [libnvdimm]
[ 15.439241] really_probe+0xef/0x430
[ 15.440389] ? driver_allows_async_probing+0x50/0x50
[ 15.441727] driver_probe_device+0x110/0x120
[ 15.443006] ? driver_allows_async_probing+0x50/0x50
[ 15.444347] bus_for_each_drv+0x69/0xb0
[ 15.445517] __device_attach+0xd4/0x160
[ 15.446695] bus_probe_device+0x87/0xa0
[ 15.447852] device_add+0x3f2/0x680
[ 15.448950] ? sched_clock_cpu+0xc/0xc0
[ 15.450145] nd_async_device_register+0xe/0x50 [libnvdimm]
[ 15.451516] async_run_entry_fn+0x39/0x160
[ 15.452693] process_one_work+0x1ae/0x3d0
[ 15.453867] worker_thread+0x3c/0x3b0
[ 15.454979] ? process_one_work+0x3d0/0x3d0
[ 15.456154] kthread+0x11e/0x140
[ 15.457193] ? kthread_park+0xa0/0xa0
[ 15.458340] ret_from_fork+0x35/0x40
[ 15.459431] ---[ end trace 5ea54cb57b6ddf70 ]---
To reproduce:
# build kernel
cd linux
cp config-5.3.0-12404-g16f187a5f332b .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,
lkp