usb usb9: usbfs: process 14416 (syz-executor.2) did not claim interface 0 before use netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. ipt_rpfilter: unknown options ================================================================== 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 ffff88809101b280 by task syz-executor.3/14417 CPU: 0 PID: 14417 Comm: syz-executor.3 Not tainted 4.19.211-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:536 [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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:console_unlock+0xe7b/0x1110 kernel/printk/printk.c:2468 Code: ff df 48 c1 e8 03 80 3c 08 00 0f 85 66 02 00 00 48 83 3d cf c3 a3 08 00 0f 84 9e 00 00 00 e8 ac c6 14 00 48 8b 7c 24 30 57 9d <0f> 1f 44 00 00 e9 9b fc ff ff e8 96 c6 14 00 0f 0b e8 8f c6 14 00 RSP: 0018:ffff88809ec07670 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: 0000000000000200 RCX: ffffc9000c25d000 RDX: 0000000000009ec4 RSI: ffffffff814dbec4 RDI: 0000000000000216 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8446efa0 R13: 000000000000002d R14: 0000000000000000 R15: ffffffff8a6dd090 vprintk_emit+0x2d1/0x740 kernel/printk/printk.c:1965 vprintk_func+0x79/0x180 kernel/printk/printk_safe.c:405 printk+0xba/0xed kernel/printk/printk.c:2040 rpfilter_check.cold+0x55/0x5a net/ipv4/netfilter/ipt_rpfilter.c:109 xt_check_match+0x275/0x650 net/netfilter/x_tables.c:508 check_match net/ipv4/netfilter/ip_tables.c:475 [inline] find_check_match net/ipv4/netfilter/ip_tables.c:491 [inline] find_check_entry.constprop.0+0x31a/0x9a0 net/ipv4/netfilter/ip_tables.c:541 translate_table+0xbe1/0x1600 net/ipv4/netfilter/ip_tables.c:720 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x29d/0x420 net/ipv4/netfilter/ip_tables.c:1677 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x6f/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1238 udp_setsockopt+0x5d/0xa0 net/ipv4/udp.c:2556 __sys_setsockopt+0x14d/0x240 net/socket.c:2013 __do_sys_setsockopt net/socket.c:2024 [inline] __se_sys_setsockopt net/socket.c:2021 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2021 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0fd59ccae9 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:00007f0fd2f42188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f0fd5adff60 RCX: 00007f0fd59ccae9 RDX: 0000000000000040 RSI: 8001000000000000 RDI: 0000000000000003 RBP: 00007f0fd5a26f25 R08: 0000000000000288 R09: 0000000000000000 R10: 0000000020000280 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe47639e3f R14: 00007f0fd2f42300 R15: 0000000000022000 Allocated by task 14416: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] proc_do_submiturb+0x2d17/0x3b00 drivers/usb/core/devio.c:1673 proc_submiturb drivers/usb/core/devio.c:1827 [inline] usbdev_do_ioctl+0x773/0x3030 drivers/usb/core/devio.c:2481 usbdev_ioctl+0x21/0x30 drivers/usb/core/devio.c:2585 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 10911: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 dccp_feat_val_destructor+0x86/0x120 net/dccp/feat.c:388 dccp_feat_entry_destructor net/dccp/feat.c:417 [inline] dccp_feat_entry_destructor net/dccp/feat.c:414 [inline] dccp_feat_list_purge+0xa8/0x160 net/dccp/feat.c:549 inet_csk_destroy_sock+0x189/0x400 net/ipv4/inet_connection_sock.c:875 dccp_close+0x9ec/0xd30 net/dccp/proto.c:1087 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427 __sock_release net/socket.c:599 [inline] sock_release+0x87/0x1d0 net/socket.c:619 inet_ctl_sock_destroy include/net/inet_common.h:54 [inline] dccp_v4_exit_net+0x62/0x80 net/dccp/ipv4.c:1025 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff88809101b280 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff88809101b280, ffff88809101b2a0) The buggy address belongs to the page: page:ffffea00024406c0 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff88809101bfc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002d07508 ffffea000115a3c8 ffff88813bff01c0 raw: ffff88809101bfc1 ffff88809101b000 000000010000003d 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809101b180: fb fb fb fb fc fc fc fc 00 04 fc fc fc fc fc fc ffff88809101b200: 00 fc fc fc fc fc fc fc 06 fc fc fc fc fc fc fc >ffff88809101b280: 01 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ^ ffff88809101b300: fb fb fb fb fc fc fc fc 05 fc fc fc fc fc fc fc ffff88809101b380: 05 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: df 48 c1 fisttps -0x3f(%rax) 3: e8 03 80 3c 08 callq 0x83c800b 8: 00 0f add %cl,(%rdi) a: 85 66 02 test %esp,0x2(%rsi) d: 00 00 add %al,(%rax) f: 48 83 3d cf c3 a3 08 cmpq $0x0,0x8a3c3cf(%rip) # 0x8a3c3e6 16: 00 17: 0f 84 9e 00 00 00 je 0xbb 1d: e8 ac c6 14 00 callq 0x14c6ce 22: 48 8b 7c 24 30 mov 0x30(%rsp),%rdi 27: 57 push %rdi 28: 9d popfq * 29: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction 2e: e9 9b fc ff ff jmpq 0xfffffcce 33: e8 96 c6 14 00 callq 0x14c6ce 38: 0f 0b ud2 3a: e8 8f c6 14 00 callq 0x14c6ce