usb usb9: usbfs: process 19472 (syz-executor.1) did not claim interface 0 before use
usb usb9: usbfs: process 19477 (syz-executor.1) did not claim interface 0 before use
==================================================================
BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:377 [inline]
BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x387/0x6f0 drivers/usb/core/hcd.c:771
Write of size 2 at addr ffff8880ab656580 by task syz-executor.5/19473
CPU: 1 PID: 19473 Comm: syz-executor.5 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
kasan_report+0x8f/0xa0 mm/kasan/report.c:412
memcpy+0x35/0x50 mm/kasan/kasan.c:303
memcpy include/linux/string.h:377 [inline]
usb_hcd_poll_rh_status+0x387/0x6f0 drivers/usb/core/hcd.c:771
call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:535 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:clear_page_erms+0x7/0x10 arch/x86/lib/clear_page_64.S:48
Code: 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d9 90 c3 0f 1f 80 00 00 00 00 b9 00 10 00 00 31 c0 aa c3 90 90 90 90 90 90 41 57 41 56 41 55 41 54 55 53 48 89 fb
RSP: 0018:ffff88805e4e7260 EFLAGS: 00010246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: ffff888090c57778 RCX: 0000000000000240
RDX: 1ffff1101218aebf RSI: ffffea0001777240 RDI: ffff88805ddc9dc0
RBP: ffffea0001777240 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffed101218aeef
R13: ffff888090c563c0 R14: dffffc0000000000 R15: dffffc0000000000
clear_page arch/x86/include/asm/page_64.h:49 [inline]
clear_highpage include/linux/highmem.h:190 [inline]
prep_new_page mm/page_alloc.c:1949 [inline]
get_page_from_freelist+0x1f22/0x4170 mm/page_alloc.c:3376
__alloc_pages_nodemask+0x387/0x2890 mm/page_alloc.c:4399
alloc_pages_current+0x193/0x2a0 mm/mempolicy.c:2197
alloc_pages include/linux/gfp.h:532 [inline]
__vmalloc_area_node+0x47e/0x780 mm/vmalloc.c:1693
__vmalloc_node_range mm/vmalloc.c:1753 [inline]
__vmalloc_node mm/vmalloc.c:1804 [inline]
__vmalloc+0x160/0x220 mm/vmalloc.c:1810
_snd_pcm_lib_alloc_vmalloc_buffer+0x13c/0x200 sound/core/pcm_memory.c:411
snd_pcm_hw_params+0xea4/0x22d0 sound/core/pcm_native.c:711
snd_pcm_kernel_ioctl+0x1d4/0x3c0 sound/core/pcm_native.c:3015
snd_pcm_oss_change_params_locked+0x18b3/0x39d0 sound/core/oss/pcm_oss.c:965
snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1108 [inline]
snd_pcm_oss_get_active_substream+0x164/0x1c0 sound/core/oss/pcm_oss.c:1125
snd_pcm_oss_get_formats+0x75/0x340 sound/core/oss/pcm_oss.c:1837
snd_pcm_oss_set_format sound/core/oss/pcm_oss.c:1878 [inline]
snd_pcm_oss_ioctl+0x135a/0x3410 sound/core/oss/pcm_oss.c:2642
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe67f053188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000020000000 RSI: 00000000c0045005 RDI: 0000000000000007
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffeffc472ef R14: 00007fe67f053300 R15: 0000000000022000
Allocated by task 19477:
__do_kmalloc mm/slab.c:3727 [inline]
__kmalloc+0x15a/0x3c0 mm/slab.c:3736
kmalloc include/linux/slab.h:520 [inline]
proc_do_submiturb+0x2d08/0x3af0 drivers/usb/core/devio.c:1668
proc_submiturb drivers/usb/core/devio.c:1822 [inline]
usbdev_do_ioctl+0x773/0x3030 drivers/usb/core/devio.c:2476
usbdev_ioctl+0x21/0x30 drivers/usb/core/devio.c:2580
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Freed by task 8071:
__cache_free mm/slab.c:3503 [inline]
kfree+0xcc/0x210 mm/slab.c:3822
security_sk_free+0x3e/0x70 security/security.c:1474
sk_prot_free net/core/sock.c:1499 [inline]
__sk_destruct+0x51d/0x8a0 net/core/sock.c:1584
sk_destruct net/core/sock.c:1599 [inline]
__sk_free+0x165/0x3b0 net/core/sock.c:1610
sk_free+0x3b/0x50 net/core/sock.c:1621
sock_put include/net/sock.h:1711 [inline]
tcp_close+0xb23/0xfd0 net/ipv4/tcp.c:2506
inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
__sock_release+0xcd/0x2a0 net/socket.c:579
sock_close+0x15/0x20 net/socket.c:1140
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
The buggy address belongs to the object at ffff8880ab656580
which belongs to the cache kmalloc-32 of size 32
The buggy address is located 0 bytes inside of
32-byte region [ffff8880ab656580, ffff8880ab6565a0)
The buggy address belongs to the page:
page:ffffea0002ad9580 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880ab656fc1
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea0002bcd1c8 ffffea000252ec48 ffff88813bff01c0
raw: ffff8880ab656fc1 ffff8880ab656000 0000000100000032 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880ab656480: 00 00 06 fc fc fc fc fc 05 fc fc fc fc fc fc fc
ffff8880ab656500: 00 05 fc fc fc fc fc fc fb fb fb fb fc fc fc fc
>ffff8880ab656580: 01 fc fc fc fc fc fc fc 00 07 fc fc fc fc fc fc
^
ffff8880ab656600: fb fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc
ffff8880ab656680: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc
==================================================================