================================================================== BUG: KASAN: use-after-free in rcu_cblist_dequeue+0x6c/0xb0 kernel/rcu/rcu_segcblist.c:75 Read of size 8 at addr ffff88811e9ef990 by task kworker/u4:3/308 CPU: 0 PID: 308 Comm: kworker/u4:3 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: netns cleanup_net Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351 rcu_cblist_dequeue+0x6c/0xb0 kernel/rcu/rcu_segcblist.c:75 rcu_do_batch+0x4bc/0xc30 kernel/rcu/tree.c:2285 rcu_core+0x486/0xf00 kernel/rcu/tree.c:2557 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2574 handle_softirqs+0x1dd/0x5f0 kernel/softirq.c:642 __do_softirq kernel/softirq.c:680 [inline] invoke_softirq kernel/softirq.c:497 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:___cache_free+0xaa/0xd0 mm/slub.c:3723 Code: 19 48 0f ce 4c 8b 97 d8 00 00 00 49 31 c2 49 31 f2 4c 89 14 19 48 8d 4a 08 4c 8b 17 65 49 0f c7 0a 0f 94 c0 a8 01 74 b5 5b 5d 4c 89 c6 48 89 da 48 89 d9 41 b8 01 00 00 00 e8 e1 38 00 00 eb RSP: 0000:ffffc9000dc27828 EFLAGS: 00000282 RAX: ffff88812c8a4401 RBX: ffff88812c8a3300 RCX: 069d8ad5be959600 RDX: 0000000080070004 RSI: ffffea0004b22800 RDI: 0000000000000000 RBP: ffffc9000dc27868 R08: ffff88812c8a0000 R09: 0000000080070003 R10: dffffc0000000000 R11: fffff52001b84ecc R12: ffff8881001ec000 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88812c8a0000 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] __kmem_cache_alloc_node+0x194/0x2d0 mm/slub.c:3423 kmalloc_trace+0x29/0xb0 mm/slab_common.c:1028 kmalloc include/linux/slab.h:563 [inline] gro_cells_destroy+0x31d/0x3f0 net/core/gro_cells.c:125 ip6gre_dev_free+0x19/0x60 net/ipv6/ip6_gre.c:1462 netdev_run_todo+0xa94/0xc30 net/core/dev.c:10513 rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:147 ip6gre_exit_batch_net+0x5d2/0x620 net/ipv6/ip6_gre.c:1678 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x630/0xb10 net/core/net_namespace.c:604 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 17792: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc+0xb4/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] l2tp_session_create+0x38/0xbd0 net/l2tp/l2tp_core.c:1614 pppol2tp_connect+0xbf5/0x1640 net/l2tp/l2tp_ppp.c:771 __sys_connect_file net/socket.c:2001 [inline] __sys_connect+0x3da/0x460 net/socket.c:2018 __do_sys_connect net/socket.c:2028 [inline] __se_sys_connect net/socket.c:2025 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2025 x64_sys_call+0x88d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:43 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 386: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 l2tp_session_free net/l2tp/l2tp_core.c:168 [inline] l2tp_session_put+0xaf/0x1a0 net/l2tp/l2tp_core.c:193 l2tp_session_delete+0x3df/0x4d0 net/l2tp/l2tp_core.c:1587 l2tp_tunnel_closeall net/l2tp/l2tp_core.c:1233 [inline] l2tp_tunnel_del_work+0x199/0x410 net/l2tp/l2tp_core.c:1271 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 __call_rcu_common kernel/rcu/tree.c:2807 [inline] call_rcu+0xcf/0xf50 kernel/rcu/tree.c:2926 pppol2tp_release+0x1e3/0x2b0 net/l2tp/l2tp_ppp.c:446 __sock_release net/socket.c:652 [inline] sock_close+0xc9/0x220 net/socket.c:1390 __fput+0x1fd/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88811e9ef800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 400 bytes inside of 512-byte region [ffff88811e9ef800, ffff88811e9efa00) The buggy address belongs to the physical page: page:ffffea00047a7b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e9ec head:ffffea00047a7b00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 11676, tgid 11676 (syz-executor), ts 652876399158, free_ts 652804426197 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1322 [inline] nlmsg_new include/net/netlink.h:987 [inline] fdb_notify+0x78/0x130 net/bridge/br_fdb.c:191 fdb_add_local+0x16b/0x260 net/bridge/br_fdb.c:438 br_fdb_add_local+0x3a/0x60 net/bridge/br_fdb.c:840 br_add_if+0x99e/0xe70 net/bridge/br_if.c:665 br_add_slave+0x2c/0x40 net/bridge/br_device.c:388 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page+0x93/0x530 mm/page_alloc.c:3720 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6021 __free_slab+0xc7/0x1a0 mm/slub.c:2044 free_slab mm/slub.c:2059 [inline] discard_slab+0x29/0x40 mm/slub.c:2065 __slab_free+0x201/0x280 mm/slub.c:3625 do_slab_free mm/slub.c:3666 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc_lru+0x104/0x280 mm/slub.c:3415 alloc_inode_sb include/linux/fs.h:3263 [inline] sock_alloc_inode+0x28/0xc0 net/socket.c:304 alloc_inode fs/inode.c:264 [inline] new_inode_pseudo+0x70/0x1f0 fs/inode.c:1074 sock_alloc net/socket.c:629 [inline] __sock_create+0x12c/0x7c0 net/socket.c:1504 sock_create net/socket.c:1596 [inline] __sys_socket_create net/socket.c:1633 [inline] __sys_socket+0xcd/0x1a0 net/socket.c:1661 Memory state around the buggy address: ffff88811e9ef880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811e9ef900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88811e9ef980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811e9efa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e9efa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 0f ce bswap %rsi 3: 4c 8b 97 d8 00 00 00 mov 0xd8(%rdi),%r10 a: 49 31 c2 xor %rax,%r10 d: 49 31 f2 xor %rsi,%r10 10: 4c 89 14 19 mov %r10,(%rcx,%rbx,1) 14: 48 8d 4a 08 lea 0x8(%rdx),%rcx 18: 4c 8b 17 mov (%rdi),%r10 1b: 65 49 0f c7 0a cmpxchg16b %gs:(%r10) 20: 0f 94 c0 sete %al 23: a8 01 test $0x1,%al 25: 74 b5 je 0xffffffdc 27: 5b pop %rbx 28: 5d pop %rbp * 29: c3 ret <-- trapping instruction 2a: 4c 89 c6 mov %r8,%rsi 2d: 48 89 da mov %rbx,%rdx 30: 48 89 d9 mov %rbx,%rcx 33: 41 b8 01 00 00 00 mov $0x1,%r8d 39: e8 e1 38 00 00 call 0x391f 3e: eb .byte 0xeb