Bug 211577 - [generic/475] WARNING: CPU: 1 PID: 11596 at fs/iomap/buffered-io.c:79 iomap_page_release+0x220/0x290
Summary: [generic/475] WARNING: CPU: 1 PID: 11596 at fs/iomap/buffered-io.c:79 iomap_p...
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: XFS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: FileSystem/XFS Default Virtual Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-05 18:14 UTC by Zorro Lang
Modified: 2021-02-05 18:16 UTC (History)
0 users

See Also:
Kernel Version: linux 5.11.0-rc6+
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Zorro Lang 2021-02-05 18:14:47 UTC
xfstests generic/475 hit a kernel warning as below
# ./check generic/475
FSTYP         -- xfs (debug)
PLATFORM      -- Linux/ppc64le ibm-p9z-xx-xxx 5.11.0-rc6+ #4 SMP Fri Feb 5 10:22:14 EST 2021
MKFS_OPTIONS  -- -f -m crc=1,finobt=1,rmapbt=1,reflink=1,inobtcount=1,bigtime=1 /dev/sda3
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/sda3 /mnt/xfstests/scratch

generic/475     _check_dmesg: something found in dmesg (see /var/lib/xfstests/results//generic/475.dmesg)

Ran: generic/475
Failures: generic/475
Failed 1 of 1 tests

[ 1026.319574] XFS (dm-0): xfs_imap_lookup: xfs_ialloc_read_agi() returned error -5, agno 2
[ 1026.319704] XFS (dm-0): xfs_do_force_shutdown(0x2) called from line 1196 of file fs/xfs/xfs_log.c. Return address = c0080000019a801c
[ 1026.319715] XFS (dm-0): Log I/O Error Detected. Shutting down filesystem
[ 1026.319721] XFS (dm-0): Please unmount the filesystem and rectify the problem(s)
[ 1026.320282] XFS (dm-0): xfs_imap_lookup: xfs_ialloc_read_agi() returned error -5, agno 0
[ 1026.822032] ------------[ cut here ]------------
[ 1026.822053] WARNING: CPU: 1 PID: 11596 at fs/iomap/buffered-io.c:79 iomap_page_release+0x220/0x290
[ 1026.822069] Modules linked in: dm_mod bonding rfkill sunrpc uio_pdrv_genirq uio pseries_rng drm fuse drm_panel_orientation_quirks ip_tables xfs libcrc32c sd_mod t10_pi ibmvscsi ibmveth scs
i_transport_srp xts vmx_crypto
[ 1026.822151] CPU: 1 PID: 11596 Comm: umount Not tainted 5.11.0-rc6+ #4
[ 1026.822162] NIP:  c0000000006a0f20 LR: c0000000006a0df4 CTR: c0000000006a1230
[ 1026.822172] REGS: c00000002b847590 TRAP: 0700   Not tainted  (5.11.0-rc6+)
[ 1026.822181] MSR:  800000000282b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE>  CR: 44004882  XER: 20040123
[ 1026.822231] CFAR: c0000000006a0e28 IRQMASK: 0
               GPR00: c000000000475028 c00000002b847830 c000000002127000 0000000000000010
               GPR04: 0000000000000000 0000000000000010 0000000000000000 ffffffffffffffff
               GPR08: ffffffffffff0000 0000000000000000 0000000000000000 0000000000000000
               GPR12: c0000000006a1230 c00000001ec9ee00 0000000000000000 00007fffe03f6b64
               GPR16: 000000000ee6b280 00007fffe03f6ad0 0000000000000000 0000000000000000
               GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000012c4a40
               GPR24: 0000000000000000 0000000000000001 ffffffffffffffff c000000021aacf40
               GPR28: c00000002b847968 c00000000c027440 0000000000000001 c00c00000015c240
[ 1026.822390] NIP [c0000000006a0f20] iomap_page_release+0x220/0x290
[ 1026.822400] LR [c0000000006a0df4] iomap_page_release+0xf4/0x290
[ 1026.822410] Call Trace:
[ 1026.822416] [c00000002b847830] [c0000000006a1484] iomap_invalidatepage+0x254/0x2c0 (unreliable)                                                                                            
[ 1026.822434] [c00000002b847880] [c000000000475028] truncate_cleanup_page+0xa8/0x1d0
[ 1026.822449] [c00000002b8478b0] [c000000000475e7c] truncate_inode_pages_range+0x22c/0x9d0
[ 1026.822464] [c00000002b847ac0] [c0000000005e2818] evict+0x218/0x230
[ 1026.822478] [c00000002b847b00] [c0000000005e28c0] dispose_list+0x90/0xe0
[ 1026.822491] [c00000002b847b40] [c0000000005e2ab4] evict_inodes+0x1a4/0x270
[ 1026.822504] [c00000002b847be0] [c0000000005b1af0] generic_shutdown_super+0x70/0x170
[ 1026.822518] [c00000002b847c60] [c0000000005b1f08] kill_block_super+0x38/0xb0
[ 1026.822531] [c00000002b847c90] [c0000000005b3380] deactivate_locked_super+0x80/0x140
[ 1026.822545] [c00000002b847cd0] [c0000000005ee64c] cleanup_mnt+0x15c/0x240
[ 1026.822559] [c00000002b847d20] [c00000000019a3a4] task_work_run+0xb4/0x120
[ 1026.822573] [c00000002b847d70] [c000000000024ca4] do_notify_resume+0x164/0x170
[ 1026.822588] [c00000002b847da0] [c00000000003b51c] syscall_exit_prepare+0x24c/0x390
[ 1026.822603] [c00000002b847e10] [c00000000000d380] system_call_vectored_common+0x100/0x26c
[ 1026.822617] Instruction dump:
[ 1026.822626] 4bf01109 60000000 2c3e0000 e8610028 4082fea0 4bdce3d5 60000000 4bfffe94
[ 1026.822658] 3869ffff 60000000 4bfffe50 60420000 <0fe00000> 4bffff08 60000000 60420000
[ 1026.822690] irq event stamp: 4666
[ 1026.822697] hardirqs last  enabled at (4665): [<c000000000542b04>] __slab_free+0x414/0x610
[ 1026.822709] hardirqs last disabled at (4666): [<c0000000000098f4>] program_check_common_virt+0x304/0x360
[ 1026.822720] softirqs last  enabled at (4618): [<c00000000060889c>] wb_queue_work+0x11c/0x300
[ 1026.822731] softirqs last disabled at (4614): [<c000000000608824>] wb_queue_work+0xa4/0x300
[ 1026.822742] ---[ end trace 2285fc94a41146ef ]---
Comment 1 Zorro Lang 2021-02-05 18:16:38 UTC
Follow willy's suggestion, add a dump_page after the warning, then get:
[  190.776418] ------------[ cut here ]------------
[  190.776433] WARNING: CPU: 21 PID: 4522 at fs/iomap/buffered-io.c:79 iomap_page_release+0x220/0x2a0
[  190.776444] Modules linked in: dm_mod bonding rfkill sunrpc uio_pdrv_genirq pseries_rng uio drm fuse drm_panel_orientation_quirks ip_tables xfs libcrc32c sd_mod t10_pi ibmvscsi ibmveth scs
i_transport_srp xts vmx_crypto
[  190.776496] CPU: 21 PID: 4522 Comm: umount Not tainted 5.11.0-rc6+ #5
[  190.776504] NIP:  c0000000006a0f20 LR: c0000000006a0df4 CTR: c0000000006a1240
[  190.776511] REGS: c00000002543b590 TRAP: 0700   Not tainted  (5.11.0-rc6+)
[  190.776517] MSR:  800000000282b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE>  CR: 44004882  XER: 20040123
[  190.776550] CFAR: c0000000006a0e2c IRQMASK: 0 
               GPR00: c000000000475028 c00000002543b830 c000000002127000 0000000000000010 
               GPR04: 0000000000000000 0000000000000010 0000000000000000 ffffffffffffffff 
               GPR08: ffffffffffff0000 0000000000000000 0000000000000000 0000000000000000 
               GPR12: c0000000006a1240 c00000001ec71200 0000000000000000 00007fffc61db2a4 
               GPR16: 000000000ee6b280 00007fffc61db210 0000000000000000 0000000000000000 
               GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000012c4a40 
               GPR24: 0000000000000000 0000000000000001 ffffffffffffffff c0000000225c22c0 
               GPR28: c00000002543b9c0 c00000000b92aaa0 0000000000000001 c00c000000134880 
[  190.776653] NIP [c0000000006a0f20] iomap_page_release+0x220/0x2a0
[  190.776661] LR [c0000000006a0df4] iomap_page_release+0xf4/0x2a0
[  190.776667] Call Trace:
[  190.776672] [c00000002543b830] [c0000000006a1494] iomap_invalidatepage+0x254/0x2c0 (unreliable)                                                                                            
[  190.776683] [c00000002543b880] [c000000000475028] truncate_cleanup_page+0xa8/0x1d0
[  190.776694] [c00000002543b8b0] [c000000000475e7c] truncate_inode_pages_range+0x22c/0x9d0
[  190.776703] [c00000002543bac0] [c0000000005e2818] evict+0x218/0x230
[  190.776713] [c00000002543bb00] [c0000000005e28c0] dispose_list+0x90/0xe0
[  190.776722] [c00000002543bb40] [c0000000005e2ab4] evict_inodes+0x1a4/0x270
[  190.776731] [c00000002543bbe0] [c0000000005b1af0] generic_shutdown_super+0x70/0x170
[  190.776740] [c00000002543bc60] [c0000000005b1f08] kill_block_super+0x38/0xb0
[  190.776750] [c00000002543bc90] [c0000000005b3380] deactivate_locked_super+0x80/0x140
[  190.776759] [c00000002543bcd0] [c0000000005ee64c] cleanup_mnt+0x15c/0x240
[  190.776768] [c00000002543bd20] [c00000000019a3a4] task_work_run+0xb4/0x120
[  190.776778] [c00000002543bd70] [c000000000024ca4] do_notify_resume+0x164/0x170
[  190.776788] [c00000002543bda0] [c00000000003b51c] syscall_exit_prepare+0x24c/0x390
[  190.776797] [c00000002543be10] [c00000000000d380] system_call_vectored_common+0x100/0x26c
[  190.776806] Instruction dump:
[  190.776812] 4bf01109 60000000 2c3e0000 e8610028 4082fea0 4bdce3d5 60000000 4bfffe94
[  190.776833] 3869ffff 60000000 4bfffe50 60420000 <0fe00000> 3c82ff1b 7fe3fb78 38844860
[  190.776854] irq event stamp: 4768
[  190.776859] hardirqs last  enabled at (4767): [<c000000000542b04>] __slab_free+0x414/0x610
[  190.776868] hardirqs last disabled at (4768): [<c0000000000098f4>] program_check_common_virt+0x304/0x360                                                                                   
[  190.776876] softirqs last  enabled at (4626): [<c00000000060889c>] wb_queue_work+0x11c/0x300                                                                                               
[  190.776884] softirqs last disabled at (4622): [<c000000000608824>] wb_queue_work+0xa4/0x300
[  190.776892] ---[ end trace 9bf99780f0602898 ]---
[  190.776897] page:00000000b70f92be refcount:2 mapcount:0 mapping:0000000084261c98 index:0xa pfn:0x4d22                                                                                      
[  190.776907] aops:xfs_address_space_operations [xfs] ino:458aa
[  190.776962] flags: 0x13ffff800000013(locked|referenced|lru)
[  190.776970] raw: 013ffff800000013 c00c0000000d6e48 c00c000000136088 c0000000225c22c0
[  190.776978] raw: 000000000000000a 0000000000000000 00000002ffffffff c0000000160bb000
[  190.776984] page dumped because: iomap_page_release:PageUptodate
[  190.776989] pages's memcg:c0000000160bb000
[  190.849634] XFS (dm-0): Unmounting Filesystem

Note You need to log in before you can comment on or make changes to this bug.