================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:447 [inline] BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x376/0x780 drivers/usb/core/hcd.c:774 Write of size 2 at addr ffff88801c30c190 by task syz-fuzzer/8470 CPU: 1 PID: 8470 Comm: syz-fuzzer Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 memcpy+0x39/0x60 mm/kasan/shadow.c:65 memcpy include/linux/string.h:447 [inline] usb_hcd_poll_rh_status+0x376/0x780 drivers/usb/core/hcd.c:774 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1731 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1744 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:420 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:199 Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 de 13 5d f8 48 89 ef e8 a6 c8 5d f8 e8 f1 ea 7c f8 fb bf 01 00 00 00 56 cf 51 f8 65 8b 05 5f 3e 06 77 85 c0 74 02 5d c3 e8 cb 93 04 RSP: 0018:ffffc900017ffb58 EFLAGS: 00000202 RAX: 000000000030787f RBX: 0000000000000000 RCX: 1ffffffff1a067d1 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff8880b9f34c40 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff81789c78 R11: 000000000000003f R12: ffff8880b9f34c40 R13: ffff88807285d340 R14: 0000000000000000 R15: ffff888021831bc0 finish_lock_switch kernel/sched/core.c:4065 [inline] finish_task_switch.isra.0+0x158/0x7e0 kernel/sched/core.c:4182 context_switch kernel/sched/core.c:4316 [inline] __schedule+0x914/0x21a0 kernel/sched/core.c:5064 schedule+0xcf/0x270 kernel/sched/core.c:5143 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x268/0x6a0 kernel/time/hrtimer.c:1878 hrtimer_nanosleep+0x1f9/0x430 kernel/time/hrtimer.c:1931 __do_sys_nanosleep kernel/time/hrtimer.c:1965 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1952 [inline] __x64_sys_nanosleep+0x1dc/0x260 kernel/time/hrtimer.c:1952 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x46607d Code: 8b 44 24 20 b9 40 42 0f 00 f7 f1 48 89 04 24 b8 e8 03 00 00 f7 e2 48 89 44 24 08 48 89 e7 be 00 00 00 00 b8 23 00 00 00 0f 05 <48> 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc cc cc cc b8 ba 00 RSP: 002b:000000c00003df18 EFLAGS: 00000212 ORIG_RAX: 0000000000000023 RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 000000000046607d RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c00003df18 RBP: 000000c00003df28 R08: 000000000009863f R09: 00007ffc8feff090 R10: 000000000001bc0c R11: 0000000000000212 R12: 00000000004388f0 R13: 0000000000000000 R14: 0000000000b3591c R15: 0000000000000000 Allocated by task 24027: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:401 [inline] ____kasan_kmalloc.constprop.0+0x82/0xa0 mm/kasan/common.c:429 kmalloc include/linux/slab.h:557 [inline] proc_do_submiturb+0x2a69/0x3600 drivers/usb/core/devio.c:1733 proc_submiturb drivers/usb/core/devio.c:1892 [inline] usbdev_do_ioctl drivers/usb/core/devio.c:2588 [inline] usbdev_ioctl+0x692/0x36c0 drivers/usb/core/devio.c:2708 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88801c30c190 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff88801c30c190, ffff88801c30c198) The buggy address belongs to the page: page:000000008fcbe67e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1c30c flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea000043e180 0000000e0000000e ffff888010041c80 raw: 0000000000000000 0000000080660066 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801c30c080: fc fc fc fc fb fc fc fc fc fb fc fc fc fc 00 fc ffff88801c30c100: fc fc fc fb fc fc fc fc fb fc fc fc fc 00 fc fc >ffff88801c30c180: fc fc 01 fc fc fc fc fb fc fc fc fc 00 fc fc fc ^ ffff88801c30c200: fc fb fc fc fc fc fb fc fc fc fc 00 fc fc fc fc ffff88801c30c280: 00 fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc 00 ==================================================================