VFS: Found a Xenix FS (block size = 512) on device loop2 BUG: sleeping function called from invalid context at fs/buffer.c:1381 in_atomic(): 1, irqs_disabled(): 0, pid: 11254, name: syz-executor.2 3 locks held by syz-executor.2/11254: #0: (sb_writers#16){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#16){.+.+}, at: [] mnt_want_write+0x3a/0xb0 fs/namespace.c:386 #1: (&sb->s_type->i_mutex_key#23){+.+.}, at: [] inode_lock include/linux/fs.h:719 [inline] #1: (&sb->s_type->i_mutex_key#23){+.+.}, 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: 11254 Comm: syz-executor.2 Not tainted 4.14.305-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:6040 __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:0x7f4f01ef10f9 RSP: 002b:00007f4f00463168 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f4f02010f80 RCX: 00007f4f01ef10f9 RDX: 0000000000000000 RSI: 000000000000317b RDI: 00000000200001c0 RBP: 00007f4f01f4cae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff2b0c1b9f R14: 00007f4f00463300 R15: 0000000000022000 VFS: Found a Xenix FS (block size = 512) on device loop2 VFS: Found a Xenix FS (block size = 512) on device loop2 VFS: Found a Xenix FS (block size = 512) on device loop2 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1675755870.428:46): pid=11319 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir2441198036/syzkaller.Cag8NU/58/file0/bus" dev="loop2" ino=18 res=1 audit: type=1804 audit(1675755870.498:47): pid=11342 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir2441198036/syzkaller.Cag8NU/58/file0/bus" dev="loop2" ino=18 res=1 syz-executor.2 (11319) used greatest stack depth: 24128 bytes left EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1675755870.998:48): pid=11371 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/52/file0/bus" dev="loop3" ino=18 res=1 audit: type=1804 audit(1675755871.068:49): pid=11369 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir2441198036/syzkaller.Cag8NU/59/file0/bus" dev="loop2" ino=18 res=1 syz-executor.3 (11371) used greatest stack depth: 23736 bytes left audit: type=1804 audit(1675755871.068:50): pid=11395 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/52/file0/bus" dev="loop3" ino=18 res=1 audit: type=1804 audit(1675755871.148:51): pid=11399 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir2441198036/syzkaller.Cag8NU/59/file0/bus" dev="loop2" ino=18 res=1 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1675755871.708:52): pid=11427 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/53/file0/bus" dev="loop3" ino=18 res=1 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1675755871.808:53): pid=11454 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/53/file0/bus" dev="loop3" ino=18 res=1 audit: type=1804 audit(1675755871.858:54): pid=11439 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir2441198036/syzkaller.Cag8NU/60/file0/bus" dev="loop2" ino=18 res=1 audit: type=1804 audit(1675755871.958:55): pid=11463 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir2441198036/syzkaller.Cag8NU/60/file0/bus" dev="loop2" ino=18 res=1 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue syz-executor.3 (11470) used greatest stack depth: 23536 bytes left EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop3): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop3): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop3): This should not happen!! Data will be lost EXT4-fs (loop3): Total free blocks count 0 EXT4-fs (loop3): Free/Dirty block details EXT4-fs (loop3): free_blocks=2415919104 EXT4-fs (loop3): dirty_blocks=16 EXT4-fs (loop3): Block reservation details EXT4-fs (loop3): i_reserved_data_blocks=1 device lo entered promiscuous mode EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue kauditd_printk_skb: 12 callbacks suppressed audit: type=1804 audit(1675755875.878:68): pid=11716 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/59/file0/bus" dev="loop3" ino=18 res=1 EXT4-fs error (device loop3): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop3): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 audit: type=1804 audit(1675755875.878:69): pid=11716 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/59/file0/bus" dev="loop3" ino=18 res=1 EXT4-fs (loop3): This should not happen!! Data will be lost EXT4-fs (loop3): Total free blocks count 0 EXT4-fs error (device loop4): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop3): Free/Dirty block details audit: type=1804 audit(1675755876.008:70): pid=11717 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir439777169/syzkaller.8t92Zq/62/file0/bus" dev="loop4" ino=18 res=1 EXT4-fs (loop4): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop3): free_blocks=2415919104 EXT4-fs (loop4): This should not happen!! Data will be lost EXT4-fs (loop3): dirty_blocks=16 EXT4-fs (loop3): Block reservation details audit: type=1804 audit(1675755876.008:71): pid=11717 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir439777169/syzkaller.8t92Zq/62/file0/bus" dev="loop4" ino=18 res=1 EXT4-fs (loop4): Total free blocks count 0 EXT4-fs (loop3): i_reserved_data_blocks=1 EXT4-fs (loop4): Free/Dirty block details EXT4-fs (loop4): free_blocks=2415919104 EXT4-fs (loop4): dirty_blocks=16 EXT4-fs (loop4): Block reservation details EXT4-fs (loop4): i_reserved_data_blocks=1 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue audit: type=1804 audit(1675755876.738:72): pid=11776 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir439777169/syzkaller.8t92Zq/63/file0/bus" dev="loop4" ino=18 res=1 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop1): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters audit: type=1804 audit(1675755876.768:73): pid=11776 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir439777169/syzkaller.8t92Zq/63/file0/bus" dev="loop4" ino=18 res=1 EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop1): This should not happen!! Data will be lost audit: type=1804 audit(1675755876.768:74): pid=11770 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir1087926200/syzkaller.fphu7k/57/file0/bus" dev="loop1" ino=18 res=1 audit: type=1804 audit(1675755876.768:75): pid=11770 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.1" name="/root/syzkaller-testdir1087926200/syzkaller.fphu7k/57/file0/bus" dev="loop1" ino=18 res=1 audit: type=1804 audit(1675755876.928:76): pid=11784 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/60/file0/bus" dev="loop3" ino=18 res=1 audit: type=1804 audit(1675755876.928:77): pid=11784 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir1524027929/syzkaller.On5ter/60/file0/bus" dev="loop3" ino=18 res=1 EXT4-fs (loop1): Total free blocks count 0 EXT4-fs error (device loop4): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs error (device loop3): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop1): Free/Dirty block details EXT4-fs (loop4): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop1): free_blocks=2415919104 EXT4-fs (loop3): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop4): This should not happen!! Data will be lost EXT4-fs (loop1): dirty_blocks=16 EXT4-fs (loop1): Block reservation details EXT4-fs (loop4): Total free blocks count 0 EXT4-fs (loop3): This should not happen!! Data will be lost EXT4-fs (loop4): Free/Dirty block details EXT4-fs (loop1): i_reserved_data_blocks=1 EXT4-fs (loop3): Total free blocks count 0 EXT4-fs (loop4): free_blocks=2415919104 EXT4-fs (loop4): dirty_blocks=16 EXT4-fs (loop3): Free/Dirty block details EXT4-fs (loop4): Block reservation details EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): free_blocks=2415919104 EXT4-fs (loop3): dirty_blocks=16 EXT4-fs (loop4): i_reserved_data_blocks=1 EXT4-fs (loop3): Block reservation details EXT4-fs (loop3): i_reserved_data_blocks=1 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop0): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop0): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs error (device loop4): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop1): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop4): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop0): free_blocks=2415919104 EXT4-fs (loop0): dirty_blocks=16 EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop4): This should not happen!! Data will be lost EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=1 EXT4-fs (loop1): This should not happen!! Data will be lost EXT4-fs error (device loop3): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop1): Total free blocks count 0 EXT4-fs (loop4): Total free blocks count 0 EXT4-fs (loop1): Free/Dirty block details EXT4-fs (loop1): free_blocks=2415919104 EXT4-fs (loop1): dirty_blocks=16 EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=1 EXT4-fs (loop4): Free/Dirty block details EXT4-fs (loop3): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop4): free_blocks=2415919104 EXT4-fs (loop4): dirty_blocks=16 syz-executor.1 (11835) used greatest stack depth: 23416 bytes left EXT4-fs (loop4): Block reservation details EXT4-fs (loop3): This should not happen!! Data will be lost EXT4-fs (loop3): Total free blocks count 0 EXT4-fs (loop4): i_reserved_data_blocks=1 EXT4-fs (loop3): Free/Dirty block details EXT4-fs (loop3): free_blocks=2415919104 EXT4-fs (loop3): dirty_blocks=16 EXT4-fs (loop3): Block reservation details EXT4-fs (loop3): i_reserved_data_blocks=1 EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop0): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop0): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=2415919104 EXT4-fs (loop0): dirty_blocks=16 EXT4-fs (loop0): Block reservation details EXT4-fs error (device loop1): ext4_mb_generate_buddy:754: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop0): i_reserved_data_blocks=1 EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop1): This should not happen!! Data will be lost EXT4-fs (loop1): Total free blocks count 0 EXT4-fs (loop1): Free/Dirty block details EXT4-fs (loop1): free_blocks=2415919104 EXT4-fs (loop1): dirty_blocks=16 EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=1