==================================================================
BUG: KASAN: slab-use-after-free in llc_conn_ac_send_sabme_cmd_p_set_x+0x38a/0x420 net/llc/llc_c_ac.c:782
Read of size 1 at addr ffff888060482010 by task kworker/1:1H/1664
CPU: 1 UID: 0 PID: 1664 Comm: kworker/1:1H Tainted: G S L syzkaller #0 PREEMPT(full)
Tainted: [S]=CPU_OUT_OF_SPEC, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: events_highpri snd_vmidi_output_work
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
llc_conn_ac_send_sabme_cmd_p_set_x+0x38a/0x420 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+0x4fb/0x1380 net/llc/llc_conn.c:66
llc_process_tmr_ev net/llc/llc_c_ac.c:1442 [inline]
llc_conn_tmr_common_cb+0x34a/0x780 net/llc/llc_c_ac.c:1325
call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1748
expire_timers kernel/time/timer.c:1799 [inline]
__run_timers kernel/time/timer.c:2374 [inline]
__run_timer_base+0x652/0x8b0 kernel/time/timer.c:2386
run_timer_base kernel/time/timer.c:2395 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405
handle_softirqs+0x226/0x860 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0xcb/0x220 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+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221
Code: f7 e8 3d c6 bc f5 f7 c3 00 02 00 00 74 05 e8 50 02 e9 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 d4 df ad f5 65 48 8b 05 9c b1 ad 07 48 85 c0 74 18 5b 41 5e c3
RSP: 0018:ffffc90005c879b0 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000293 RCX: 0000000000000001
RDX: 0000000000000006 RSI: ffffffff8e478a87 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff907a4f7f R09: 1ffffffff20f49ef
R10: dffffc0000000000 R11: fffffbfff20f49f0 R12: ffffc90005c87a60
R13: ffff888031d98318 R14: ffff888031d98338 R15: ffff888031d98300
spin_unlock_irqrestore include/linux/spinlock.h:425 [inline]
class_spinlock_irqsave_destructor include/linux/spinlock.h:644 [inline]
snd_rawmidi_transmit+0x9c/0xd0 sound/core/rawmidi.c:1493
snd_vmidi_output_work+0x1a5/0x3e0 sound/core/seq/seq_virmidi.c:152
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 16435:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__kmalloc_cache_noprof+0x321/0x600 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+0xe1/0x3b0 net/llc/llc_core.c:96
llc_ui_autobind+0x1f1/0x560 net/llc/af_llc.c:301
llc_ui_connect+0x1d7/0xd50 net/llc/af_llc.c:498
connect_socket net/socket.c:2141 [inline]
__sys_connect_file net/socket.c:2166 [inline]
__sys_connect+0x316/0x450 net/socket.c:2183
__do_sys_connect net/socket.c:2189 [inline]
__se_sys_connect net/socket.c:2186 [inline]
__x64_sys_connect+0x7a/0x90 net/socket.c:2186
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 15832:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/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+0x12d/0x2a0 mm/slub.c:3009
rcu_free_sheaf+0x31/0x200 mm/slub.c:6052
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919
handle_softirqs+0x226/0x860 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0xcb/0x220 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+0xa6/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 ffff888060482000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 16 bytes inside of
freed 2048-byte region [ffff888060482000, ffff888060482800)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888060481000 pfn:0x60480
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801b042000 ffffea0000b2c610 ffffea0001fce010
raw: ffff888060481000 0000000000080005 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801b042000 ffffea0000b2c610 ffffea0001fce010
head: ffff888060481000 0000000000080005 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 10544, tgid 10544 (syz-executor), ts 650642197283
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab+0x7d/0x620 mm/slub.c:3462
new_slab mm/slub.c:3513 [inline]
refill_objects+0x2d5/0x350 mm/slub.c:7410
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x2c8/0x6c0 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_node_track_caller_noprof+0x548/0x720 mm/slub.c:5545
kmalloc_reserve net/core/skbuff.c:637 [inline]
pskb_expand_head+0x22c/0x13a0 net/core/skbuff.c:2315
netlink_trim+0x1b3/0x2c0 net/netlink/af_netlink.c:1300
netlink_broadcast_filtered+0x6d/0xea0 net/netlink/af_netlink.c:1518
nlmsg_multicast_filtered include/net/netlink.h:1165 [inline]
nlmsg_multicast include/net/netlink.h:1184 [inline]
nlmsg_notify+0xe3/0x1a0 net/netlink/af_netlink.c:2599
rtnl_notify net/core/rtnetlink.c:994 [inline]
rtmsg_ifinfo_send net/core/rtnetlink.c:4609 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4625 [inline]
rtnetlink_event+0x224/0x270 net/core/rtnetlink.c:7192
notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85
netdev_lower_state_changed+0xc4/0x140 net/core/dev.c:9633
bond_lower_state_changed drivers/net/bonding/bond_main.c:1834 [inline]
bond_commit_link_state+0x1cb/0x3b0 include/net/bonding.h:623
bond_set_slave_link_state include/net/bonding.h:637 [inline]
bond_enslave+0x1887/0x3b10 drivers/net/bonding/bond_main.c:-1
page last free pid 8263 tgid 8263 ts 650619999603 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__slab_free+0x274/0x2c0 mm/slub.c:5815
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4683 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
kmem_cache_alloc_noprof+0x2b9/0x600 mm/slub.c:5010
alloc_filename fs/namei.c:147 [inline]
do_getname+0x2e/0x250 fs/namei.c:187
getname_flags fs/namei.c:230 [inline]
class_filename_flags_constructor include/linux/fs.h:2586 [inline]
user_path_at+0x2a/0x160 fs/namei.c:3640
ksys_umount fs/namespace.c:2067 [inline]
__do_sys_umount fs/namespace.c:2075 [inline]
__se_sys_umount fs/namespace.c:2073 [inline]
__x64_sys_umount+0xf6/0x170 fs/namespace.c:2073
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888060481f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888060481f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888060482000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888060482080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888060482100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: f7 e8 imul %eax
2: 3d c6 bc f5 f7 cmp $0xf7f5bcc6,%eax
7: c3 ret
8: 00 02 add %al,(%rdx)
a: 00 00 add %al,(%rax)
c: 74 05 je 0x13
e: e8 50 02 e9 f5 call 0xf5e90263
13: 9c pushf
14: 58 pop %rax
15: a9 00 02 00 00 test $0x200,%eax
1a: 75 29 jne 0x45
1c: f7 c3 00 02 00 00 test $0x200,%ebx
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 d4 df ad f5 call 0xf5ade003 <-- trapping instruction
2f: 65 48 8b 05 9c b1 ad mov %gs:0x7adb19c(%rip),%rax # 0x7adb1d3
36: 07
37: 48 85 c0 test %rax,%rax
3a: 74 18 je 0x54
3c: 5b pop %rbx
3d: 41 5e pop %r14
3f: c3 ret