Buffer I/O error on dev loop0, logical block 13466417, async page read syz-executor230: attempt to access beyond end of device loop0: rw=0, sector=16147212, nr_sectors = 2 limit=128 Buffer I/O error on dev loop0, logical block 8073606, async page read BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Not tainted 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 syz-executor230: attempt to access beyond end of device loop0: rw=0, sector=6491548, nr_sectors = 2 limit=128 Buffer I/O error on dev loop0, logical block 3245774, async page read syz-executor230: attempt to access beyond end of device loop0: rw=0, sector=17669878, nr_sectors = 2 limit=128 Buffer I/O error on dev loop0, logical block 8834939, async page read BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/pagemap.h:1029 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 folio_lock include/linux/pagemap.h:1029 [inline] __filemap_get_folio+0xbc/0xa60 mm/filemap.c:1864 grow_dev_page fs/buffer.c:1041 [inline] grow_buffers fs/buffer.c:1106 [inline] __getblk_slow fs/buffer.c:1133 [inline] bdev_getblk+0x1fc/0x748 fs/buffer.c:1429 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor230/6095: #0: ffff0000d36c6418 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:404 #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline] #1: ffff0000decac188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x5f0/0x2888 fs/namei.c:3776 #2: ffff80008e989198 (pointers_lock){.+.+}-{2:2}, at: get_block+0x150/0x1384 fs/sysv/itree.c:221 Preemption disabled at: [] get_block+0x150/0x1384 fs/sysv/itree.c:221 CPU: 1 PID: 6095 Comm: syz-executor230 Tainted: G W 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10151 __might_sleep+0x90/0xe4 kernel/sched/core.c:10080 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x94/0x748 fs/buffer.c:1425 __bread_gfp+0xac/0x364 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x234/0x55c fs/sysv/itree.c:104 get_block+0x16c/0x1384 fs/sysv/itree.c:222 block_read_full_folio+0x430/0xcdc fs/buffer.c:2399 sysv_read_folio+0x28/0x38 fs/sysv/itree.c:466 filemap_read_folio+0x14c/0x39c mm/filemap.c:2323 do_read_cache_folio+0x114/0x548 mm/filemap.c:3700 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x6c/0x15c mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x174/0x51c fs/sysv/dir.c:157 sysv_inode_by_name+0xa0/0x2c8 fs/sysv/dir.c:374 sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0xc90/0x2888 fs/namei.c:3776 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6095, name: syz-executor230 preempt_count: 1, expected: 0