audit: type=1800 audit(1584859894.626:426): pid=17998 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed comm="syz-executor.1" name="/" dev="loop1" ino=1 res=0 XFS (loop2): Unmount and run xfs_repair MINIX-fs: mounting unchecked file system, running fsck is recommended BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 PGD 8ca80067 P4D 8ca80067 PUD a6909067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 18002 Comm: syz-executor.3 Not tainted 4.19.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 XFS (loop2): First 128 bytes of corrupted metadata buffer: 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:359 [inline] RIP: 0010:lock_buffer include/linux/buffer_head.h:365 [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 da 56 bc ff 31 d2 be 6c 01 00 00 48 c7 c7 e0 4a 7c 87 49 89 c4 e8 c4 81 4e ff 49 0f ba 2c 24 02 40 0f 92 c6 31 ff 40 88 74 24 78 e8 fd 2a 6f RSP: 0018:ffff8880a51b7788 EFLAGS: 00010246 0000000091e3b11b: 58 46 53 42 00 96 00 00 00 00 00 00 00 00 10 00 XFSB............ RAX: 0000000000000007 RBX: ffff8880a51b7888 RCX: 1ffffffff11f8a30 RDX: 0000000000000000 RSI: ffffffff88b92960 RDI: ffff88807e556024 RBP: ffff8880a51b7920 R08: ffff88807e556000 R09: fffff940001b4c1f R10: fffff940001b4c1e R11: ffffea0000da60f7 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880a51b784c R15: 0000000000000c98 FS: 00007f6b1e125700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000836ee000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: audit: type=1800 audit(1584859894.636:427): pid=18002 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.3" name="file0" dev="sda1" ino=17218 res=0 0000000032b6beba: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000079683d31: 34 fb 8f b9 e4 bf 48 b6 ad 26 c5 97 eb 4f 5c 19 4.....H..&...O\. minix_get_block+0xe5/0x110 fs/minix/inode.c:379 __block_write_begin_int+0x480/0x17a0 fs/buffer.c:1967 00000000e4ff0b59: 00 00 00 00 00 00 00 04 00 00 00 00 00 00 0d 88 ................ __block_write_begin fs/buffer.c:2017 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2076 minix_write_begin+0x35/0xe0 fs/minix/inode.c:415 000000001c08f641: 00 00 00 00 40 00 0d 89 00 00 00 00 00 00 0d 8a ....@........... 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:1820 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x512/0x760 fs/read_write.c:487 00000000064b2156: 00 00 00 01 00 00 10 00 00 00 00 01 00 00 00 00 ................ 0000000067e10ef7: 00 00 03 5a b4 24 02 00 04 00 00 04 00 00 00 00 ...Z.$.......... vfs_write+0x206/0x550 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 00000000e440c9b2: 00 00 00 00 00 ec 00 00 0c 09 0a 02 0c 00 00 2e ................ do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c849 XFS (loop2): SB validate failed with error -117. Code: ad 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6b1e124c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6b1e1256d4 RCX: 000000000045c849 RDX: 0000000000002000 RSI: 0000000020000380 RDI: 0000000000000006 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cee R14: 00000000004cf12b R15: 000000000076bf0c Modules linked in: CR2: 0000000000000000 ---[ end trace 1d7fb15ae8c2b9ed ]--- 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:359 [inline] RIP: 0010:lock_buffer include/linux/buffer_head.h:365 [inline] RIP: 0010:alloc_branch fs/minix/itree_common.c:88 [inline] RIP: 0010:get_block+0x76c/0x1300 fs/minix/itree_common.c:191 minix_free_inode: bit 1 already cleared Code: 00 00 49 8b bc 24 28 01 00 00 b9 08 00 00 00 e8 da 56 bc ff 31 d2 be 6c 01 00 00 48 c7 c7 e0 4a 7c 87 49 89 c4 e8 c4 81 4e ff 49 0f ba 2c 24 02 40 0f 92 c6 31 ff 40 88 74 24 78 e8 fd 2a 6f RSP: 0018:ffff8880a51b7788 EFLAGS: 00010246 RAX: 0000000000000007 RBX: ffff8880a51b7888 RCX: 1ffffffff11f8a30 RDX: 0000000000000000 RSI: ffffffff88b92960 RDI: ffff88807e556024 RBP: ffff8880a51b7920 R08: ffff88807e556000 R09: fffff940001b4c1f R10: fffff940001b4c1e R11: ffffea0000da60f7 R12: 0000000000000000 audit: type=1800 audit(1584859895.436:428): pid=18042 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.1" name="file0" dev="sda1" ino=17181 res=0 R13: dffffc0000000000 R14: ffff8880a51b784c R15: 0000000000000c98 FS: 00007f6b1e125700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 MINIX-fs: mounting unchecked file system, running fsck is recommended attempt to access beyond end of device CR2: 00007ffe508f4000 CR3: 00000000836ee000 CR4: 00000000001406f0 loop1: rw=2049, want=6434, limit=52 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 attempt to access beyond end of device loop1: rw=0, want=6434, limit=52 XFS (loop2): SB sanity check failed