audit: type=1800 audit(1588986795.998:2115): pid=22748 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="file0" dev="sda1" ino=15796 res=0 MINIX-fs: mounting unchecked file system, running fsck is recommended audit: type=1800 audit(1588986796.108:2116): pid=22754 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=15854 res=0 BUG: unable to handle kernel NULL pointer dereference at (null) IP: test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] IP: test_and_set_bit_lock arch/x86/include/asm/bitops.h:233 [inline] IP: trylock_buffer include/linux/buffer_head.h:367 [inline] IP: lock_buffer include/linux/buffer_head.h:373 [inline] IP: alloc_branch fs/minix/itree_common.c:88 [inline] IP: get_block+0x6a7/0x10f0 fs/minix/itree_common.c:191 PGD a6fe7067 P4D a6fe7067 PUD 865fc067 PMD 0 MINIX-fs: mounting unchecked file system, running fsck is recommended Oops: 0002 [#1] PREEMPT SMP KASAN MINIX-fs: mounting unchecked file system, running fsck is recommended Modules linked in: CPU: 0 PID: 22748 Comm: syz-executor.0 Not tainted 4.14.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888054baa000 task.stack: ffff8880581f0000 RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] RIP: 0010:test_and_set_bit_lock arch/x86/include/asm/bitops.h:233 [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+0x6a7/0x10f0 fs/minix/itree_common.c:191 RSP: 0018:ffff8880581f7348 EFLAGS: 00010246 attempt to access beyond end of device RAX: 0000000000000007 RBX: ffff8880581f7450 RCX: 1ffffffff10279fc RDX: 0000000000000000 RSI: ffffffff87d842e0 RDI: ffff888054baa024 RBP: ffff8880581f74c8 R08: 0000000000000001 R09: 0000000000000002 R10: ffff888054baa8d8 R11: ffff888054baa000 R12: ffff8880581f7414 loop1: rw=0, want=67160, limit=52 R13: ffff8880553f46f8 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007fd8e44bd700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000086b38000 CR4: 00000000001406f0 attempt to access beyond end of device DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop1: rw=0, want=32692, limit=52 attempt to access beyond end of device minix_get_block+0xd6/0x100 fs/minix/inode.c:379 __block_write_begin_int+0x337/0x1030 fs/buffer.c:2038 loop1: rw=0, want=101830, limit=52 attempt to access beyond end of device loop1: rw=0, want=25450, limit=52 __block_write_begin fs/buffer.c:2088 [inline] block_write_begin+0x58/0x260 fs/buffer.c:2147 minix_write_begin+0x35/0xc0 fs/minix/inode.c:415 generic_perform_write+0x1c9/0x420 mm/filemap.c:3047 attempt to access beyond end of device __generic_file_write_iter+0x227/0x590 mm/filemap.c:3172 loop1: rw=0, want=56714, limit=52 generic_file_write_iter+0x2fa/0x650 mm/filemap.c:3200 call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44e/0x630 fs/read_write.c:482 attempt to access beyond end of device loop1: rw=0, want=73064, limit=52 __kernel_write+0xf5/0x330 fs/read_write.c:501 write_pipe_buf+0x143/0x1b0 fs/splice.c:797 attempt to access beyond end of device splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x332/0x740 fs/splice.c:626 loop1: rw=0, want=117954, limit=52 splice_from_pipe+0xc6/0x120 fs/splice.c:661 default_file_splice_write+0x37/0x80 fs/splice.c:809 attempt to access beyond end of device do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1018 splice_direct_to_actor+0x27e/0x730 fs/splice.c:973 loop1: rw=0, want=67160, limit=52 do_splice_direct+0x164/0x210 fs/splice.c:1061 attempt to access beyond end of device do_sendfile+0x469/0xaf0 fs/read_write.c:1441 loop1: rw=0, want=32692, limit=52 SYSC_sendfile64 fs/read_write.c:1496 [inline] SyS_sendfile64+0x9b/0x110 fs/read_write.c:1488 attempt to access beyond end of device loop1: rw=0, want=101830, limit=52 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c829 RSP: 002b:00007fd8e44bcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 attempt to access beyond end of device RAX: ffffffffffffffda RBX: 00000000004fc2e0 RCX: 000000000045c829 RDX: 0000000020000040 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000a198 R11: 0000000000000246 R12: 00000000ffffffff loop1: rw=0, want=25450, limit=52 R13: 00000000000008dc R14: 00000000004cb816 R15: 00007fd8e44bd6d4 Code: ca 08 00 00 49 8b bf 28 01 00 audit: type=1800 audit(1588986796.138:2117): pid=22758 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=16035 res=0 00 b9 08 00 00 00 e8 7f f6 c5 ff 31 d2 be 74 01 00 00 48 c7 c7 e0 f3 b9 86 49 89 c7 e8 19 33 6d ff 41 0f ba 2f 02 0f 83 1f fe ff ff e8 88 1d 89 ff 4c 89 ff e8 RIP: test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] RSP: ffff8880581f7348 RIP: test_and_set_bit_lock arch/x86/include/asm/bitops.h:233 [inline] RSP: ffff8880581f7348 RIP: trylock_buffer include/linux/buffer_head.h:367 [inline] RSP: ffff8880581f7348 RIP: lock_buffer include/linux/buffer_head.h:373 [inline] RSP: ffff8880581f7348 RIP: alloc_branch fs/minix/itree_common.c:88 [inline] RSP: ffff8880581f7348 RIP: get_block+0x6a7/0x10f0 fs/minix/itree_common.c:191 RSP: ffff8880581f7348 CR2: 0000000000000000 minix_free_inode: bit 1 already cleared ---[ end trace e8482fb115e25f9e ]---