BUG: kernel NULL pointer dereference, address: 0000000000000002 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 34 Comm: kworker/u8:2 Not tainted 6.9.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: iou_exit io_ring_exit_work RIP: 0010:__io_remove_buffers+0x23/0x150 io_uring/kbuf.c:191 Code: 90 90 90 90 90 90 90 55 41 57 41 56 41 55 41 54 53 50 45 31 ed 85 d2 74 7a 49 89 f6 80 7e 20 00 0f 84 83 00 00 00 49 8b 7e 08 <44> 0f b7 6f 0e 41 0f b7 6e 16 66 41 83 7e 12 00 74 48 4d 8d 7e 12 RSP: 0018:ffffc90000127cc0 EFLAGS: 00010202 RAX: ffff8881052f7000 RBX: ffff8881052f7000 RCX: 0000000000000001 RDX: 00000000ffffffff RSI: ffff8881052f7000 RDI: fffffffffffffff4 RBP: 0000000000000005 R08: ffffc90000127cba R09: 0000000000000402 R10: ffff8881052f7000 R11: 0000000000000000 R12: ffff88810dad3198 R13: 0000000000000000 R14: ffff8881052f7000 R15: ffffc90000127d00 FS: 0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000002 CR3: 000000010279c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: io_put_bl io_uring/kbuf.c:228 [inline] io_destroy_buffers+0x94/0x160 io_uring/kbuf.c:242 io_ring_ctx_free+0x1d8/0x3b0 io_uring/io_uring.c:2891 io_ring_exit_work+0x270/0x2a0 io_uring/io_uring.c:3122 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0x2a3/0x5b0 kernel/workqueue.c:3335 worker_thread+0x23e/0x300 kernel/workqueue.c:3416 kthread+0xea/0x100 kernel/kthread.c:388 ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: CR2: 0000000000000002 ---[ end trace 0000000000000000 ]--- RIP: 0010:__io_remove_buffers+0x23/0x150 io_uring/kbuf.c:191 Code: 90 90 90 90 90 90 90 55 41 57 41 56 41 55 41 54 53 50 45 31 ed 85 d2 74 7a 49 89 f6 80 7e 20 00 0f 84 83 00 00 00 49 8b 7e 08 <44> 0f b7 6f 0e 41 0f b7 6e 16 66 41 83 7e 12 00 74 48 4d 8d 7e 12 RSP: 0018:ffffc90000127cc0 EFLAGS: 00010202 RAX: ffff8881052f7000 RBX: ffff8881052f7000 RCX: 0000000000000001 RDX: 00000000ffffffff RSI: ffff8881052f7000 RDI: fffffffffffffff4 RBP: 0000000000000005 R08: ffffc90000127cba R09: 0000000000000402 R10: ffff8881052f7000 R11: 0000000000000000 R12: ffff88810dad3198 R13: 0000000000000000 R14: ffff8881052f7000 R15: ffffc90000127d00 FS: 0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000002 CR3: 000000010279c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 55 push %rbp 8: 41 57 push %r15 a: 41 56 push %r14 c: 41 55 push %r13 e: 41 54 push %r12 10: 53 push %rbx 11: 50 push %rax 12: 45 31 ed xor %r13d,%r13d 15: 85 d2 test %edx,%edx 17: 74 7a je 0x93 19: 49 89 f6 mov %rsi,%r14 1c: 80 7e 20 00 cmpb $0x0,0x20(%rsi) 20: 0f 84 83 00 00 00 je 0xa9 26: 49 8b 7e 08 mov 0x8(%r14),%rdi * 2a: 44 0f b7 6f 0e movzwl 0xe(%rdi),%r13d <-- trapping instruction 2f: 41 0f b7 6e 16 movzwl 0x16(%r14),%ebp 34: 66 41 83 7e 12 00 cmpw $0x0,0x12(%r14) 3a: 74 48 je 0x84 3c: 4d 8d 7e 12 lea 0x12(%r14),%r15