------------[ cut here ]------------ WARNING: CPU: 1 PID: 7854 at net/core/page_pool.c:753 __page_pool_put_page net/core/page_pool.c:753 [inline] WARNING: CPU: 1 PID: 7854 at net/core/page_pool.c:753 page_pool_put_unrefed_netmem+0x175/0xb00 net/core/page_pool.c:825 Modules linked in: CPU: 1 UID: 0 PID: 7854 Comm: syz.4.462 Not tainted 6.13.0-rc5-syzkaller-00172-gd1bf27c4e176 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__page_pool_put_page net/core/page_pool.c:753 [inline] RIP: 0010:page_pool_put_unrefed_netmem+0x175/0xb00 net/core/page_pool.c:825 Code: 74 0e e8 2e 65 f7 f7 eb 43 e8 27 65 f7 f7 eb 3c 65 8b 1d 7a 78 5a 76 31 ff 89 de e8 55 69 f7 f7 85 db 74 0b e8 0c 65 f7 f7 90 <0f> 0b 90 eb 1d 65 8b 1d 57 78 5a 76 31 ff 89 de e8 36 69 f7 f7 85 RSP: 0018:ffffc90002fb6af0 EFLAGS: 00010083 RAX: ffffffff89a81545 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000cbf9000 RSI: 0000000000000661 RDI: 0000000000000662 RBP: dffffc0000000000 R08: ffffffff89a80eea R09: 1ffffd400017765d R10: dffffc0000000000 R11: fffff9400017765e R12: 0000000000000000 R13: ffff88805ba76000 R14: ffffea0000bbb2c0 R15: 00000000ffffffff FS: 00007fbdb2ff66c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c2c0 CR3: 000000002a16c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tun_ptr_free drivers/net/tun.c:617 [inline] __ptr_ring_swap_queue include/linux/ptr_ring.h:571 [inline] ptr_ring_resize_multiple_noprof include/linux/ptr_ring.h:643 [inline] tun_queue_resize drivers/net/tun.c:3700 [inline] tun_device_event+0xaaf/0x1080 drivers/net/tun.c:3720 notifier_call_chain+0x1a5/0x3f0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] dev_change_tx_queue_len+0x158/0x2a0 net/core/dev.c:9154 do_setlink+0xfd3/0x4210 net/core/rtnetlink.c:3132 rtnl_setlink+0x772/0xad0 net/core/rtnetlink.c:3421 rtnetlink_rcv_msg+0x791/0xcf0 net/core/rtnetlink.c:6922 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2542 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:726 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2669 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbdb5185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbdb2ff6038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbdb5375fa0 RCX: 00007fbdb5185d29 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 000000000000000c RBP: 00007fbdb5201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbdb5375fa0 R15: 00007fffb436deb8