Buffer I/O error on dev loop0, logical block 13466417, async page read syz-executor.0: 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: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 5478 Comm: syz-executor.0 Not tainted 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 syz-executor.0: 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-executor.0: 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: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/pagemap.h:1029 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 folio_lock+0x29/0x1a0 include/linux/pagemap.h:1029 __filemap_get_folio+0xa3/0xbb0 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+0x243/0x6d0 fs/buffer.c:1429 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875 #1: ffffffff8dc07058 (pointers_lock){.+.+}-{2:2}, at: get_block+0x165/0x1710 fs/sysv/itree.c:221 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5478 Comm: syz-executor.0 Tainted: G W 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10151 might_alloc include/linux/sched/mm.h:306 [inline] bdev_getblk+0x92/0x6d0 fs/buffer.c:1425 __bread_gfp+0xac/0x420 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] get_branch+0x2af/0x660 fs/sysv/itree.c:104 get_block+0x188/0x1710 fs/sysv/itree.c:222 block_read_full_folio+0x474/0xea0 fs/buffer.c:2399 filemap_read_folio+0x19c/0x780 mm/filemap.c:2323 do_read_cache_folio+0x134/0x810 mm/filemap.c:3691 do_read_cache_page+0x30/0x200 mm/filemap.c:3757 read_mapping_page include/linux/pagemap.h:871 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x67/0xe0 fs/sysv/namei.c:38 lookup_one_qstr_excl+0x11b/0x250 fs/namei.c:1609 filename_create+0x297/0x530 fs/namei.c:3876 do_mkdirat+0xbd/0x3a0 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f925ea7b467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f925f7a1ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00007f925ea7b467 RDX: 00000000000001ff RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f925f7a1f40 R14: 0000000000000000 R15: 0000000020000100 BUG: sleeping function called from invalid context at include/linux/pagemap.h:1029 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5478, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz-executor.0/5478: #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #0: ffff88806ea6c188 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3875