BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 9684, name: syz-executor.1 3 locks held by syz-executor.1/9684: #0: (sb_writers#15){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#15){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&sb->s_type->i_mutex_key#22){+.+.}, at: [] inode_lock include/linux/fs.h:719 [inline] #1: (&sb->s_type->i_mutex_key#22){+.+.}, at: [] do_truncate+0xf0/0x1a0 fs/open.c:61 #2: (pointers_lock){.+.+}, at: [] get_block+0x153/0x1230 fs/sysv/itree.c:217 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 9684 Comm: syz-executor.1 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 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_truncate_page+0x2a8/0x8f0 fs/buffer.c:2944 sysv_truncate+0x1c4/0xd70 fs/sysv/itree.c:383 sysv_setattr+0x115/0x180 fs/sysv/file.c:47 notify_change+0x56b/0xd10 fs/attr.c:315 do_truncate+0xff/0x1a0 fs/open.c:63 vfs_truncate+0x456/0x680 fs/open.c:120 do_sys_truncate.part.0+0xdc/0xf0 fs/open.c:143 do_sys_truncate fs/open.c:137 [inline] SYSC_truncate fs/open.c:155 [inline] SyS_truncate+0x23/0x40 fs/open.c:153 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fea65f840c9 RSP: 002b:00007fea644f6168 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007fea660a3f80 RCX: 00007fea65f840c9 RDX: 0000000000000000 RSI: 000000000000317b RDI: 00000000200001c0 RBP: 00007fea65fdfae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbe4292ff R14: 00007fea644f6300 R15: 0000000000022000 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 9684, name: syz-executor.1 3 locks held by syz-executor.1/9684: #0: (sb_writers#15){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#15){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&sb->s_type->i_mutex_key#22){+.+.}, at: [] inode_lock include/linux/fs.h:719 [inline] #1: (&sb->s_type->i_mutex_key#22){+.+.}, at: [] do_truncate+0xf0/0x1a0 fs/open.c:61 #2: (pointers_lock){++++}, at: [] find_shared fs/sysv/itree.c:290 [inline] #2: (pointers_lock){++++}, at: [] sysv_truncate+0x29c/0xd70 fs/sysv/itree.c:394 F2FS-fs (loop4): Found nat_bits in checkpoint Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 9684 Comm: syz-executor.1 Tainted: G W 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 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 find_shared fs/sysv/itree.c:291 [inline] sysv_truncate+0x2c2/0xd70 fs/sysv/itree.c:394 sysv_setattr+0x115/0x180 fs/sysv/file.c:47 notify_change+0x56b/0xd10 fs/attr.c:315 do_truncate+0xff/0x1a0 fs/open.c:63 vfs_truncate+0x456/0x680 fs/open.c:120 do_sys_truncate.part.0+0xdc/0xf0 fs/open.c:143 do_sys_truncate fs/open.c:137 [inline] SYSC_truncate fs/open.c:155 [inline] SyS_truncate+0x23/0x40 fs/open.c:153 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fea65f840c9 RSP: 002b:00007fea644f6168 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007fea660a3f80 RCX: 00007fea65f840c9 RDX: 0000000000000000 RSI: 000000000000317b RDI: 00000000200001c0 RBP: 00007fea65fdfae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbe4292ff R14: 00007fea644f6300 R15: 0000000000022000 F2FS-fs (loop4): Failed to initialize F2FS segment manager encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found encrypted_key: key user:syz not found overlayfs: unrecognized mount option "xino=off" or missing value audit: type=1800 audit(1675265504.523:2): pid=9830 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=13939 res=0 audit: type=1804 audit(1675265504.583:3): pid=9833 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1318805160/syzkaller.CRd6fd/7/bus" dev="sda1" ino=13939 res=1 REISERFS (device loop1): found reiserfs format "3.6" with non-standard journal REISERFS (device loop1): using ordered data mode reiserfs: using flush barriers REISERFS (device loop1): journal params: device loop1, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 Zero length message leads to an empty skb REISERFS (device loop1): checking transaction log (loop1) REISERFS (device loop1): Using r5 hash to sort names audit: type=1800 audit(1675265505.373:4): pid=9879 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=13911 res=0 overlayfs: unrecognized mount option "xino=off" or missing value audit: type=1804 audit(1675265505.453:5): pid=9881 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1318805160/syzkaller.CRd6fd/8/bus" dev="sda1" ino=13911 res=1 REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. audit: type=1804 audit(1675265505.803:6): pid=9819 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir1877649238/syzkaller.nxTut7/9/file0/bus" dev="loop1" ino=4 res=1 REISERFS warning (device loop1): vs-13060 reiserfs_update_sd_size: stat data of object [2 4 0x0 SD] (nlink == 1) not found (pos 3) REISERFS warning (device loop1): vs-13060 reiserfs_update_sd_size: stat data of object [2 4 0x0 SD] (nlink == 1) not found (pos 3) audit: type=1800 audit(1675265506.373:7): pid=9901 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=13872 res=0 audit: type=1804 audit(1675265506.513:8): pid=9901 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir1140970961/syzkaller.LzOI3g/9/bus" dev="sda1" ino=13872 res=1 overlayfs: unrecognized mount option "xino=off" or missing value syz-executor.1 uses obsolete (PF_INET,SOCK_PACKET) overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value audit: type=1800 audit(1675265507.113:9): pid=9917 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=13963 res=0 audit: type=1804 audit(1675265507.193:10): pid=9918 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1318805160/syzkaller.CRd6fd/9/bus" dev="sda1" ino=13963 res=1 overlayfs: unrecognized mount option "xino=off" or missing value overlayfs: unrecognized mount option "xino=off" or missing value audit: type=1800 audit(1675265507.614:11): pid=9931 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=13911 res=0 BTRFS: device fsid 24c7a497-3402-47dd-bef8-82358f5f30e0 devid 1 transid 8 /dev/loop4 BTRFS info (device loop4): enabling inode map caching BTRFS warning (device loop4): excessive commit interval 622039222 BTRFS info (device loop4): force zlib compression BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents kauditd_printk_skb: 5 callbacks suppressed audit: type=1800 audit(1675265510.154:17): pid=10030 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=13973 res=0 audit: type=1804 audit(1675265510.174:18): pid=10030 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir1140970961/syzkaller.LzOI3g/14/file0" dev="sda1" ino=13973 res=1