Process accounting resumed Process accounting resumed attempt to access beyond end of device Process accounting resumed loop0: rw=1048577, want=58, limit=52 BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 PGD 9ea10067 P4D 9ea10067 PUD 9ec4d067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Buffer I/O error on dev loop0, logical block 28, lost async page write CPU: 0 PID: 8596 Comm: syz-executor494 Not tainted 4.19.120-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 14 43 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:ffff88807e067578 EFLAGS: 00010246 attempt to access beyond end of device RAX: 0000000000000007 RBX: ffff88807e067690 RCX: 1ffffffff1238a88 RDX: 0000000000000000 RSI: ffffffff88d929a0 RDI: ffff88807e05e5e4 RBP: ffff88807e067710 R08: ffff88807e05e5c0 R09: fffff9400041d077 R10: fffff9400041d076 R11: ffffea00020e83b7 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88807e067640 R15: 0000000000000056 FS: 000000000204a940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 loop0: rw=1048577, want=60, limit=52 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000860a4000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: Buffer I/O error on dev loop0, logical block 29, lost async page write attempt to access beyond end of device minix_get_block+0xe5/0x110 fs/minix/inode.c:379 __block_write_begin_int+0x480/0x17a0 fs/buffer.c:1978 loop0: rw=1048577, want=62, limit=52 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 Buffer I/O error on dev loop0, logical block 30, lost async page write minix_write_begin+0x35/0xe0 fs/minix/inode.c:415 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3162 attempt to access beyond end of device __generic_file_write_iter+0x24c/0x610 mm/filemap.c:3287 loop0: rw=1048577, want=64, limit=52 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 Buffer I/O error on dev loop0, logical block 31, lost async page write attempt to access beyond end of device __kernel_write+0x109/0x370 fs/read_write.c:506 do_acct_process+0xcd8/0x10e0 kernel/acct.c:520 loop0: rw=1048577, want=66, limit=52 acct_pin_kill+0x29/0xf0 kernel/acct.c:174 pin_kill+0x17a/0x7e0 fs/fs_pin.c:50 Buffer I/O error on dev loop0, logical block 32, lost async page write attempt to access beyond end of device acct_on+0x54b/0x760 kernel/acct.c:254 __do_sys_acct kernel/acct.c:286 [inline] __se_sys_acct kernel/acct.c:273 [inline] __x64_sys_acct+0xab/0x1f0 kernel/acct.c:273 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe loop0: rw=1048577, want=68, limit=52 RIP: 0033:0x4489f9 Code: ed cb 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 bb cb fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffcab7d9288 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3 Buffer I/O error on dev loop0, logical block 33, lost async page write RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004489f9 RDX: 00000000004045c0 RSI: 02a4d972d57b0154 RDI: 0000000020000480 RBP: 000000000000e56f R08: 000000000000000a R09: 00000000000003e8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000405ad0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: attempt to access beyond end of device CR2: 0000000000000000 ---[ end trace b24a9a6fa6e67354 ]--- loop0: rw=1048577, want=70, limit=52 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 Buffer I/O error on dev loop0, logical block 34, lost async page write 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 14 43 4e ff 49 0f ba 2c 24 02 40 0f 92 c6 31 ff 40 88 74 24 78 e8 0d f1 6e attempt to access beyond end of device RSP: 0018:ffff88807e067578 EFLAGS: 00010246 loop0: rw=1048577, want=72, limit=52 RAX: 0000000000000007 RBX: ffff88807e067690 RCX: 1ffffffff1238a88 Buffer I/O error on dev loop0, logical block 35, lost async page write RDX: 0000000000000000 RSI: ffffffff88d929a0 RDI: ffff88807e05e5e4 attempt to access beyond end of device RBP: ffff88807e067710 R08: ffff88807e05e5c0 R09: fffff9400041d077 loop0: rw=1048577, want=74, limit=52 attempt to access beyond end of device loop0: rw=1048577, want=76, limit=52 attempt to access beyond end of device R10: fffff9400041d076 R11: ffffea00020e83b7 R12: 0000000000000000 loop0: rw=1048577, want=78, limit=52 attempt to access beyond end of device loop0: rw=1048577, want=80, limit=52 attempt to access beyond end of device loop0: rw=1048577, want=82, limit=52 attempt to access beyond end of device loop0: rw=1048577, want=84, limit=52 attempt to access beyond end of device R13: dffffc0000000000 R14: ffff88807e067640 R15: 0000000000000056 loop0: rw=1048577, want=86, limit=52 FS: 000000000204a940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 attempt to access beyond end of device CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 loop0: rw=1048577, want=88, limit=52 CR2: 00007f680e007000 CR3: 00000000860a4000 CR4: 00000000001406f0 attempt to access beyond end of device DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 loop0: rw=1048577, want=90, limit=52 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 attempt to access beyond end of device