reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1110 [inline]
free_unref_page+0xd3c/0xec0 mm/page_alloc.c:2617
__folio_put_small mm/swap.c:119 [inline]
__folio_put+0x22b/0x390 mm/swap.c:142
io_mem_alloc_single io_uring/memmap.c:55 [inline]
io_pages_map+0x25a/0x480 io_uring/memmap.c:76
io_allocate_scq_urings+0x3b8/0x640 io_uring/io_uring.c:3432
io_uring_create+0x741/0x12f0 io_uring/io_uring.c:3590
io_uring_setup io_uring/io_uring.c:3702 [inline]
__do_sys_io_uring_setup io_uring/io_uring.c:3729 [inline]
__se_sys_io_uring_setup+0x2ba/0x330 io_uring/io_uring.c:3723
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: 5084 Comm: syz-executor990 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+0x1b6/0x260 include/linux/mm.h:1581
Code: 00 00 e8 6d 25 61 fd 84 c0 74 6e e8 c4 a6 ed fc e9 3f ff ff ff e8 ba a6 ed fc 4c 89 f7 48 c7 c6 a0 12 1f 8c e8 bb ea 36 fd 90 <0f> 0b e8 a3 a6 ed fc e9 a1 fe ff ff 4c 89 f7 be 08 00 00 00 e8 11
RSP: 0018:ffffc9000353fc30 EFLAGS: 00010246
RAX: bf727e5c3e70b300 RBX: ffffea0000446034 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8bcad5c0 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff8fa934ef R09: 1ffffffff1f5269d
R10: dffffc0000000000 R11: fffffbfff1f5269e R12: 1ffff1100c8c9518
R13: ffff888064636000 R14: ffffea0000446000 R15: ffff88806464a8c6
FS: 00005555716a0380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe2349d29f0 CR3: 0000000022106000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
io_pages_unmap+0x1c0/0x320 io_uring/memmap.c:108
io_rings_free+0xcf/0x2b0 io_uring/io_uring.c:2619
io_allocate_scq_urings+0x41f/0x640 io_uring/io_uring.c:3437
io_uring_create+0x741/0x12f0 io_uring/io_uring.c:3590
io_uring_setup io_uring/io_uring.c:3702 [inline]
__do_sys_io_uring_setup io_uring/io_uring.c:3729 [inline]
__se_sys_io_uring_setup+0x2ba/0x330 io_uring/io_uring.c:3723
do_syscall_64+0xfb/0x240
entry_SYSCALL_64_after_hwframe+0x72/0x7a
RIP: 0033:0x7fe234a0f9d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc53bc7168 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fe234a0f9d9
RDX: 00007fe234a0f9d9 RSI: 0000000020000000 RDI: 0000000000006839
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe234a59036
R13: 00007ffc53bc71a0 R14: 00007ffc53bc71e0 R15: 0000000000000000
</TASK>
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+0x1b6/0x260 include/linux/mm.h:1581
Code: 00 00 e8 6d 25 61 fd 84 c0 74 6e e8 c4 a6 ed fc e9 3f ff ff ff e8 ba a6 ed fc 4c 89 f7 48 c7 c6 a0 12 1f 8c e8 bb ea 36 fd 90 <0f> 0b e8 a3 a6 ed fc e9 a1 fe ff ff 4c 89 f7 be 08 00 00 00 e8 11
RSP: 0018:ffffc9000353fc30 EFLAGS: 00010246
RAX: bf727e5c3e70b300 RBX: ffffea0000446034 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8bcad5c0 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff8fa934ef R09: 1ffffffff1f5269d
R10: dffffc0000000000 R11: fffffbfff1f5269e R12: 1ffff1100c8c9518
R13: ffff888064636000 R14: ffffea0000446000 R15: ffff88806464a8c6
FS: 00005555716a0380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556f47e67058 CR3: 0000000022106000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400