folio_put include/linux/mm.h:1509 [inline] put_page include/linux/mm.h:1581 [inline] __io_remove_buffers+0x298/0x8f0 io_uring/kbuf.c:196 io_put_bl+0x5b/0x90 io_uring/kbuf.c:229 io_unregister_pbuf_ring+0x2e9/0x3b0 io_uring/kbuf.c:600 __io_uring_register io_uring/register.c:533 [inline] __do_sys_io_uring_register io_uring/register.c:612 [inline] __se_sys_io_uring_register+0xb9a/0x15d0 io_uring/register.c:573 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1135! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 6061 Comm: syz-executor.3 Not tainted 6.9.0-rc2-next-20240402-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:put_page_testzero include/linux/mm.h:1135 [inline] RIP: 0010:folio_put_testzero include/linux/mm.h:1141 [inline] RIP: 0010:folio_put include/linux/mm.h:1508 [inline] RIP: 0010:put_page include/linux/mm.h:1581 [inline] RIP: 0010:__io_remove_buffers+0x8ee/0x8f0 io_uring/kbuf.c:196 Code: ff fb ff ff 48 c7 c7 3c 68 a9 8f e8 fc b6 56 fd e9 ee fb ff ff e8 12 dc f1 fc 48 89 ef 48 c7 c6 60 ff 1e 8c e8 13 20 3b fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa RSP: 0018:ffffc90003cafc48 EFLAGS: 00010246 RAX: 6d04e2dfcb4dcd00 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcad5c0 RDI: 0000000000000001 RBP: ffffea0000806040 R08: ffffffff92f3a627 R09: 1ffffffff25e74c4 R10: dffffc0000000000 R11: fffffbfff25e74c5 R12: 0000000000000008 R13: 0000000000000002 R14: ffff88802d90f480 R15: ffffea0000806074 FS: 00007f54fea676c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87f7b4c378 CR3: 0000000040400000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: io_put_bl+0x5b/0x90 io_uring/kbuf.c:229 io_unregister_pbuf_ring+0x2e9/0x3b0 io_uring/kbuf.c:600 __io_uring_register io_uring/register.c:533 [inline] __do_sys_io_uring_register io_uring/register.c:612 [inline] __se_sys_io_uring_register+0xb9a/0x15d0 io_uring/register.c:573 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7f54fdc7dde9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f54fea670c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab RAX: ffffffffffffffda RBX: 00007f54fddabf80 RCX: 00007f54fdc7dde9 RDX: 0000000020001180 RSI: 0000000000000017 RDI: 0000000000000003 RBP: 00007f54fdcca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f54fddabf80 R15: 00007ffde155c7e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:put_page_testzero include/linux/mm.h:1135 [inline] RIP: 0010:folio_put_testzero include/linux/mm.h:1141 [inline] RIP: 0010:folio_put include/linux/mm.h:1508 [inline] RIP: 0010:put_page include/linux/mm.h:1581 [inline] RIP: 0010:__io_remove_buffers+0x8ee/0x8f0 io_uring/kbuf.c:196 Code: ff fb ff ff 48 c7 c7 3c 68 a9 8f e8 fc b6 56 fd e9 ee fb ff ff e8 12 dc f1 fc 48 89 ef 48 c7 c6 60 ff 1e 8c e8 13 20 3b fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa RSP: 0018:ffffc90003cafc48 EFLAGS: 00010246 RAX: 6d04e2dfcb4dcd00 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcad5c0 RDI: 0000000000000001 RBP: ffffea0000806040 R08: ffffffff92f3a627 R09: 1ffffffff25e74c4 R10: dffffc0000000000 R11: fffffbfff25e74c5 R12: 0000000000000008 R13: 0000000000000002 R14: ffff88802d90f480 R15: ffffea0000806074 FS: 00007f54fea676c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557963c87131 CR3: 0000000040400000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400