==================================================================
BUG: KASAN: slab-use-after-free in llc_conn_ac_send_sabme_cmd_p_set_x+0x442/0x470 net/llc/llc_c_ac.c:782
Read of size 1 at addr ffff888033db5010 by task syz.9.1307/12330
CPU: 0 UID: 0 PID: 12330 Comm: syz.9.1307 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
llc_conn_ac_send_sabme_cmd_p_set_x+0x442/0x470 net/llc/llc_c_ac.c:782
llc_exec_conn_trans_actions net/llc/llc_conn.c:437 [inline]
llc_conn_service net/llc/llc_conn.c:362 [inline]
llc_conn_state_process+0x3ec/0x1480 net/llc/llc_conn.c:66
llc_process_tmr_ev net/llc/llc_c_ac.c:1442 [inline]
llc_conn_tmr_common_cb+0x2d4/0x880 net/llc/llc_c_ac.c:1325
call_timer_fn+0x198/0x5f0 kernel/time/timer.c:1748
expire_timers kernel/time/timer.c:1799 [inline]
__run_timers+0x757/0xb00 kernel/time/timer.c:2374
__run_timer_base kernel/time/timer.c:2386 [inline]
__run_timer_base kernel/time/timer.c:2378 [inline]
run_timer_base+0x114/0x190 kernel/time/timer.c:2395
run_timer_softirq+0x1a/0x50 kernel/time/timer.c:2405
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0x194/0x210 kernel/softirq.c:767
irq_exit_rcu+0x9/0x30 kernel/softirq.c:784
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__zone_watermark_ok+0xad/0x500 mm/page_alloc.c:3642
Code: d9 ba 80 00 00 00 48 83 fd 05 0f 83 ac 03 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c ed 38 48 89 f9 48 c1 e9 03 80 3c 01 00 <0f> 85 68 03 00 00 4d 03 44 ed 38 4d 39 c8 0f 8d 8a 01 00 00 45 85
RSP: 0018:ffffc90003aee5e8 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff11027fff832
RDX: 0000000000000080 RSI: 0000000000000000 RDI: ffff88813fffc190
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: ffff88813fffc140 R12: 0000000000000000
R13: ffff88813fffc140 R14: 0000000000000000 R15: 0000000000000981
zone_watermark_fast mm/page_alloc.c:3708 [inline]
get_page_from_freelist+0x344/0x35b0 mm/page_alloc.c:3907
__alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436
alloc_pages_mpol+0x201/0x550 mm/mempolicy.c:2495
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2514
shmem_alloc_folio+0x135/0x160 mm/shmem.c:1922
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:1964
shmem_get_folio_gfp+0x75b/0x1980 mm/shmem.c:2517
shmem_get_folio mm/shmem.c:2623 [inline]
shmem_write_begin+0x1a4/0x420 mm/shmem.c:3254
generic_perform_write+0x292/0xa40 mm/filemap.c:4374
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3429
__kernel_write_iter+0x2ac/0x930 fs/read_write.c:621
dump_emit_page fs/coredump.c:1293 [inline]
dump_user_range+0x3f9/0xad0 fs/coredump.c:1367
elf_core_dump+0x2d68/0x3d20 fs/binfmt_elf.c:2106
coredump_write fs/coredump.c:1047 [inline]
do_coredump fs/coredump.c:1126 [inline]
vfs_coredump+0x281a/0x54a0 fs/coredump.c:1195
get_signal+0x1f2a/0x21e0 kernel/signal.c:3024
arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337
__exit_to_user_mode_loop kernel/entry/common.c:66 [inline]
exit_to_user_mode_loop kernel/entry/common.c:101 [inline]
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline]
irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline]
irqentry_exit+0x402/0xa10 kernel/entry/common.c:165
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595
RIP: 0033:0x7f621df9e0e1
Code: 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 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f
RSP: 002b:0000000000000030 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007f621e225fa0 RCX: 00007f621df9e0d9
RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000000000000600
RBP: 00007f621e035024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 00007f621e226038 R14: 00007f621e225fa0 R15: 00007fffa28196f8
Allocated by task 12318:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5563
_kmalloc_noprof include/linux/slab.h:991 [inline]
_kzalloc_noprof include/linux/slab.h:1312 [inline]
llc_sap_alloc net/llc/llc_core.c:29 [inline]
llc_sap_open+0x120/0x3b0 net/llc/llc_core.c:96
llc_ui_autobind.isra.0+0x2ae/0x580 net/llc/af_llc.c:301
llc_ui_connect+0x582/0xdb0 net/llc/af_llc.c:498
connect_socket net/socket.c:2141 [inline]
connect_socket net/socket.c:2131 [inline]
__sys_connect_file+0x146/0x1a0 net/socket.c:2166
__sys_connect+0x141/0x170 net/socket.c:2183
__do_sys_connect net/socket.c:2189 [inline]
__se_sys_connect net/socket.c:2186 [inline]
__x64_sys_connect+0x72/0xb0 net/socket.c:2186
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5983:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2748 [inline]
__rcu_free_sheaf_prepare+0x5d/0x300 mm/slub.c:3009
rcu_free_sheaf+0x1a/0xe0 mm/slub.c:6052
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x5f0/0x1260 kernel/rcu/tree.c:2919
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0x194/0x210 kernel/softirq.c:767
irq_exit_rcu+0x9/0x30 kernel/softirq.c:784
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
The buggy address belongs to the object at ffff888033db5000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 16 bytes inside of
freed 2048-byte region [ffff888033db5000, ffff888033db5800)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x33db0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801c030000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88801c030000 dead000000000100 dead000000000122
head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5627, tgid 5627 (syz-executor), ts 90313525509
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x110d/0x35b0 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab mm/slub.c:3462 [inline]
new_slab+0xa9/0x6e0 mm/slub.c:3513
refill_objects+0xe3/0x410 mm/slub.c:7410
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
__do_kmalloc_node mm/slub.c:5413 [inline]
__kmalloc_noprof+0x67c/0x840 mm/slub.c:5439
_kmalloc_noprof include/linux/slab.h:995 [inline]
batadv_hash_new+0xb2/0x2e0 net/batman-adv/hash.c:59
batadv_bla_init+0x3a7/0x700 net/batman-adv/bridge_loop_avoidance.c:1621
batadv_mesh_init+0x550/0x8d0 net/batman-adv/main.c:251
batadv_meshif_init_late+0xb26/0xe60 net/batman-adv/mesh-interface.c:864
register_netdevice+0x685/0x25a0 net/core/dev.c:11422
batadv_meshif_newlink+0x8f/0xc0 net/batman-adv/mesh-interface.c:1142
rtnl_newlink_create net/core/rtnetlink.c:3969 [inline]
__rtnl_newlink net/core/rtnetlink.c:4098 [inline]
rtnl_newlink+0x1697/0x2620 net/core/rtnetlink.c:4215
rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7132
netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2556
page last free pid 5603 tgid 5603 ts 83757424269 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962
__folio_put+0x3b4/0x5f0 mm/folio.c:105
folio_put include/linux/mm.h:2160 [inline]
put_page include/linux/mm.h:2229 [inline]
put_netmem include/net/netmem.h:394 [inline]
skb_page_unref include/linux/skbuff_ref.h:43 [inline]
__skb_frag_unref include/linux/skbuff_ref.h:56 [inline]
skb_release_data+0x649/0x8e0 net/core/skbuff.c:1116
skb_release_all net/core/skbuff.c:1197 [inline]
__kfree_skb net/core/skbuff.c:1211 [inline]
napi_consume_skb+0x2c0/0x320 net/core/skbuff.c:1542
skb_defer_free_flush+0x1f1/0x290 net/core/dev.c:6920
net_rx_action+0x3ca/0xf20 net/core/dev.c:7988
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
do_softirq kernel/softirq.c:546 [inline]
do_softirq+0xaf/0xf0 kernel/softirq.c:533
__local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:923 [inline]
__dev_queue_xmit+0xa27/0x4970 net/core/dev.c:4961
dev_queue_xmit include/linux/netdevice.h:3461 [inline]
neigh_hh_output include/net/neighbour.h:544 [inline]
neigh_output include/net/neighbour.h:558 [inline]
ip_finish_output2+0xf4a/0x2400 net/ipv4/ip_output.c:236
__ip_finish_output.part.0+0x444/0x6f0 net/ipv4/ip_output.c:314
__ip_finish_output net/ipv4/ip_output.c:302 [inline]
ip_finish_output net/ipv4/ip_output.c:324 [inline]
NF_HOOK_COND include/linux/netfilter.h:314 [inline]
ip_output+0x39b/0xc10 net/ipv4/ip_output.c:437
dst_output include/net/dst.h:470 [inline]
ip_local_out+0x193/0x1f0 net/ipv4/ip_output.c:131
__ip_queue_xmit+0x885/0x1f40 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x3506/0x4f20 net/ipv4/tcp_output.c:1716
Memory state around the buggy address:
ffff888033db4f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888033db4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888033db5000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888033db5080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888033db5100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: d9 ba 80 00 00 00 fnstcw 0x80(%rdx)
6: 48 83 fd 05 cmp $0x5,%rbp
a: 0f 83 ac 03 00 00 jae 0x3bc
10: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
17: fc ff df
1a: 49 8d 7c ed 38 lea 0x38(%r13,%rbp,8),%rdi
1f: 48 89 f9 mov %rdi,%rcx
22: 48 c1 e9 03 shr $0x3,%rcx
26: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1)
* 2a: 0f 85 68 03 00 00 jne 0x398 <-- trapping instruction
30: 4d 03 44 ed 38 add 0x38(%r13,%rbp,8),%r8
35: 4d 39 c8 cmp %r9,%r8
38: 0f 8d 8a 01 00 00 jge 0x1c8
3e: 45 rex.RB
3f: 85 .byte 0x85