MINIX-fs: mounting unchecked file system, running fsck is recommended Process accounting resumed BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 PGD a356f067 P4D a356f067 PUD a96d5067 PMD 0 audit: type=1800 audit(1594575920.182:629): pid=32182 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="file0" dev="sda1" ino=17218 res=0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 32161 Comm: syz-executor.3 Not tainted 4.19.132-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+0x78b/0x1340 fs/minix/itree_common.c:191 Code: 00 00 49 8b bc 24 28 01 00 00 b9 08 00 00 00 e8 8b 73 bb ff 31 d2 be 74 01 00 00 48 c7 c7 a0 46 9c 87 49 89 c4 e8 25 37 4b ff 49 0f ba 2c 24 02 0f 92 c0 31 ff 89 c6 88 44 24 78 e8 4e 38 6d init_special_inode: bogus i_mode (0) for inode loop1:1 RSP: 0018:ffff88805099f4c8 EFLAGS: 00010246 RAX: 0000000000000007 RBX: 0000000000009512 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff88804ccea024 RBP: ffff88805099f660 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000060ac4488 R12: 0000000000000000 MINIX-fs: mounting unchecked file system, running fsck is recommended R13: dffffc0000000000 R14: ffff88805099f58c R15: ffff88805099f5c8 FS: 00007f6da310f700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000009ee70000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000008000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: minix_get_block+0xe5/0x110 fs/minix/inode.c:379 __block_write_begin_int+0x46c/0x17b0 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/0x220 fs/minix/inode.c:415 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3162 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3287 generic_file_write_iter+0x3f8/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+0x51b/0x770 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 do_acct_process+0xcbe/0x10c0 kernel/acct.c:520 acct_pin_kill+0x29/0xf0 kernel/acct.c:174 pin_kill+0x174/0x7b0 fs/fs_pin.c:50 mnt_pin_kill+0x6c/0x1c0 fs/fs_pin.c:87 cleanup_mnt+0x216/0x290 fs/namespace.c:1095 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45cba9 Code: 8d b6 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 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6da310ec78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 000000000050ca80 RCX: 000000000045cba9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000500 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cb6 R14: 00000000004cf091 R15: 00007f6da310f6d4 Modules linked in: CR2: 0000000000000000 ---[ end trace 8f5685b57e3c8598 ]--- minix_free_inode: bit 1 already cleared 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+0x78b/0x1340 fs/minix/itree_common.c:191 Code: 00 00 49 8b bc 24 28 01 00 00 b9 08 00 00 00 e8 8b 73 bb ff 31 d2 be 74 01 00 00 48 c7 c7 a0 46 9c 87 49 89 c4 e8 25 37 4b ff 49 0f ba 2c 24 02 0f 92 c0 31 ff 89 c6 88 44 24 78 e8 4e 38 6d RSP: 0018:ffff88805099f4c8 EFLAGS: 00010246 RAX: 0000000000000007 RBX: 0000000000009512 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff88804ccea024 RBP: ffff88805099f660 R08: 0000000000000001 R09: 0000000000000000 caif:caif_disconnect_client(): nothing to disconnect R10: 0000000000000005 R11: 0000000060ac4488 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88805099f58c R15: ffff88805099f5c8 caif:caif_disconnect_client(): nothing to disconnect FS: 00007f6da310f700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 init_special_inode: bogus i_mode (0) for inode loop1:1 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 MINIX-fs: mounting unchecked file system, running fsck is recommended CR2: 000000000050b410 CR3: 000000009ee70000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000008000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400