==================================================================
BUG: KASAN: use-after-free in rcu_cblist_dequeue+0x6c/0xb0 kernel/rcu/rcu_segcblist.c:75
Read of size 8 at addr ffff88813319a590 by task syz.4.2504/7984
CPU: 0 PID: 7984 Comm: syz.4.2504 Tainted: G W 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:_raw_spin_lock_irqsave+0xd/0x130 kernel/locking/spinlock.c:161
Code: fc eb bd e8 55 48 f9 ff 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 b8 0b 37 db a6 55 48 89 e5 41 57 41 56 41 55 41 54 53 <48> 83 e4 e0 48 81 ec 80 00 00 00 48 89 fb 65 48 8b 04 25 28 00 00
RSP: 0018:ffffc9000f2df5e8 EFLAGS: 00000a02
RAX: 1ffff92001e5bef8 RBX: dffffc0000000000 RCX: 1ffff11022550548
RDX: 1ffff11022550548 RSI: 1ffff1102255051c RDI: ffff888112a828ec
RBP: ffffc9000f2df610 R08: ffffc9000f2df810 R09: ffffc9000f2df7c0
R10: dffffc0000000000 R11: fffff52001e5bed1 R12: 1ffff11022550522
R13: ffff888112a828ec R14: ffffc9000f2df7c0 R15: ffff888112a828d8
__skb_try_recv_datagram+0x14f/0x4d0 net/core/datagram.c:262
__unix_dgram_recvmsg+0x2f3/0xd90 net/unix/af_unix.c:2465
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:0x7fda6eba94d9
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:00007fda6faf2028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fda6ee26090 RCX: 00007fda6eba94d9
RDX: 0000000000010106 RSI: 0000200000000340 RDI: 0000000000000005
RBP: 00007fda6ec3804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fda6ee26128 R14: 00007fda6ee26090 R15: 00007ffd8fd34c68
Allocated by task 7963:
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
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
__call_rcu_common kernel/rcu/tree.c:2807 [inline]
call_rcu+0xcf/0xf50 kernel/rcu/tree.c:2926
fib6_info_release include/net/ip6_fib.h:350 [inline]
fixup_permanent_addr net/ipv6/addrconf.c:3565 [inline]
addrconf_permanent_addr+0x302/0x940 net/ipv6/addrconf.c:3593
addrconf_notify+0x7ca/0xe30 net/ipv6/addrconf.c:3665
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_notify_flags+0x2f4/0x5b0 net/core/dev.c:8731
dev_change_flags+0xe3/0x1a0 net/core/dev.c:8769
do_setlink+0xc02/0x2a10 net/core/rtnetlink.c:2845
__rtnl_newlink net/core/rtnetlink.c:3620 [inline]
rtnl_newlink+0x17d7/0x20d0 net/core/rtnetlink.c:3667
rtnetlink_rcv_msg+0xb28/0xde0 net/core/rtnetlink.c:6162
netlink_rcv_skb+0x200/0x450 net/netlink/af_netlink.c:2526
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6180
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x8c1/0xa60 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x8b9/0xbd0 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
__sys_sendto+0x4ac/0x660 net/socket.c:2143
__do_sys_sendto net/socket.c:2155 [inline]
__se_sys_sendto net/socket.c:2151 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2151
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
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
The buggy address belongs to the object at ffff88813319a400
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 400 bytes inside of
512-byte region [ffff88813319a400, ffff88813319a600)
The buggy address belongs to the physical page:
page:ffffea0004cc6600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x133198
head:ffffea0004cc6600 order:2 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 dead000000000001 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 292, tgid 292 (syz-executor), ts 20697700370, free_ts 0
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]
netlink_alloc_large_skb net/netlink/af_netlink.c:1183 [inline]
netlink_sendmsg+0x635/0xbd0 net/netlink/af_netlink.c:1853
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
__sys_sendto+0x4ac/0x660 net/socket.c:2143
__do_sys_sendto net/socket.c:2155 [inline]
__se_sys_sendto net/socket.c:2151 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2151
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
page_owner free stack trace missing
Memory state around the buggy address:
ffff88813319a480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88813319a500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88813319a580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88813319a600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88813319a680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: fc cld
1: eb bd jmp 0xffffffc0
3: e8 55 48 f9 ff call 0xfff9485d
8: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: 90 nop
13: 90 nop
14: 90 nop
15: 90 nop
16: 90 nop
17: 90 nop
18: b8 0b 37 db a6 mov $0xa6db370b,%eax
1d: 55 push %rbp
1e: 48 89 e5 mov %rsp,%rbp
21: 41 57 push %r15
23: 41 56 push %r14
25: 41 55 push %r13
27: 41 54 push %r12
29: 53 push %rbx
* 2a: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp <-- trapping instruction
2e: 48 81 ec 80 00 00 00 sub $0x80,%rsp
35: 48 89 fb mov %rdi,%rbx
38: 65 gs
39: 48 rex.W
3a: 8b .byte 0x8b
3b: 04 25 add $0x25,%al
3d: 28 00 sub %al,(%rax)