================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964 Read of size 1 at addr ffff888076f47fff by task syslogd/4974 CPU: 1 UID: 0 PID: 4974 Comm: syslogd 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:2161 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:finish_task_switch+0x417/0xc60 kernel/sched/core.c:5361 Code: 04 00 00 41 c7 84 24 20 0e 00 00 00 00 00 00 e9 d5 06 00 00 49 83 c4 48 4c 89 e7 e8 63 5a 3c 0a e8 fe ab 39 00 fb 4c 8b 65 c8 <49> 8d bc 24 f8 16 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 RSP: 0018:ffffc90002e97500 EFLAGS: 00000206 RAX: 000000000006796f RBX: ffff8880b873bf20 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8e229c3f RDI: ffffffff8c4bd380 RBP: ffffc90002e97550 R08: ffffffff90576ff7 R09: 1ffffffff20aedfe R10: dffffc0000000000 R11: fffffbfff20aedff R12: ffff888036ff8000 R13: ffff8880b873bee8 R14: dffffc0000000000 R15: 1ffff110170e77e4 context_switch kernel/sched/core.c:5513 [inline] __schedule+0x17e1/0x56c0 kernel/sched/core.c:7234 __schedule_loop kernel/sched/core.c:7311 [inline] schedule+0x164/0x2b0 kernel/sched/core.c:7326 schedule_timeout+0xc0/0x2c0 kernel/time/sleep_timeout.c:75 __skb_wait_for_more_packets+0x3a9/0x590 net/core/datagram.c:123 __unix_dgram_recvmsg+0x28c/0xd70 net/unix/af_unix.c:2595 sock_recvmsg_nosec net/socket.c:1126 [inline] sock_recvmsg+0x196/0x1e0 net/socket.c:1148 sock_read_iter+0x22a/0x2f0 net/socket.c:1217 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x595/0xa80 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:716 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:0x7f46a6f90407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffecdca6850 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f46a6e40c80 RCX: 00007f46a6f90407 RDX: 00000000000000ff RSI: 000055c4a91bf950 RDI: 0000000000000000 RBP: 000055c4a91bf910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055c4a91bf9df R13: 0000000000000000 R14: 000055c4a91bf950 R15: 000055c4a0b25d98 Allocated by task 16283: 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_noprof+0x375/0x720 mm/slub.c:5387 _kmalloc_noprof include/linux/slab.h:973 [inline] tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path2_perm+0x2c5/0x760 security/tomoyo/file.c:927 tomoyo_path_rename+0x14e/0x1b0 security/tomoyo/tomoyo.c:300 security_path_rename+0x248/0x460 security/security.c:1544 filename_renameat2+0x4ba/0x9a0 fs/namei.c:6187 __do_sys_rename fs/namei.c:6236 [inline] __se_sys_rename+0x55/0x2c0 fs/namei.c:6232 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 16283: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/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:2705 [inline] slab_free mm/slub.c:6405 [inline] kfree+0x1c5/0x640 mm/slub.c:6720 tomoyo_realpath_from_path+0x605/0x640 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path2_perm+0x2c5/0x760 security/tomoyo/file.c:927 tomoyo_path_rename+0x14e/0x1b0 security/tomoyo/tomoyo.c:300 security_path_rename+0x248/0x460 security/security.c:1544 filename_renameat2+0x4ba/0x9a0 fs/namei.c:6187 __do_sys_rename fs/namei.c:6236 [inline] __se_sys_rename+0x55/0x2c0 fs/namei.c:6232 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 ffff888076f46000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 4095 bytes to the right of allocated 4096-byte region [ffff888076f46000, ffff888076f47000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x76f40 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 ffff88801b004140 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b004140 dead000000000100 dead000000000122 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 5002, tgid 5002 (udevd), ts 44389094641, free_ts 24876554463 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] __kmalloc_cache_noprof+0x3a7/0x660 mm/slub.c:5511 _kmalloc_noprof include/linux/slab.h:969 [inline] _kzalloc_noprof include/linux/slab.h:1290 [inline] uevent_show+0x15c/0x310 drivers/base/core.c:2821 dev_attr_show+0x58/0xc0 drivers/base/core.c:2487 sysfs_kf_seq_show+0x331/0x490 fs/sysfs/file.c:65 seq_read_iter+0x463/0xca0 fs/seq_file.c:231 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x595/0xa80 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:716 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 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] free_pages_prepare+0x960/0xa60 mm/page_alloc.c:1451 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:6897 destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368 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 Memory state around the buggy address: ffff888076f47e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888076f47f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888076f47f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888076f48000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888076f48080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 00 00 add %al,(%rax) 2: 41 c7 84 24 20 0e 00 movl $0x0,0xe20(%r12) 9: 00 00 00 00 00 e: e9 d5 06 00 00 jmp 0x6e8 13: 49 83 c4 48 add $0x48,%r12 17: 4c 89 e7 mov %r12,%rdi 1a: e8 63 5a 3c 0a call 0xa3c5a82 1f: e8 fe ab 39 00 call 0x39ac22 24: fb sti 25: 4c 8b 65 c8 mov -0x38(%rbp),%r12 * 29: 49 8d bc 24 f8 16 00 lea 0x16f8(%r12),%rdi <-- trapping instruction 30: 00 31: 48 89 f8 mov %rdi,%rax 34: 48 c1 e8 03 shr $0x3,%rax 38: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 3d: 84 c0 test %al,%al