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 ffff88804d2dbb00 by task syz-executor.2/26140 CPU: 0 PID: 26140 Comm: syz-executor.2 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 hfsplus: unable to change nls mapping call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 hfsplus: unable to parse mount options 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:kfree+0x123/0x210 mm/slab.c:3823 Code: 89 ea 48 89 ee 4c 89 e7 e8 da ee ff ff f6 c7 02 74 ca e8 20 74 cf ff 48 83 3d 60 4d 59 08 00 0f 84 eb 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 5d 41 5c 41 5d c3 65 8b 05 ea 4b 69 7e 83 f8 07 RSP: 0018:ffff88808f4b7910 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000286 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000286 RBP: ffff8880aa3a6cc0 R08: 0000000000400000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88813bff0940 R13: ffffffff8670bf6e R14: 0000000000000000 R15: ffff8880aa3a6db0 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x6de/0x920 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] consume_skb+0x113/0x3d0 net/core/skbuff.c:714 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x4dd/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 IPVS: ftp: loaded support on port[0] = 21 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f40c1ac9ae9 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:00007f40bf03f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f40c1bdcf60 RCX: 00007f40c1ac9ae9 RDX: 0000000000000000 RSI: 00000000200008c0 RDI: 0000000000000004 RBP: 00007f40c1b23f25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc7eeb8a3f R14: 00007f40bf03f300 R15: 0000000000022000 Allocated by task 26140: __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 23: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 batadv_mcast_mla_list_free net/batman-adv/multicast.c:315 [inline] __batadv_mcast_mla_update net/batman-adv/multicast.c:631 [inline] batadv_mcast_mla_update+0x868/0x1bf0 net/batman-adv/multicast.c:654 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 ffff88804d2dbb00 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff88804d2dbb00, ffff88804d2dbb20) The buggy address belongs to the page: page:ffffea000134b6c0 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff88804d2dbfc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00027d96c8 ffffea0002bd0bc8 ffff88813bff01c0 raw: ffff88804d2dbfc1 ffff88804d2db000 0000000100000036 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804d2dba00: 05 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ffff88804d2dba80: fb fb fb fb fc fc fc fc 00 07 fc fc fc fc fc fc >ffff88804d2dbb00: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff88804d2dbb80: 00 00 00 00 fc fc fc fc fb fb fb fb fc fc fc fc ffff88804d2dbc00: 00 06 fc fc fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: 89 ea mov %ebp,%edx 2: 48 89 ee mov %rbp,%rsi 5: 4c 89 e7 mov %r12,%rdi 8: e8 da ee ff ff callq 0xffffeee7 d: f6 c7 02 test $0x2,%bh 10: 74 ca je 0xffffffdc 12: e8 20 74 cf ff callq 0xffcf7437 17: 48 83 3d 60 4d 59 08 cmpq $0x0,0x8594d60(%rip) # 0x8594d7f 1e: 00 1f: 0f 84 eb 00 00 00 je 0x110 25: 48 89 df mov %rbx,%rdi 28: 57 push %rdi 29: 9d popfq * 2a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction 2f: 5b pop %rbx 30: 5d pop %rbp 31: 41 5c pop %r12 33: 41 5d pop %r13 35: c3 retq 36: 65 8b 05 ea 4b 69 7e mov %gs:0x7e694bea(%rip),%eax # 0x7e694c27 3d: 83 f8 07 cmp $0x7,%eax