Buffer I/O error on dev loop5, logical block 13466417, async page read attempt to access beyond end of device loop5: rw=0, want=16147214, limit=128 Buffer I/O error on dev loop5, 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: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 attempt to access beyond end of device loop5: rw=0, want=6491550, limit=128 Buffer I/O error on dev loop5, logical block 3245774, async page read attempt to access beyond end of device cfg80211: failed to load regulatory.db loop5: rw=0, want=17669880, limit=128 Buffer I/O error on dev loop5, 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: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8 BUG: sleeping function called from invalid context at fs/buffer.c:1318 in_atomic(): 1, irqs_disabled(): 0, pid: 4276, name: syz.5.19 2 locks held by syz.5.19/4276: #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: inode_lock_shared include/linux/fs.h:748 [inline] #0: 000000006254c55a (&type->i_mutex_dir_key#8){++++}, at: lookup_slow+0x43/0x70 fs/namei.c:1687 #1: 00000000027d9937 (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: 4276 Comm: syz.5.19 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 lookup_last fs/namei.c:2273 [inline] path_lookupat.isra.14+0x180/0x840 fs/namei.c:2318 filename_lookup.part.22+0x160/0x360 fs/namei.c:2348 filename_lookup fs/namei.c:2341 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x8e/0x180 fs/open.c:439 __do_sys_chdir fs/open.c:461 [inline] __se_sys_chdir fs/open.c:459 [inline] __x64_sys_chdir+0x2c/0x40 fs/open.c:459 do_syscall_64+0xd6/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3204c29d29 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:00007f32046a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f3204e19fa0 RCX: 00007f3204c29d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3204ca5b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3204e19fa0 R15: 00007fff6903c1a8