================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964 Read of size 1 at addr ffff888068edffff by task syz.1.423/7639 CPU: 1 UID: 0 PID: 7639 Comm: syz.1.423 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x428/0x590 drivers/hid/hid-core.c:2161 hid_irq_in+0x495/0x710 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x376/0x540 drivers/usb/core/hcd.c:1655 dummy_timer+0xbc0/0x4650 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:1930 [inline] __hrtimer_run_queues+0x3c0/0xa20 kernel/time/hrtimer.c:1994 hrtimer_run_softirq+0x17a/0x240 kernel/time/hrtimer.c:2011 handle_softirqs+0x22a/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:1061 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:188 [inline] RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:206 Code: 90 f3 0f 1e fa 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 0a c3 f7 f5 48 89 df e8 12 38 f8 f5 e8 4d d2 23 f6 fb bf 01 00 00 00 42 b7 e9 f5 65 8b 05 3b 2e 8e 07 85 c0 74 07 5b c3 cc cc cc cc RSP: 0018:ffffc90005157890 EFLAGS: 00000206 RAX: 0000000000000bbd RBX: ffffc90005157aa8 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8dfa4398 RDI: 0000000000000001 RBP: ffffc90005157a08 R08: ffffffff90302af7 R09: 1ffffffff206055e R10: dffffc0000000000 R11: fffffbfff206055f R12: 7fffffffffffffff R13: 0000000000000001 R14: dffffc0000000000 R15: ffffc90005157aa0 __wait_for_common+0x5ae/0x690 kernel/sched/completion.c:122 wait_for_common kernel/sched/completion.c:132 [inline] wait_for_completion_interruptible+0x1f/0x40 kernel/sched/completion.c:221 raw_process_ep_io+0x609/0xd90 drivers/usb/gadget/legacy/raw_gadget.c:1122 raw_ioctl_ep_write drivers/usb/gadget/legacy/raw_gadget.c:1153 [inline] raw_ioctl+0x252c/0x41c0 drivers/usb/gadget/legacy/raw_gadget.c:1325 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:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f249739caeb Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f24981eff60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f249739caeb RDX: 00007f24981effe0 RSI: 0000000040085507 RDI: 0000000000000008 RBP: 0000000000000008 R08: 00007f2497740320 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 00002000000006c0 R13: 0000000000000000 R14: 00007f2497615fa0 R15: 00007f249773fa48 Allocated by task 4997: 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:5296 [inline] __kvmalloc_node_noprof+0x528/0x8a0 mm/slub.c:6833 seq_buf_alloc fs/seq_file.c:39 [inline] seq_read_iter+0x202/0xe10 fs/seq_file.c:211 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x582/0xa70 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:717 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 Freed by task 4997: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/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:2689 [inline] slab_free mm/slub.c:6251 [inline] kfree+0x1c5/0x640 mm/slub.c:6566 seq_release+0x54/0x70 fs/seq_file.c:356 kernfs_fop_release+0x2f8/0x440 fs/kernfs/file.c:784 __fput+0x44f/0xa60 fs/file_table.c:510 fput_close_sync+0x11f/0x240 fs/file_table.c:615 __do_sys_close fs/open.c:1507 [inline] __se_sys_close fs/open.c:1492 [inline] __x64_sys_close+0x7e/0x110 fs/open.c:1492 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 The buggy address belongs to the object at ffff888068ede000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 4095 bytes to the right of allocated 4096-byte region [ffff888068ede000, ffff888068edf000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x68ed8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888068ed9011 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813fe33500 dead000000000100 dead000000000122 raw: 0000000000000000 0000200000040004 00000000f5000000 ffff888068ed9011 head: 00fff00000000040 ffff88813fe33500 dead000000000100 dead000000000122 head: 0000000000000000 0000200000040004 00000000f5000000 ffff888068ed9011 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 7191, tgid 7191 (syz-executor), ts 181518854791, free_ts 181486839885 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x2593/0x2610 mm/page_alloc.c:3941 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5221 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x339/0x3d0 mm/slub.c:7272 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x321/0x720 mm/slub.c:4652 alloc_from_pcs mm/slub.c:4750 [inline] slab_alloc_node mm/slub.c:4884 [inline] __do_kmalloc_node mm/slub.c:5295 [inline] __kmalloc_noprof+0x474/0x760 mm/slub.c:5308 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __register_sysctl_table+0x72/0x1340 fs/proc/proc_sysctl.c:1379 __addrconf_sysctl_register+0x331/0x4d0 net/ipv6/addrconf.c:7335 addrconf_sysctl_register+0x168/0x1c0 net/ipv6/addrconf.c:7383 ipv6_add_dev+0xd26/0x13a0 net/ipv6/addrconf.c:460 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3662 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] register_netdevice+0x18c9/0x1ec0 net/core/dev.c:11461 register_vlan_dev+0x388/0x800 net/8021q/vlan.c:179 vlan_newlink+0x4b2/0x610 net/8021q/vlan_netlink.c:194 page last free pid 7191 tgid 7191 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1397 [inline] __free_frozen_pages+0xc1c/0xd30 mm/page_alloc.c:2938 __slab_free+0x274/0x2c0 mm/slub.c:5613 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:4570 [inline] slab_alloc_node mm/slub.c:4899 [inline] __kmalloc_cache_noprof+0x2ba/0x660 mm/slub.c:5415 kmalloc_noprof include/linux/slab.h:950 [inline] netdev_name_node_alloc net/core/dev.c:276 [inline] netdev_name_node_head_alloc net/core/dev.c:290 [inline] register_netdevice+0x57d/0x1ec0 net/core/dev.c:11336 veth_newlink+0x67b/0xb70 drivers/net/veth.c:1890 rtnl_newlink_create+0x329/0xb70 net/core/rtnetlink.c:3864 __rtnl_newlink net/core/rtnetlink.c:3995 [inline] rtnl_newlink+0x166a/0x1bb0 net/core/rtnetlink.c:4110 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6997 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2555 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x75c/0x8e0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1899 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] __sys_sendto+0x672/0x710 net/socket.c:2265 __do_sys_sendto net/socket.c:2272 [inline] __se_sys_sendto net/socket.c:2268 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2268 Memory state around the buggy address: ffff888068edfe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888068edff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888068edff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888068ee0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888068ee0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 90 nop 1: f3 0f 1e fa endbr64 5: 53 push %rbx 6: 48 89 fb mov %rdi,%rbx 9: 48 83 c7 18 add $0x18,%rdi d: 48 8b 74 24 08 mov 0x8(%rsp),%rsi 12: e8 0a c3 f7 f5 call 0xf5f7c321 17: 48 89 df mov %rbx,%rdi 1a: e8 12 38 f8 f5 call 0xf5f83831 1f: e8 4d d2 23 f6 call 0xf623d271 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 42 b7 e9 f5 call 0xf5e9b771 <-- trapping instruction 2f: 65 8b 05 3b 2e 8e 07 mov %gs:0x78e2e3b(%rip),%eax # 0x78e2e71 36: 85 c0 test %eax,%eax 38: 74 07 je 0x41 3a: 5b pop %rbx 3b: c3 ret 3c: cc int3 3d: cc int3 3e: cc int3 3f: cc int3