================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff888119d77fff by task kworker/1:0/23 CPU: 1 UID: 0 PID: 23 Comm: kworker/1:0 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1a0 mm/kasan/report.c:595 mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 __hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2139 hid_irq_in+0x52e/0x6b0 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x38d/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xd85/0x3670 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1777 [inline] __hrtimer_run_queues+0x516/0x990 kernel/time/hrtimer.c:1841 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858 handle_softirqs+0x1dd/0x8f0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:filter_irq_stacks+0x5a/0x90 kernel/stacktrace.c:396 Code: 72 16 48 81 fa d0 15 00 81 73 0d 83 c0 01 48 83 c4 10 5b e9 98 d0 b9 05 48 81 fa 90 5d 56 87 72 09 48 81 fa ab 5d 56 87 72 e1 <83> c0 01 48 83 c7 08 39 c6 75 b4 89 f0 eb d5 31 c0 c3 cc cc cc cc RSP: 0018:ffffc9000018e698 EFLAGS: 00000283 RAX: 000000000000001d RBX: dffffc0000000000 RCX: 0000000000000001 RDX: ffffffff83b03dc4 RSI: 0000000000000032 RDI: ffffc9000018e7f8 RBP: 0000000000000dc0 R08: 0000000000000001 R09: 0000000000000007 R10: 0000000000000200 R11: 0000000000005939 R12: ffffc9000018e710 R13: 0000000000000a20 R14: ffffffff87b77fc0 R15: ffff8881026a0000 stack_depot_save_flags+0x27/0x9c0 lib/stackdepot.c:659 kasan_save_stack+0x3f/0x50 mm/kasan/common.c:58 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:415 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] kobject_uevent_env+0x263/0x18b0 lib/kobject_uevent.c:540 device_add+0x116e/0x1950 drivers/base/core.c:3670 i2c_register_adapter+0x39e/0x1240 drivers/i2c/i2c-core-base.c:1573 i2c_add_adapter drivers/i2c/i2c-core-base.c:1673 [inline] i2c_add_adapter+0x10a/0x1a0 drivers/i2c/i2c-core-base.c:1653 devm_i2c_add_adapter+0x1b/0x90 drivers/i2c/i2c-core-base.c:1845 mcp2221_probe.cold+0x5de/0xab3 drivers/hid/hid-mcp2221.c:1289 __hid_device_probe drivers/hid/hid-core.c:2775 [inline] hid_device_probe+0x50e/0x800 drivers/hid/hid-core.c:2812 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x340 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1031 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x160 drivers/base/bus.c:574 device_add+0x11d9/0x1950 drivers/base/core.c:3689 hid_add_device+0x2bf/0x440 drivers/hid/hid-core.c:2951 usbhid_probe+0xd57/0x1350 drivers/hid/usbhid/hid-core.c:1450 usb_probe_interface+0x303/0x8f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x340 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1031 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x160 drivers/base/bus.c:574 device_add+0x11d9/0x1950 drivers/base/core.c:3689 usb_set_configuration+0xd97/0x1c60 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0xa1/0xe0 drivers/usb/core/generic.c:250 usb_probe_device+0xef/0x400 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x340 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1031 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x160 drivers/base/bus.c:574 device_add+0x11d9/0x1950 drivers/base/core.c:3689 usb_new_device.cold+0x685/0x115c drivers/usb/core/hub.c:2695 hub_port_connect drivers/usb/core/hub.c:5567 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x314d/0x4af0 drivers/usb/core/hub.c:5953 process_one_work+0x9c2/0x1840 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x5da/0xe40 kernel/workqueue.c:3421 kthread+0x3b3/0x730 kernel/kthread.c:463 ret_from_fork+0x6c3/0xa20 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888119d75e00 pfn:0x119d74 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000040(head|node=0|zone=2) page_type: f8(unknown) raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 raw: ffff888119d75e00 0000000000000000 00000000f8000000 0000000000000000 head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 head: ffff888119d75e00 0000000000000000 00000000f8000000 0000000000000000 head: 0200000000000002 ffffea0004675d01 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 2966, tgid 2966 (kworker/0:2), ts 186278454994, free_ts 121986937302 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xd57/0x3b20 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x269/0x2230 mm/page_alloc.c:5240 alloc_pages_mpol+0xe8/0x410 mm/mempolicy.c:2486 ___kmalloc_large_node+0x104/0x150 mm/slub.c:5598 __kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:5629 __do_kmalloc_node mm/slub.c:5645 [inline] __kmalloc_noprof+0x65c/0x990 mm/slub.c:5669 kmalloc_noprof include/linux/slab.h:961 [inline] kmalloc_array_noprof include/linux/slab.h:1003 [inline] dvb_create_tsout_entity+0x5e/0x440 drivers/media/dvb-core/dvbdev.c:254 dvb_create_media_entity drivers/media/dvb-core/dvbdev.c:308 [inline] dvb_register_media_device drivers/media/dvb-core/dvbdev.c:402 [inline] dvb_register_device+0x7fa/0x1e60 drivers/media/dvb-core/dvbdev.c:553 dvb_dmxdev_init+0x2bc/0x4c0 drivers/media/dvb-core/dmxdev.c:1431 dvb_usb_adapter_dvb_init+0x658/0x860 drivers/media/usb/dvb-usb/dvb-usb-dvb.c:192 dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:86 [inline] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:186 [inline] dvb_usb_device_init.cold+0xbdb/0x14c3 drivers/media/usb/dvb-usb/dvb-usb-init.c:310 m920x_probe+0x4af/0x8e0 drivers/media/usb/dvb-usb/m920x.c:867 usb_probe_interface+0x303/0x8f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:801 page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7d1/0x1010 mm/page_alloc.c:2973 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xe0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x4e/0x70 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kmalloc_noprof+0x2f7/0x990 mm/slub.c:5669 kmalloc_noprof include/linux/slab.h:961 [inline] usb_alloc_urb+0x66/0xa0 drivers/usb/core/urb.c:75 usb_internal_control_msg drivers/usb/core/message.c:96 [inline] usb_control_msg+0x1d3/0x4a0 drivers/usb/core/message.c:154 rtl8xxxu_read32+0xff/0x1c0 drivers/net/wireless/realtek/rtl8xxxu/core.c:667 rtl8xxxu_read_efuse8+0xb8/0x160 drivers/net/wireless/realtek/rtl8xxxu/core.c:1765 rtl8xxxu_read_efuse+0x314/0x790 drivers/net/wireless/realtek/rtl8xxxu/core.c:1834 rtl8xxxu_probe+0x127b/0x1af0 drivers/net/wireless/realtek/rtl8xxxu/core.c:7801 usb_probe_interface+0x303/0x8f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x340 drivers/base/dd.c:959 Memory state around the buggy address: ffff888119d77e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119d77f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119d77f80: 00 00 00 00 00 00 00 00 fe fe fe fe fe fe fe fe ^ ffff888119d78000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119d78080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 72 16 jb 0x18 2: 48 81 fa d0 15 00 81 cmp $0xffffffff810015d0,%rdx 9: 73 0d jae 0x18 b: 83 c0 01 add $0x1,%eax e: 48 83 c4 10 add $0x10,%rsp 12: 5b pop %rbx 13: e9 98 d0 b9 05 jmp 0x5b9d0b0 18: 48 81 fa 90 5d 56 87 cmp $0xffffffff87565d90,%rdx 1f: 72 09 jb 0x2a 21: 48 81 fa ab 5d 56 87 cmp $0xffffffff87565dab,%rdx 28: 72 e1 jb 0xb * 2a: 83 c0 01 add $0x1,%eax <-- trapping instruction 2d: 48 83 c7 08 add $0x8,%rdi 31: 39 c6 cmp %eax,%esi 33: 75 b4 jne 0xffffffe9 35: 89 f0 mov %esi,%eax 37: eb d5 jmp 0xe 39: 31 c0 xor %eax,%eax 3b: c3 ret 3c: cc int3 3d: cc int3 3e: cc int3 3f: cc int3