==================================================================
BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964
Read of size 1 at addr ffff88803b48bfff by task syz.5.2428/14732
CPU: 1 UID: 0 PID: 14732 Comm: syz.5.2428 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
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
mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964
__hid_input_report+0x41c/0x580 drivers/hid/hid-core.c:2168
hid_irq_in+0x492/0x710 drivers/hid/usbhid/hid-core.c:287
__usb_hcd_giveback_urb+0x378/0x540 drivers/usb/core/hcd.c:1657
dummy_timer+0xa91/0x4cf0 drivers/usb/gadget/udc/dummy_hcd.c:2019
__run_hrtimer kernel/time/hrtimer.c:2067 [inline]
__hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2124
hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2141
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:__free_object+0x448/0x5d0 lib/debugobjects.c:541
Code: f6 06 48 8b 5c 24 10 f7 c3 00 02 00 00 74 05 e8 9e 75 ee fc 9c 58 a9 00 02 00 00 75 1d f7 c3 00 02 00 00 74 01 fb 48 83 c4 18 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 83 d8 f3 06 f7
RSP: 0018:ffffc90005037b30 EFLAGS: 00000296
RAX: 0000000000000002 RBX: 0000000000000296 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e230a73 RDI: ffffffff8c4bdd80
RBP: dffffc0000000000 R08: ffffffff9057ad37 R09: 1ffffffff20af5a6
R10: dffffc0000000000 R11: fffffbfff20af5a7 R12: ffff8880b873ce08
R13: 1ffff110170e79c0 R14: ffff8880b873ce00 R15: ffff888039b7e4d8
free_object lib/debugobjects.c:549 [inline]
debug_object_free+0x29c/0x340 lib/debugobjects.c:1039
futex_wait+0x13d/0x390 kernel/futex/waitwake.c:757
do_futex+0x3e7/0x4e0 kernel/futex/syscalls.c:133
__do_sys_futex kernel/futex/syscalls.c:210 [inline]
__se_sys_futex+0x3a8/0x450 kernel/futex/syscalls.c:191
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
RIP: 0033:0x7fb128b9e0d9
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:00007fb128f4fba8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 000000000008b5bf RCX: 00007fb128b9e0d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb128e2627c
RBP: 0000000000000032 R08: 3fffffffffffffff R09: 0000000000000000
R10: 00007fb128f4fcb0 R11: 0000000000000246 R12: 00007fb128f4fcd0
R13: 00007fb128e2627c R14: 000000000008b5f1 R15: 00007fb128f4fcb0
Allocated by task 14725:
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+0x331/0x660 mm/slub.c:5489
_kmalloc_noprof include/linux/slab.h:988 [inline]
_kzalloc_noprof include/linux/slab.h:1309 [inline]
ipv6_add_addr+0x55e/0x1110 net/ipv6/addrconf.c:1126
add_addr+0x8b/0x2d0 net/ipv6/addrconf.c:3224
add_v4_addrs+0x571/0x7e0 net/ipv6/addrconf.c:3286
addrconf_sit_config net/ipv6/addrconf.c:3544 [inline]
addrconf_init_auto_addrs+0x248/0xa50 net/ipv6/addrconf.c:3582
addrconf_notify+0xb1e/0x1050 net/ipv6/addrconf.c:3775
notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85
call_netdevice_notifiers_extack net/core/dev.c:2288 [inline]
call_netdevice_notifiers net/core/dev.c:2302 [inline]
netif_open+0x10f/0x190 net/core/dev.c:1730
dev_open+0x101/0x220 net/core/dev_api.c:202
addrconf_set_sit_dstaddr net/ipv6/addrconf.c:2989 [inline]
addrconf_set_dstaddr+0x284/0x330 net/ipv6/addrconf.c:3011
inet6_ioctl+0x163/0x2e0 net/ipv6/af_inet6.c:568
sock_do_ioctl+0x101/0x320 net/socket.c:1325
sock_ioctl+0x57a/0x7e0 net/socket.c:1446
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
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
The buggy address belongs to the object at ffff88803b48bc00
which belongs to the cache kmalloc-cg-512 of size 512
The buggy address is located 583 bytes to the right of
allocated 440-byte region [ffff88803b48bc00, ffff88803b48bdb8)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3b488
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88803b488211
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801b008140 dead000000000100 dead000000000122
raw: 0000000000000000 0000040000100010 00000000f5000000 ffff88803b488211
head: 00fff00000000040 ffff88801b008140 dead000000000100 dead000000000122
head: 0000000000000000 0000040000100010 00000000f5000000 ffff88803b488211
head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
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 14734, tgid 14732 (syz.5.2428), ts 570486277962, free_ts 445320020801
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859
prep_new_page mm/page_alloc.c:1867 [inline]
get_page_from_freelist+0x21fe/0x2270 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304
alloc_slab_page mm/slub.c:3266 [inline]
allocate_slab+0x79/0x5e0 mm/slub.c:3380
new_slab mm/slub.c:3426 [inline]
refill_objects+0x2d5/0x350 mm/slub.c:7310
refill_sheaf mm/slub.c:2804 [inline]
__pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4675
alloc_from_pcs mm/slub.c:4773 [inline]
slab_alloc_node mm/slub.c:4905 [inline]
__do_kmalloc_node mm/slub.c:5333 [inline]
__kmalloc_node_track_caller_noprof+0x55b/0x740 mm/slub.c:5471
kmalloc_reserve net/core/skbuff.c:637 [inline]
__alloc_skb+0x2c1/0x7a0 net/core/skbuff.c:715
alloc_skb include/linux/skbuff.h:1384 [inline]
alloc_skb_with_frags+0xc6/0x760 net/core/skbuff.c:6775
sock_alloc_send_pskb+0x878/0x990 net/core/sock.c:3012
unix_dgram_sendmsg+0x4da/0x17b0 net/unix/af_unix.c:2132
sock_sendmsg_nosec+0x13a/0x180 net/socket.c:800
__sock_sendmsg net/socket.c:815 [inline]
____sys_sendmsg+0x54e/0x850 net/socket.c:2709
___sys_sendmsg+0x2a5/0x360 net/socket.c:2763
__sys_sendmmsg+0x273/0x4d0 net/socket.c:2852
__do_sys_sendmmsg net/socket.c:2879 [inline]
__se_sys_sendmmsg net/socket.c:2876 [inline]
__x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2876
page last free pid 24 tgid 24 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1406 [inline]
__free_frozen_pages+0xc22/0xd20 mm/page_alloc.c:2950
__folio_put+0x4b3/0x590 mm/swap.c:112
folio_put include/linux/mm.h:2124 [inline]
put_page include/linux/mm.h:2193 [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+0x573/0xab0 net/core/skbuff.c:1116
skb_release_all net/core/skbuff.c:1197 [inline]
napi_consume_skb+0x1eb/0x2a0 net/core/skbuff.c:1546
skb_defer_free_flush+0x191/0x260 net/core/dev.c:6872
net_rx_action+0x44d/0xf50 net/core/dev.c:7940
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
Memory state around the buggy address:
ffff88803b48be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88803b48bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88803b48bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88803b48c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88803b48c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: f6 06 48 testb $0x48,(%rsi)
3: 8b 5c 24 10 mov 0x10(%rsp),%ebx
7: f7 c3 00 02 00 00 test $0x200,%ebx
d: 74 05 je 0x14
f: e8 9e 75 ee fc call 0xfcee75b2
14: 9c pushf
15: 58 pop %rax
16: a9 00 02 00 00 test $0x200,%eax
1b: 75 1d jne 0x3a
1d: f7 c3 00 02 00 00 test $0x200,%ebx
23: 74 01 je 0x26
25: fb sti
26: 48 83 c4 18 add $0x18,%rsp
* 2a: 5b pop %rbx <-- trapping instruction
2b: 41 5c pop %r12
2d: 41 5d pop %r13
2f: 41 5e pop %r14
31: 41 5f pop %r15
33: 5d pop %rbp
34: c3 ret
35: cc int3
36: cc int3
37: cc int3
38: cc int3
39: cc int3
3a: e8 83 d8 f3 06 call 0x6f3d8c2
3f: f7 .byte 0xf7