================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0xf94/0x1030 drivers/hid/hid-mcp2221.c:852 Read of size 1 at addr ffff888107bbffff by task kworker/1:4/5228 CPU: 1 UID: 0 PID: 5228 Comm: kworker/1:4 Not tainted 6.15.0-rc4-syzkaller-00104-g588d032e9e56 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Workqueue: events legacy_dvb_usb_read_remote_control Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 mcp2221_raw_event+0xf94/0x1030 drivers/hid/hid-mcp2221.c:852 __hid_input_report.constprop.0+0x311/0x450 drivers/hid/hid-core.c:2117 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x38a/0x6e0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1734 dummy_timer+0x180e/0x3a20 drivers/usb/gadget/udc/dummy_hcd.c:1994 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x1ff/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x205/0x8d0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xfa/0x160 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x62/0x350 kernel/locking/lockdep.c:5870 Code: 34 0c 0b 83 f8 07 0f 87 bc 02 00 00 89 c0 48 0f a3 05 12 35 1f 09 0f 82 74 02 00 00 8b 35 ca 40 1f 09 85 f6 0f 85 8d 00 00 00 <48> 8b 44 24 30 65 48 2b 05 69 34 0c 0b 0f 85 c7 02 00 00 48 83 c4 RSP: 0018:ffffc900022cf5a0 EFLAGS: 00000206 RAX: 0000000000000046 RBX: ffffffff890c2880 RCX: 00000000e307247a RDX: 0000000000000000 RSI: ffffffff88ab8acb RDI: ffffffff876851e0 RBP: 0000000000000002 R08: b5fcdfe05f49764f R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock include/linux/rcupdate.h:841 [inline] class_rcu_constructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0xd1/0x20a0 arch/x86/kernel/unwind_orc.c:479 arch_stack_walk+0x94/0x100 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4341 [inline] __kmalloc_noprof+0x213/0x4d0 mm/slub.c:4353 kmalloc_noprof include/linux/slab.h:909 [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 m920x_read drivers/media/usb/dvb-usb/m920x.c:36 [inline] m920x_rc_query+0xdf/0x770 drivers/media/usb/dvb-usb/m920x.c:188 legacy_dvb_usb_read_remote_control+0x109/0x4f0 drivers/media/usb/dvb-usb/dvb-usb-remote.c:123 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888107bbf3e0 which belongs to the cache request_queue of size 2344 The buggy address is located 759 bytes to the right of allocated 2344-byte region [ffff888107bbf3e0, ffff888107bbfd08) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107bb8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000040 ffff888102aa4780 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000000f5000000 0000000000000000 head: 0200000000000040 ffff888102aa4780 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000000f5000000 0000000000000000 head: 0200000000000003 ffffea00041eee01 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 8175397863, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0xfec/0x2d90 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x25c/0x2160 mm/page_alloc.c:4970 alloc_pages_mpol+0xe4/0x410 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2468 [inline] allocate_slab mm/slub.c:2632 [inline] new_slab+0x244/0x340 mm/slub.c:2686 ___slab_alloc+0xda5/0x1940 mm/slub.c:3872 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3962 __slab_alloc_node mm/slub.c:4037 [inline] slab_alloc_node mm/slub.c:4198 [inline] kmem_cache_alloc_node_noprof+0x1f6/0x3a0 mm/slub.c:4262 blk_alloc_queue+0x31/0x760 block/blk-core.c:398 blk_mq_alloc_queue+0x179/0x290 block/blk-mq.c:4348 scsi_alloc_sdev+0x88f/0xd80 drivers/scsi/scsi_scan.c:339 scsi_probe_and_add_lun+0x523/0x7b0 drivers/scsi/scsi_scan.c:1210 __scsi_scan_target+0x1e4/0x4e0 drivers/scsi/scsi_scan.c:1775 scsi_scan_channel drivers/scsi/scsi_scan.c:1863 [inline] scsi_scan_channel+0x149/0x1e0 drivers/scsi/scsi_scan.c:1839 scsi_scan_host_selected+0x2ae/0x370 drivers/scsi/scsi_scan.c:1892 do_scsi_scan_host+0x1ef/0x260 drivers/scsi/scsi_scan.c:2031 page_owner free stack trace missing Memory state around the buggy address: ffff888107bbfe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888107bbff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888107bbff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888107bc0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888107bc0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 34 0c xor $0xc,%al 2: 0b 83 f8 07 0f 87 or -0x78f0f808(%rbx),%eax 8: bc 02 00 00 89 mov $0x89000002,%esp d: c0 48 0f a3 rorb $0xa3,0xf(%rax) 11: 05 12 35 1f 09 add $0x91f3512,%eax 16: 0f 82 74 02 00 00 jb 0x290 1c: 8b 35 ca 40 1f 09 mov 0x91f40ca(%rip),%esi # 0x91f40ec 22: 85 f6 test %esi,%esi 24: 0f 85 8d 00 00 00 jne 0xb7 * 2a: 48 8b 44 24 30 mov 0x30(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 69 34 0c sub %gs:0xb0c3469(%rip),%rax # 0xb0c34a0 36: 0b 37: 0f 85 c7 02 00 00 jne 0x304 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4