loop3: rw=0, want=13466418, limit=128 Buffer I/O error on dev loop3, logical block 13466417, async page read attempt to access beyond end of device loop3: rw=0, want=8073606, limit=128 Buffer I/O error on dev loop3, logical block 8073605, async page read BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 11860 Comm: syz-executor.3 Not tainted 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 F2FS-fs (loop1): Invalid log sectors per block(2411855875) log sectorsize(9) lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock do_filp_open+0x179/0x3c0 fs/namei.c:3605 F2FS-fs (loop1): invalid crc value F2FS-fs (loop1): Found nat_bits in checkpoint do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 attempt to access beyond end of device loop3: rw=0, want=3245519, limit=128 Buffer I/O error on dev loop3, logical block 3245518, async page read attempt to access beyond end of device loop3: rw=0, want=8769404, limit=128 Buffer I/O error on dev loop3, logical block 8769403, async page read F2FS-fs (loop1): Mounted with checkpoint version = 753bd00b XFS (loop2): Mounting V4 Filesystem XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. XFS (loop2): Unmounting Filesystem audit: type=1804 audit(1670374660.398:81): pid=11921 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir3520875052/syzkaller.B4iG31/66/bus" dev="sda1" ino=14166 res=1 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 F2FS-fs (loop4): Invalid log sectors per block(2411855875) log sectorsize(9) F2FS-fs (loop4): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop4): invalid crc value F2FS-fs (loop4): Found nat_bits in checkpoint F2FS-fs (loop4): Mounted with checkpoint version = 753bd00b BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at include/linux/pagemap.h:478 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 lock_page include/linux/pagemap.h:478 [inline] pagecache_get_page+0x427/0xab0 mm/filemap.c:1478 find_or_create_page include/linux/pagemap.h:326 [inline] grow_dev_page fs/buffer.c:1004 [inline] grow_buffers fs/buffer.c:1077 [inline] __getblk_slow+0x1dd/0x7a0 fs/buffer.c:1104 __getblk_gfp fs/buffer.c:1383 [inline] __bread_gfp+0x206/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at include/linux/pagemap.h:478 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 lock_page include/linux/pagemap.h:478 [inline] pagecache_get_page+0x427/0xab0 mm/filemap.c:1478 find_or_create_page include/linux/pagemap.h:326 [inline] grow_dev_page fs/buffer.c:1004 [inline] grow_buffers fs/buffer.c:1077 [inline] __getblk_slow+0x1dd/0x7a0 fs/buffer.c:1104 __getblk_gfp fs/buffer.c:1383 [inline] __bread_gfp+0x206/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11860, name: syz-executor.3 3 locks held by syz-executor.3/11860: #0: (sb_writers#22){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#22){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] inode_lock_shared include/linux/fs.h:729 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] do_last fs/namei.c:3333 [inline] #1: (&type->i_mutex_dir_key#12){.+.+}, at: [] path_openat+0x149b/0x2970 fs/namei.c:3571 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 11860 Comm: syz-executor.3 Tainted: G W 4.14.300-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 __getblk_gfp fs/buffer.c:1381 [inline] __bread_gfp+0x3e/0x2e0 fs/buffer.c:1428 sb_bread include/linux/buffer_head.h:343 [inline] get_branch+0x2ac/0x600 fs/sysv/itree.c:104 get_block+0x176/0x1230 fs/sysv/itree.c:218 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] dir_get_page fs/sysv/dir.c:58 [inline] sysv_find_entry+0x20d/0x610 fs/sysv/dir.c:146 sysv_inode_by_name+0x5b/0x330 fs/sysv/dir.c:360 sysv_lookup fs/sysv/namei.c:53 [inline] sysv_lookup+0x64/0xe0 fs/sysv/namei.c:46 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3