================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x1062/0x1240 drivers/hid/hid-mcp2221.c:858 Read of size 1 at addr ffff88806ccb3fff by task kworker/0:1/9 CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Workqueue: usb_hub_wq hub_event Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 mcp2221_raw_event+0x1062/0x1240 drivers/hid/hid-mcp2221.c:858 hid_input_report+0x400/0x510 drivers/hid/hid-core.c:2103 hid_irq_in+0x479/0x6d0 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1650 dummy_timer+0x8de/0x3320 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1754 [inline] __hrtimer_run_queues+0x520/0xc40 kernel/time/hrtimer.c:1818 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1835 handle_softirqs+0x280/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:__sanitizer_cov_trace_pc+0x5c/0x60 kernel/kcov.c:234 Code: f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 0f 1f 00 f3 0f 1e fa 48 8b 04 24 65 48 8b 15 40 8a 7c 7e 65 8b RSP: 0018:ffffc900000e66a8 EFLAGS: 00000287 RAX: ffffffff8a746277 RBX: ffff8881456a8000 RCX: 0000000000100000 RDX: ffffc90017968000 RSI: 00000000000dbee1 RDI: 00000000000dbee2 RBP: 0000000000000000 R08: ffffffff8e8b666f R09: 1ffffffff1d16ccd R10: dffffc0000000000 R11: fffffbfff1d16cce R12: ffff888142f1cc80 R13: ffff88805b88cdc0 R14: 0000000000000001 R15: dffffc0000000000 uevent_net_broadcast_untagged lib/kobject_uevent.c:324 [inline] kobject_uevent_net_broadcast+0x2c7/0x530 lib/kobject_uevent.c:409 kobject_uevent_env+0x550/0x8b0 lib/kobject_uevent.c:608 device_add+0x5e8/0xc50 drivers/base/core.c:3666 cdev_device_add+0x1d6/0x390 fs/char_dev.c:556 i2cdev_attach_adapter+0x2eb/0x4d0 drivers/i2c/i2c-dev.c:676 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 blocking_notifier_call_chain+0x6a/0x90 kernel/notifier.c:388 bus_notify+0x13e/0x180 drivers/base/bus.c:1039 device_add+0x5de/0xc50 drivers/base/core.c:3665 i2c_register_adapter+0x372/0xfb0 drivers/i2c/i2c-core-base.c:1551 devm_i2c_add_adapter+0x1b/0x80 drivers/i2c/i2c-core-base.c:1842 mcp2221_probe+0x300/0x760 drivers/hid/hid-mcp2221.c:1198 __hid_device_probe drivers/hid/hid-core.c:2652 [inline] hid_device_probe+0x293/0x5b0 drivers/hid/hid-core.c:2689 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:718 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:880 driver_probe_device+0x4f/0x420 drivers/base/dd.c:910 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1110 bus_probe_device+0x180/0x260 drivers/base/bus.c:573 device_add+0x88e/0xc50 drivers/base/core.c:3700 hid_add_device+0x38d/0x530 drivers/hid/hid-core.c:2835 usbhid_probe+0xe02/0x1220 drivers/hid/usbhid/hid-core.c:1447 usb_probe_interface+0x5c9/0xb20 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:718 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:880 driver_probe_device+0x4f/0x420 drivers/base/dd.c:910 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1110 bus_probe_device+0x180/0x260 drivers/base/bus.c:573 device_add+0x88e/0xc50 drivers/base/core.c:3700 usb_set_configuration+0x1a79/0x20c0 drivers/usb/core/message.c:2265 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13d/0x270 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:718 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:880 driver_probe_device+0x4f/0x420 drivers/base/dd.c:910 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1110 bus_probe_device+0x180/0x260 drivers/base/bus.c:573 device_add+0x88e/0xc50 drivers/base/core.c:3700 usb_new_device+0xa3c/0x1660 drivers/usb/core/hub.c:2660 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29bf/0x49f0 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2653 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff88806ccb3e00 which belongs to the cache maple_node of size 256 The buggy address is located 255 bytes to the right of allocated 256-byte region [ffff88806ccb3e00, ffff88806ccb3f00) The buggy address belongs to the physical page: page:ffffea0001b32c80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6ccb2 head:ffffea0001b32c80 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888018645000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x152800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5789, tgid 5789 (udevd), ts 82390619126, free_ts 81063210572 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x1b3/0x2d0 mm/slub.c:3519 mt_alloc_one lib/maple_tree.c:162 [inline] mas_alloc_nodes+0x2f8/0x8c0 lib/maple_tree.c:1267 mas_node_count_gfp lib/maple_tree.c:1347 [inline] mas_node_count lib/maple_tree.c:1361 [inline] mas_wr_node_store lib/maple_tree.c:3945 [inline] mas_wr_modify+0x1284/0x2a10 lib/maple_tree.c:4231 mas_store_gfp+0x27c/0x390 lib/maple_tree.c:5440 vma_iter_clear_gfp mm/internal.h:1164 [inline] do_vmi_align_munmap+0xdc7/0x16d0 mm/mmap.c:2572 do_vmi_munmap+0x252/0x2d0 mm/mmap.c:2660 __vm_munmap+0x1a2/0x3c0 mm/mmap.c:2961 __do_sys_munmap mm/mmap.c:2978 [inline] __se_sys_munmap mm/mmap.c:2975 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:2975 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458 __slab_free+0x35a/0x400 mm/slub.c:3736 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] __kmem_cache_alloc_node+0x13a/0x250 mm/slub.c:3534 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] netdev_name_node_alloc net/core/dev.c:259 [inline] netdev_name_node_head_alloc net/core/dev.c:273 [inline] register_netdevice+0x573/0x1bb0 net/core/dev.c:10239 veth_newlink+0x7f4/0xc30 drivers/net/veth.c:1906 rtnl_newlink_create net/core/rtnetlink.c:3521 [inline] __rtnl_newlink net/core/rtnetlink.c:3741 [inline] rtnl_newlink+0x1542/0x20a0 net/core/rtnetlink.c:3754 rtnetlink_rcv_msg+0x869/0xfa0 net/core/rtnetlink.c:6476 netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894 Memory state around the buggy address: ffff88806ccb3e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806ccb3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806ccb3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806ccb4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806ccb4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: f8 clc 1: 15 00 00 83 fa adc $0xfa830000,%eax 6: 02 75 21 add 0x21(%rbp),%dh 9: 48 8b 91 00 16 00 00 mov 0x1600(%rcx),%rdx 10: 48 8b 32 mov (%rdx),%rsi 13: 48 8d 7e 01 lea 0x1(%rsi),%rdi 17: 8b 89 fc 15 00 00 mov 0x15fc(%rcx),%ecx 1d: 48 39 cf cmp %rcx,%rdi 20: 73 08 jae 0x2a 22: 48 89 3a mov %rdi,(%rdx) 25: 48 89 44 f2 08 mov %rax,0x8(%rdx,%rsi,8) * 2a: c3 ret <-- trapping instruction 2b: 0f 1f 00 nopl (%rax) 2e: f3 0f 1e fa endbr64 32: 48 8b 04 24 mov (%rsp),%rax 36: 65 48 8b 15 40 8a 7c mov %gs:0x7e7c8a40(%rip),%rdx # 0x7e7c8a7e 3d: 7e 3e: 65 gs 3f: 8b .byte 0x8b