FYI, we noticed the following commit (built with gcc-4.9):
commit: 6ff0aa17d9cf5863950e16230079492f2c266164 ("page cache: Convert page cache
lookups to XArray")
git://git.infradead.org/users/willy/linux-dax.git xarray-2017-12-04
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------------------------------+------------+------------+
| | 19f424aa92 | 6ff0aa17d9 |
+-------------------------------------------------------+------------+------------+
| boot_successes | 1 | 2 |
| boot_failures | 7 | 8 |
| WARNING:possible_circular_locking_dependency_detected | 7 | 8 |
| BUG:kernel_hang_in_test_stage | 0 | 2 |
| WARNING:at_mm/truncate.c:#truncate_inode_pages_range | 0 | 6 |
| RIP:truncate_inode_pages_range | 0 | 6 |
+-------------------------------------------------------+------------+------------+
[ 29.570388] WARNING: CPU: 0 PID: 329 at mm/truncate.c:359
truncate_inode_pages_range+0x53d/0xea0
[ 29.571647] CPU: 0 PID: 329 Comm: blkid Not tainted 4.15.0-rc2-00038-g6ff0aa1 #1
[ 29.572510] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 29.573461] task: 00000000a2295e5c task.stack: 00000000cffa83e2
[ 29.574148] RIP: 0010:truncate_inode_pages_range+0x53d/0xea0
[ 29.574815] RSP: 0018:ffff880010da7ba0 EFLAGS: 00010202
[ 29.575428] RAX: 0000000000000000 RBX: ffffea00003e56c0 RCX: ffffffff812338ef
[ 29.576256] RDX: dffffc0000000000 RSI: dffffc0000000000 RDI: ffffea00003e56d0
[ 29.577073] RBP: ffff880010da7bd8 R08: 0000000000000000 R09: 000000000000000e
[ 29.577906] R10: 000000000a188670 R11: 0000000000000000 R12: ffff880010da7c58
[ 29.578735] R13: 0000000000000000 R14: 0000000000000061 R15: ffff88000bd4dc70
[ 29.579560] FS: 00007fbc27973740(0000) GS:ffffffff82eaa000(0000)
knlGS:0000000000000000
[ 29.580489] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 29.581156] CR2: 00007fbc27550546 CR3: 00000000166a6000 CR4: 00000000000006f0
[ 29.581972] Call Trace:
[ 29.582279] truncate_inode_pages+0x13/0x20
[ 29.582769] kill_bdev+0x75/0x80
[ 29.583156] __blkdev_put+0xd7/0x400
[ 29.583585] ? __mutex_unlock_slowpath+0xa2/0x470
[ 29.584133] blkdev_put+0x8a/0x240
[ 29.584544] blkdev_close+0x57/0x70
[ 29.584957] __fput+0x175/0x3c0
[ 29.585337] ____fput+0xc/0x20
[ 29.585703] task_work_run+0xd5/0x120
[ 29.586138] exit_to_usermode_loop+0x11f/0x130
[ 29.586663] syscall_return_slowpath+0x22e/0x240
[ 29.587207] entry_SYSCALL_64_fastpath+0x93/0x95
[ 29.587747] RIP: 0033:0x7fbc2725b040
[ 29.588174] RSP: 002b:00007fff2e7dbca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
[ 29.589046] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fbc2725b040
[ 29.589866] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
[ 29.590693] RBP: 0000000000000000 R08: 0000000000000028 R09: 0000000001000000
[ 29.591515] R10: 00007fff2e7dba40 R11: 0000000000000246 R12: 0000000000000000
[ 29.592342] R13: 00007fff2e7dcf33 R14: 0000000002240030 R15: 0000000000000000
[ 29.593159] Code: 91 fc ff ff 48 8d 42 ff 48 ff 05 8f 82 5b 03 e9 f1 fc ff ff 48 8d 42
ff 48 ff 05 af 82 5b 03 e9 2d fd ff ff 48 ff 05 9b 82 5b 03 <0f> ff e9 05 fd ff ff
48 8b 7c 24 10 48 ff 05 08 83 5b 03 e8 7b
[ 29.595472] ---[ end trace 63bd0237ccda82b0 ]---
To reproduce:
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,
Xiaolong