================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964 Read of size 1 at addr ffff8880323fffff by task syz.5.8179/3049 CPU: 1 UID: 0 PID: 3049 Comm: syz.5.8179 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x374/0x530 drivers/usb/core/hcd.c:1657 dummy_timer+0xac3/0x4b40 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2096 hrtimer_run_softirq+0x17a/0x240 kernel/time/hrtimer.c:2113 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 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:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198 Code: f7 e8 ad fc d0 f5 f7 c3 00 02 00 00 74 05 e8 30 e0 fc f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 b4 12 c2 f5 65 8b 05 ad b2 9a 07 85 c0 74 18 5b 41 5e e9 91 48 RSP: 0018:ffffc9000382f7a0 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000296 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8e22acf9 RDI: 0000000000000001 RBP: ffffea0001d21990 R08: ffffffff90577af7 R09: 1ffffffff20aef5e R10: dffffc0000000000 R11: fffffbfff20aef5f R12: 0000000000000000 R13: ffff88802c715000 R14: ffffffff9aa18690 R15: 0000000000000000 __debug_check_no_obj_freed lib/debugobjects.c:1180 [inline] debug_check_no_obj_freed+0x39e/0x450 lib/debugobjects.c:1201 slab_free_hook mm/slub.c:2636 [inline] slab_free mm/slub.c:6405 [inline] kmem_cache_free+0xfd/0x650 mm/slub.c:6532 file_free+0x24/0x1d0 fs/file_table.c:97 __fput_deferred+0x2a3/0x380 fs/file_table.c:567 fput_close+0x11f/0x240 fs/file_table.c:629 path_openat+0x30b9/0x3830 fs/namei.c:4872 do_file_open+0x23e/0x4a0 fs/namei.c:4892 do_sys_openat2+0x115/0x200 fs/open.c:1368 do_sys_open fs/open.c:1374 [inline] __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1385 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f78e959de59 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:00007f78ea3c4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f78e9826090 RCX: 00007f78e959de59 RDX: 0000000000000000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f78e9633e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f78e9826128 R14: 00007f78e9826090 R15: 00007f78e994fa48 Allocated by task 1: 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] __do_kmalloc_node mm/slub.c:5362 [inline] __kmalloc_node_track_caller_noprof+0x4c3/0x730 mm/slub.c:5497 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:715 [inline] __addrconf_sysctl_register+0xa7/0x4b0 net/ipv6/addrconf.c:7348 addrconf_sysctl_register+0x168/0x1c0 net/ipv6/addrconf.c:7414 ipv6_add_dev+0xd26/0x13a0 net/ipv6/addrconf.c:460 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3685 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] register_netdevice+0x18a4/0x1eb0 net/core/dev.c:11478 register_netdev+0x40/0x60 net/core/dev.c:11556 sit_init_net+0x228/0x5d0 net/ipv6/sit.c:1866 ops_init+0x35d/0x5d0 net/core/net_namespace.c:137 __register_pernet_operations net/core/net_namespace.c:1318 [inline] register_pernet_operations+0x32e/0x870 net/core/net_namespace.c:1395 register_pernet_device+0x2a/0x80 net/core/net_namespace.c:1482 sit_init+0x1d/0x120 net/ipv6/sit.c:1908 do_one_initcall+0x250/0x870 init/main.c:1347 do_initcall_level+0x10a/0x1a0 init/main.c:1409 do_initcalls+0x59/0xa0 init/main.c:1425 kernel_init_freeable+0x29d/0x3e0 init/main.c:1658 kernel_init+0x1d/0x1d0 init/main.c:1548 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880323fe000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 4663 bytes to the right of allocated 3528-byte region [ffff8880323fe000, ffff8880323fedc8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x323f8 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 ffff88801b01b500 dead000000000122 0000000000000000 raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b01b500 dead000000000122 0000000000000000 head: 0000000000000000 0000000800040004 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 24004255925, free_ts 0 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+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3294 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3408 new_slab mm/slub.c:3454 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7338 refill_sheaf mm/slub.c:2832 [inline] __pcs_replace_empty_main+0x2bf/0x6b0 mm/slub.c:4703 alloc_from_pcs mm/slub.c:4801 [inline] slab_alloc_node mm/slub.c:4933 [inline] __do_kmalloc_node mm/slub.c:5361 [inline] __kmalloc_node_track_caller_noprof+0x557/0x730 mm/slub.c:5497 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:715 [inline] __addrconf_sysctl_register+0xa7/0x4b0 net/ipv6/addrconf.c:7348 addrconf_sysctl_register+0x168/0x1c0 net/ipv6/addrconf.c:7414 ipv6_add_dev+0xd26/0x13a0 net/ipv6/addrconf.c:460 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3685 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] register_netdevice+0x18a4/0x1eb0 net/core/dev.c:11478 register_netdev+0x40/0x60 net/core/dev.c:11556 sit_init_net+0x228/0x5d0 net/ipv6/sit.c:1866 page_owner free stack trace missing Memory state around the buggy address: ffff8880323ffe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880323fff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880323fff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888032400000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888032400080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: ad lods %ds:(%rsi),%eax 3: fc cld 4: d0 f5 shl $1,%ch 6: f7 c3 00 02 00 00 test $0x200,%ebx c: 74 05 je 0x13 e: e8 30 e0 fc f5 call 0xf5fce043 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 27 jne 0x43 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 b4 12 c2 f5 call 0xf5c212e3 <-- trapping instruction 2f: 65 8b 05 ad b2 9a 07 mov %gs:0x79ab2ad(%rip),%eax # 0x79ab2e3 36: 85 c0 test %eax,%eax 38: 74 18 je 0x52 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: e9 .byte 0xe9 3e: 91 xchg %eax,%ecx 3f: 48 rex.W