================================================================== BUG: KASAN: use-after-free in rcu_cblist_dequeue+0x6c/0xb0 kernel/rcu/rcu_segcblist.c:75 Read of size 8 at addr ffff88812b8b8d90 by task syz-execprog/303 CPU: 0 PID: 303 Comm: syz-execprog Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 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:stackdepot_memcmp lib/stackdepot.c:289 [inline] RIP: 0010:find_stack lib/stackdepot.c:306 [inline] RIP: 0010:__stack_depot_save+0x19c/0x490 lib/stackdepot.c:452 Code: 85 ed 74 62 89 ca eb 09 4d 8b 6d 00 4d 85 ed 74 55 45 39 7d 08 75 f1 41 39 4d 0c 75 eb 31 f6 49 8b 3c f6 49 3b 7c f5 18 75 de <48> ff c6 39 f2 75 ee 4d 85 ed 74 09 b8 ff ff ff 07 41 23 45 10 65 RSP: 0018:ffffc90000da6ea0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000010 RDX: 0000000000000010 RSI: 0000000000000004 RDI: ffffffff81ae8d77 RBP: ffffc90000da6f00 R08: 0000000000002800 R09: 0000000000000001 R10: ffff8881f5a00000 R11: 00000000652bd5b4 R12: 00000000000f82c3 R13: ffff88812bde78e0 R14: ffffc90000da6f60 R15: 000000009c9f82c3 stack_depot_save+0x13/0x20 lib/stackdepot.c:533 save_stack+0x12f/0x230 mm/page_owner.c:148 __reset_page_owner+0x54/0x190 mm/page_owner.c:168 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_list+0x117/0x8d0 mm/page_alloc.c:3773 release_pages+0xc7e/0xce0 mm/swap.c:1053 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:316 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0x107/0x1f0 mm/mmu_gather.c:261 zap_pte_range mm/memory.c:1550 [inline] zap_pmd_range mm/memory.c:1599 [inline] zap_pud_range mm/memory.c:1628 [inline] zap_p4d_range mm/memory.c:1649 [inline] unmap_page_range+0x20ed/0x2360 mm/memory.c:1670 unmap_single_vma mm/memory.c:1716 [inline] unmap_vmas+0x34c/0x480 mm/memory.c:1756 exit_mmap+0x2a4/0xc10 mm/mmap.c:3371 __mmput+0x92/0x340 kernel/fork.c:1321 mmput+0x4b/0x150 kernel/fork.c:1345 exit_mm kernel/exit.c:575 [inline] do_exit+0xa62/0x29f0 kernel/exit.c:883 do_group_exit+0x21b/0x2e0 kernel/exit.c:1040 get_signal+0x167c/0x1700 kernel/signal.c:2904 arch_do_signal_or_restart+0xd1/0x11c0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 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 RIP: 0033:0x48f2e3 Code: Unable to access opcode bytes at 0x48f2b9. RSP: 002b:00001fc3f878bcd8 EFLAGS: 00000286 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 0000000000000000 RCX: 000000000048f2e3 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00001fc3f85f9960 RBP: 00001fc3f878bd20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 00001fc3f878bd30 R13: 00001fc3fdbf3220 R14: 00001fc3f716f680 R15: ffffffffffffffff Allocated by task 373: 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 8: 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 ffff88812b8b8c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 400 bytes inside of 512-byte region [ffff88812b8b8c00, ffff88812b8b8e00) The buggy address belongs to the physical page: page:ffffea0004ae2e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12b8b8 head:ffffea0004ae2e00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 368, tgid 368 (syz-executor), ts 26044689055, free_ts 25417623878 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 kmalloc_trace+0x29/0xb0 mm/slab_common.c:1028 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] find_css_set+0x937/0x15c0 kernel/cgroup/cgroup.c:1252 cgroup_migrate_prepare_dst+0xc4/0xa00 kernel/cgroup/cgroup.c:2873 cgroup_attach_task+0x298/0x520 kernel/cgroup/cgroup.c:2979 __cgroup1_procs_write+0x314/0x520 kernel/cgroup/cgroup-v1.c:524 cgroup1_procs_write+0x2a/0x40 kernel/cgroup/cgroup-v1.c:538 cgroup_file_write+0x2a2/0x590 kernel/cgroup/cgroup.c:4143 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_pages+0x82/0x90 mm/page_alloc.c:6032 kasan_depopulate_vmalloc_pte+0x6b/0x90 mm/kasan/shadow.c:375 apply_to_pte_range mm/memory.c:2690 [inline] apply_to_pmd_range mm/memory.c:2734 [inline] apply_to_pud_range mm/memory.c:2770 [inline] apply_to_p4d_range mm/memory.c:2806 [inline] __apply_to_page_range+0x8db/0xc80 mm/memory.c:2842 apply_to_existing_page_range+0x38/0x50 mm/memory.c:2875 kasan_release_vmalloc+0x97/0xb0 mm/kasan/shadow.c:492 __purge_vmap_area_lazy+0xf09/0x1870 mm/vmalloc.c:1791 drain_vmap_area_work+0x3e/0xd0 mm/vmalloc.c:1820 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 Memory state around the buggy address: ffff88812b8b8c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812b8b8d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88812b8b8d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812b8b8e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812b8b8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: 85 ed test %ebp,%ebp 2: 74 62 je 0x66 4: 89 ca mov %ecx,%edx 6: eb 09 jmp 0x11 8: 4d 8b 6d 00 mov 0x0(%r13),%r13 c: 4d 85 ed test %r13,%r13 f: 74 55 je 0x66 11: 45 39 7d 08 cmp %r15d,0x8(%r13) 15: 75 f1 jne 0x8 17: 41 39 4d 0c cmp %ecx,0xc(%r13) 1b: 75 eb jne 0x8 1d: 31 f6 xor %esi,%esi 1f: 49 8b 3c f6 mov (%r14,%rsi,8),%rdi 23: 49 3b 7c f5 18 cmp 0x18(%r13,%rsi,8),%rdi 28: 75 de jne 0x8 * 2a: 48 ff c6 inc %rsi <-- trapping instruction 2d: 39 f2 cmp %esi,%edx 2f: 75 ee jne 0x1f 31: 4d 85 ed test %r13,%r13 34: 74 09 je 0x3f 36: b8 ff ff ff 07 mov $0x7ffffff,%eax 3b: 41 23 45 10 and 0x10(%r13),%eax 3f: 65 gs