================================================================== BUG: KASAN: use-after-free in rcu_cblist_dequeue+0x6c/0xb0 kernel/rcu/rcu_segcblist.c:75 Read of size 8 at addr ffff8881338fc590 by task syz.4.462/3540 CPU: 1 PID: 3540 Comm: syz.4.462 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:209 Code: 89 fb e8 23 00 00 00 48 8b 3d ec 8b 21 06 48 89 de e8 14 e6 44 00 5b 5d c3 00 90 90 90 90 90 90 90 90 90 90 90 b8 0c 67 40 a5 <55> 48 89 e5 48 8b 45 08 65 48 8b 0d a0 f1 90 7e 65 8b 15 a1 f1 90 RSP: 0018:ffffc900110d7618 EFLAGS: 00000246 RAX: 1ffff1102651fc11 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: ffffc90002aef000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900110d76b0 R08: 0000000000000000 R09: ffffffff83f07cb0 R10: dffffc0000000000 R11: ffffed10224e5737 R12: ffff8881328fe088 R13: 0000000000000080 R14: 0000000000000000 R15: 0000000000000000 skb_copy_datagram_iter+0x40/0x150 net/core/datagram.c:535 skb_copy_datagram_msg include/linux/skbuff.h:4036 [inline] __unix_dgram_recvmsg+0x699/0xd90 net/unix/af_unix.c:2504 unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2562 ____sys_recvmsg+0x2d6/0x5c0 net/socket.c:-1 ___sys_recvmsg+0x210/0x590 net/socket.c:2770 do_recvmmsg+0x370/0x7e0 net/socket.c:2864 __sys_recvmmsg net/socket.c:2943 [inline] __do_sys_recvmmsg net/socket.c:2966 [inline] __se_sys_recvmmsg net/socket.c:2959 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2959 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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 RIP: 0033:0x7ff083fa9559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff084d99028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ff084225fa0 RCX: 00007ff083fa9559 RDX: 000000000191d1f8 RSI: 0000200000000640 RDI: 0000000000000005 RBP: 00007ff084038136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010042 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff084226038 R14: 00007ff084225fa0 R15: 00007ffebb4de688 Allocated by task 3956: 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 440: 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 Second to 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 kvfree_call_rcu+0x8b/0x7a0 kernel/rcu/tree.c:3445 neigh_destroy+0x476/0x5b0 net/core/neighbour.c:918 neigh_release include/net/neighbour.h:455 [inline] neigh_cleanup_and_release+0x76/0x1a0 net/core/neighbour.c:103 neigh_flush_dev+0x79a/0x950 net/core/neighbour.c:429 __neigh_ifdown+0x3f/0x400 net/core/neighbour.c:446 neigh_ifdown+0x1f/0x30 net/core/neighbour.c:464 rt6_disable_ip+0x878/0x8e0 net/ipv6/route.c:4933 addrconf_ifdown+0x15d/0x1950 net/ipv6/addrconf.c:3831 addrconf_notify+0x39f/0xe30 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2022 [inline] call_netdevice_notifiers_extack net/core/dev.c:2060 [inline] call_netdevice_notifiers net/core/dev.c:2074 [inline] dev_close_many+0x325/0x4d0 net/core/dev.c:1622 unregister_netdevice_many+0x43f/0x1910 net/core/dev.c:10980 default_device_exit_batch+0x951/0x9f0 net/core/dev.c:11519 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 The buggy address belongs to the object at ffff8881338fc400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 400 bytes inside of 512-byte region [ffff8881338fc400, ffff8881338fc600) The buggy address belongs to the physical page: page:ffffea0004ce3f00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1338fc head:ffffea0004ce3f00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000000100010 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 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 24, tgid 24 (kworker/1:0), ts 27220705006, free_ts 27212700255 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+0xa4/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x6e3/0x1db0 net/core/neighbour.c:648 __neigh_create+0x31/0x40 net/core/neighbour.c:737 ip6_finish_output2+0xaaf/0x18b0 net/ipv6/ip6_output.c:129 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline] ip6_finish_output+0x60b/0xbe0 net/ipv6/ip6_output.c:216 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x1fa/0x410 net/ipv6/ip6_output.c:237 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ndisc_send_skb+0x7c8/0xcd0 net/ipv6/ndisc.c:513 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 __stack_depot_save+0x45f/0x490 lib/stackdepot.c:506 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_set_track+0x60/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+0x12d/0x300 mm/slub.c:3737 putname fs/namei.c:272 [inline] kern_path+0x158/0x1b0 fs/namei.c:2615 lookup_bdev block/bdev.c:1001 [inline] blkdev_get_by_path+0xcd/0x3d0 block/bdev.c:903 mount_bdev+0x55/0x3d0 fs/super.c:1404 f2fs_mount+0x34/0x40 fs/f2fs/super.c:4941 legacy_get_tree+0xfe/0x1a0 fs/fs_context.c:632 Memory state around the buggy address: ffff8881338fc480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881338fc500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881338fc580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881338fc600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881338fc680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== bridge0: received packet on bridge_slave_1 with own address as source address (addr:aa:aa:aa:aa:aa:1c, vlan:0) ---------------- Code disassembly (best guess): 0: 89 fb mov %edi,%ebx 2: e8 23 00 00 00 call 0x2a 7: 48 8b 3d ec 8b 21 06 mov 0x6218bec(%rip),%rdi # 0x6218bfa e: 48 89 de mov %rbx,%rsi 11: e8 14 e6 44 00 call 0x44e62a 16: 5b pop %rbx 17: 5d pop %rbp 18: c3 ret 19: 00 90 90 90 90 90 add %dl,-0x6f6f6f70(%rax) 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: b8 0c 67 40 a5 mov $0xa540670c,%eax * 2a: 55 push %rbp <-- trapping instruction 2b: 48 89 e5 mov %rsp,%rbp 2e: 48 8b 45 08 mov 0x8(%rbp),%rax 32: 65 48 8b 0d a0 f1 90 mov %gs:0x7e90f1a0(%rip),%rcx # 0x7e90f1da 39: 7e 3a: 65 gs 3b: 8b .byte 0x8b 3c: 15 .byte 0x15 3d: a1 .byte 0xa1 3e: f1 int1 3f: 90 nop