loop0: rw=0, want=26932836, limit=128 Buffer I/O error on dev loop0, logical block 13466417, async page read attempt to access beyond end of device loop0: rw=0, want=16147214, limit=128 Buffer I/O error on dev loop0, logical block 8073606, async page read BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 0 PID: 3898 Comm: syz.0.16 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 attempt to access beyond end of device loop0: rw=0, want=6491550, limit=128 Buffer I/O error on dev loop0, logical block 3245774, async page read attempt to access beyond end of device loop0: rw=0, want=17669880, limit=128 Buffer I/O error on dev loop0, logical block 8834939, async page read BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 0 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at include/linux/pagemap.h:481 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 1 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 lock_page include/linux/pagemap.h:481 [inline] pagecache_get_page+0x33b/0x900 mm/filemap.c:1554 find_or_create_page include/linux/pagemap.h:322 [inline] grow_dev_page fs/buffer.c:947 [inline] grow_buffers fs/buffer.c:1016 [inline] __getblk_slow fs/buffer.c:1043 [inline] __getblk_gfp+0x1f7/0x7c0 fs/buffer.c:1320 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 0 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 0 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 0 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 0 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 1 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 1 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098 attempt to access beyond end of device loop4: rw=0, want=6491538, limit=128 Buffer I/O error on dev loop4, logical block 3245768, async page read attempt to access beyond end of device loop4: rw=0, want=17666808, limit=128 Buffer I/O error on dev loop4, logical block 8833403, async page read attempt to access beyond end of device loop4: rw=0, want=26539620, limit=128 Buffer I/O error on dev loop4, logical block 13269809, async page read attempt to access beyond end of device loop4: rw=0, want=16147214, limit=128 Buffer I/O error on dev loop4, logical block 8073606, async page read attempt to access beyond end of device loop4: rw=0, want=6491544, limit=128 Buffer I/O error on dev loop4, logical block 3245771, async page read attempt to access beyond end of device loop4: rw=0, want=17668344, limit=128 Buffer I/O error on dev loop4, logical block 8834171, async page read attempt to access beyond end of device loop4: rw=0, want=26932836, limit=128 Buffer I/O error on dev loop4, logical block 13466417, async page read attempt to access beyond end of device loop4: rw=0, want=16147214, limit=128 Buffer I/O error on dev loop4, logical block 8073606, async page read attempt to access beyond end of device loop4: rw=0, want=6491550, limit=128 Buffer I/O error on dev loop4, logical block 3245774, async page read attempt to access beyond end of device BUG: sleeping function called from invalid context at fs/buffer.c:1318 loop4: rw=0, want=17669880, limit=128 in_atomic(): 1, irqs_disabled(): 0, pid: 3898, name: syz.0.16 Buffer I/O error on dev loop4, logical block 8834939, async page read 2 locks held by syz.0.16/3898: #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 00000000e7ddcb60 (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000afff29ed (pointers_lock){.+.+}, at: get_block+0x158/0x1160 fs/sysv/itree.c:217 Preemption disabled at: [] get_block+0x158/0x1160 fs/sysv/itree.c:217 CPU: 1 PID: 3898 Comm: syz.0.16 Tainted: G W 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20a lib/dump_stack.c:113 ___might_sleep.cold.14+0x1f1/0x265 kernel/sched/core.c:6143 __might_sleep+0x95/0x190 kernel/sched/core.c:6096 __getblk_gfp+0x39/0x7c0 fs/buffer.c:1318 __bread_gfp+0xa/0x190 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] get_branch+0x290/0x630 fs/sysv/itree.c:104 get_block+0x179/0x1160 fs/sysv/itree.c:218 block_read_full_page+0x272/0xbe0 fs/buffer.c:2247 sysv_readpage+0x13/0x20 fs/sysv/itree.c:461 do_read_cache_page.part.5+0x460/0xb70 mm/filemap.c:2805 do_read_cache_page mm/filemap.c:2781 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2893 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page.isra.0+0x5e/0xc0 fs/sysv/dir.c:58 sysv_find_entry+0x19c/0x520 fs/sysv/dir.c:146 sysv_inode_by_name+0x65/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x59/0xc0 fs/sysv/namei.c:46 __lookup_slow+0x212/0x3f0 fs/namei.c:1671 lookup_slow+0x51/0x70 fs/namei.c:1688 walk_component+0x6ee/0xf10 fs/namei.c:1810 link_path_walk.part.12+0x6a2/0xf60 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.13+0x27/0x100 fs/namei.c:2366 filename_parentat.isra.20.part.21+0x154/0x400 fs/namei.c:2388 filename_parentat fs/namei.c:2385 [inline] do_renameat2+0x217/0xa00 fs/namei.c:4552 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5be4089d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5be3b03038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5be4279fa0 RCX: 00007f5be4089d29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000020000040 RBP: 00007f5be4105b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5be4279fa0 R15: 00007ffe89f30098