loop2: rw=0, want=212, limit=52 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_block (loop3:24937): bit already cleared minix_free_block (loop3:12373): bit already cleared audit: type=1800 audit(1589147978.519:2185): pid=6893 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=15980 res=0 BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 PGD 20cdfa067 P4D 20cdfa067 PUD 20c625067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6922 Comm: syz-executor.3 Not tainted 4.19.122-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline] RIP: 0010:test_and_set_bit_lock arch/x86/include/asm/bitops.h:223 [inline] RIP: 0010:trylock_buffer include/linux/buffer_head.h:367 [inline] RIP: 0010:lock_buffer include/linux/buffer_head.h:373 [inline] RIP: 0010:alloc_branch fs/minix/itree_common.c:88 [inline] RIP: 0010:get_block+0x76c/0x1300 fs/minix/itree_common.c:191 Code: 00 00 49 8b bc 24 28 01 00 00 b9 08 00 00 00 e8 7a 40 bc ff 31 d2 be 74 01 00 00 48 c7 c7 20 4b 9c 87 49 89 c4 e8 e4 42 4e ff 49 0f ba 2c 24 02 40 0f 92 c6 31 ff 40 88 74 24 78 e8 0d f1 6e audit: type=1804 audit(1589147978.659:2186): pid=6910 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir851780781/syzkaller.I1lSbY/2052/file0" dev="loop5" ino=1 res=1 RSP: 0018:ffff88820064f788 EFLAGS: 00010246 RAX: 0000000000000007 RBX: ffff88820064f888 RCX: 1ffffffff1238a88 RDX: 0000000000000000 RSI: ffffffff88d929a0 RDI: ffff8880478e8164 RBP: ffff88820064f920 R08: ffff8880478e8140 R09: fffff94000f6565f R10: fffff94000f6565e R11: ffffea0007b2b2f7 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88820064f84c R15: 0000000000000c98 FS: 00007f664bb84700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000020714d000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: audit: type=1800 audit(1589147978.779:2187): pid=6915 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.2" name="file0" dev="sda1" ino=16572 res=0 minix_get_block+0xe5/0x110 fs/minix/inode.c:379 __block_write_begin_int+0x480/0x17a0 fs/buffer.c:1978 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 minix_write_begin+0x35/0xe0 fs/minix/inode.c:415 audit: type=1800 audit(1589147978.959:2188): pid=6922 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.3" name="file0" dev="sda1" ino=17124 res=0 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3162 __generic_file_write_iter+0x24c/0x610 mm/filemap.c:3287 generic_file_write_iter+0x37f/0x729 mm/filemap.c:3315 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x512/0x760 fs/read_write.c:487 audit: type=1800 audit(1589147978.999:2189): pid=6923 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=17140 res=0 vfs_write+0x206/0x550 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe audit: type=1800 audit(1589147979.019:2190): pid=6915 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed comm="syz-executor.2" name="/" dev="loop2" ino=1 res=0 RIP: 0033:0x45c829 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f664bb83c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000050b6a0 RCX: 000000000045c829 RDX: 000000000000ff7f RSI: 0000000020000280 RDI: 0000000000000005 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cab R14: 00000000004cedf2 R15: 00007f664bb846d4 Modules linked in: CR2: 0000000000000000 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=2049, want=6434, limit=52 loop5: rw=0, want=49876, limit=52 attempt to access beyond end of device attempt to access beyond end of device loop3: rw=2049, want=6436, limit=52 loop5: rw=0, want=49876, limit=52 attempt to access beyond end of device loop3: rw=2049, want=6438, limit=52 MINIX-fs: mounting unchecked file system, running fsck is recommended attempt to access beyond end of device loop3: rw=2049, want=6440, limit=52 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_block (loop0:24937): bit already cleared minix_free_block (loop0:12373): bit already cleared attempt to access beyond end of device loop2: rw=0, want=212, limit=52 Trying to free block not in datazone attempt to access beyond end of device MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_block (loop0:5263): bit already cleared loop2: rw=0, want=212, limit=52 attempt to access beyond end of device minix_free_block (loop0:46303): bit already cleared loop5: rw=0, want=49876, limit=52 attempt to access beyond end of device minix_free_block (loop0:3973): bit already cleared loop5: rw=0, want=49876, limit=52 minix_free_block (loop0:35845): bit already cleared minix_free_block (loop5:24937): bit already cleared Trying to free block not in datazone MINIX-fs: mounting unchecked file system, running fsck is recommended attempt to access beyond end of device loop2: rw=0, want=212, limit=52 attempt to access beyond end of device loop2: rw=0, want=212, limit=52 ---[ end trace 47d348cb1b52e20d ]--- RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline] RIP: 0010:test_and_set_bit_lock arch/x86/include/asm/bitops.h:223 [inline] RIP: 0010:trylock_buffer include/linux/buffer_head.h:367 [inline] RIP: 0010:lock_buffer include/linux/buffer_head.h:373 [inline] RIP: 0010:alloc_branch fs/minix/itree_common.c:88 [inline] RIP: 0010:get_block+0x76c/0x1300 fs/minix/itree_common.c:191 Code: 00 00 49 8b bc 24 28 01 00 00 b9 08 00 00 00 e8 7a 40 bc ff 31 d2 be 74 01 00 00 48 c7 c7 20 4b 9c 87 49 89 c4 e8 e4 42 4e ff 49 0f ba 2c 24 02 40 0f 92 c6 31 ff 40 88 74 24 78 e8 0d f1 6e RSP: 0018:ffff88820064f788 EFLAGS: 00010246 attempt to access beyond end of device RAX: 0000000000000007 RBX: ffff88820064f888 RCX: 1ffffffff1238a88 RDX: 0000000000000000 RSI: ffffffff88d929a0 RDI: ffff8880478e8164 RBP: ffff88820064f920 R08: ffff8880478e8140 R09: fffff94000f6565f loop2: rw=0, want=212, limit=52 R10: fffff94000f6565e R11: ffffea0007b2b2f7 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88820064f84c R15: 0000000000000c98 FS: 00007f664bb84700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000026e7978 CR3: 000000020714d000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400