IPVS: ftp: loaded support on port[0] = 21 ================================================================== 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 ffff8880a5798580 by task syz-executor.0/30010 CPU: 0 PID: 30010 Comm: syz-executor.0 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:kernel_poison_pages+0x2/0x2a0 mm/page_poison.c:113 Code: 84 00 00 e9 2d fe ff ff 4c 89 ff e8 c8 81 00 00 e9 41 ff ff ff 90 90 90 e8 cb a4 ca ff 0f b6 05 18 0a 8f 09 c3 0f 1f 00 41 57 <41> 56 41 55 41 54 49 89 fc 55 89 d5 53 89 f3 48 83 ec 10 e8 a6 a4 RSP: 0018:ffff8880af087310 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffed10132ff000 RBX: ffffea000265fe00 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffffea000265fe00 RBP: ffffea000265fe34 R08: 0000000000000001 R09: ffffed10132ff000 R10: ffffea000265fe37 R11: 0000000000000000 R12: ffff88813fffb6c0 R13: ffffea000265fe08 R14: ffff88813fffb6c0 R15: dffffc0000000000 post_alloc_hook mm/page_alloc.c:1936 [inline] prep_new_page mm/page_alloc.c:1945 [inline] get_page_from_freelist+0x1e7f/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] __get_free_pages+0x8/0x40 mm/page_alloc.c:4443 tlb_next_batch mm/memory.c:216 [inline] __tlb_remove_page_size+0x2a2/0x470 mm/memory.c:318 __tlb_remove_page include/asm-generic/tlb.h:161 [inline] zap_pte_range mm/memory.c:1353 [inline] zap_pmd_range mm/memory.c:1463 [inline] zap_pud_range mm/memory.c:1492 [inline] zap_p4d_range mm/memory.c:1513 [inline] unmap_page_range+0x14e7/0x2c50 mm/memory.c:1534 unmap_single_vma+0x198/0x300 mm/memory.c:1579 unmap_vmas+0xa9/0x180 mm/memory.c:1609 exit_mmap+0x2b9/0x530 mm/mmap.c:3093 __mmput kernel/fork.c:1016 [inline] mmput+0x14e/0x4a0 kernel/fork.c:1037 exit_mm kernel/exit.c:549 [inline] do_exit+0xaec/0x2be0 kernel/exit.c:857 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 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 RIP: 0033:0x7fd7b98d2049 Code: Bad RIP value. RSP: 002b:00007fd7b8247168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007fd7b99e4f60 RCX: 00007fd7b98d2049 RDX: 00000000200000c0 RSI: 000000008038550a RDI: 0000000000000005 RBP: 00007fd7b992c08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdba3c67af R14: 00007fd7b8247300 R15: 0000000000022000 Allocated by task 30010: __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 25040: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 __vunmap+0x2a5/0x3f0 mm/vmalloc.c:1534 vfree+0x65/0x100 mm/vmalloc.c:1598 copy_entries_to_user net/ipv4/netfilter/arp_tables.c:711 [inline] get_entries net/ipv4/netfilter/arp_tables.c:866 [inline] do_arpt_get_ctl+0x65b/0x7d0 net/ipv4/netfilter/arp_tables.c:1490 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:122 ip_getsockopt net/ipv4/ip_sockglue.c:1574 [inline] ip_getsockopt+0x167/0x1c0 net/ipv4/ip_sockglue.c:1554 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:3629 __sys_getsockopt+0x135/0x210 net/socket.c:2050 __do_sys_getsockopt net/socket.c:2061 [inline] __se_sys_getsockopt net/socket.c:2058 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2058 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a5798580 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880a5798580, ffff8880a57985a0) The buggy address belongs to the page: page:ffffea000295e600 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880a5798fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00028fe288 ffffea0002aef608 ffff88813bff01c0 raw: ffff8880a5798fc1 ffff8880a5798000 0000000100000024 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a5798480: 06 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a5798500: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880a5798580: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff8880a5798600: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a5798680: fb fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: 84 00 test %al,(%rax) 2: 00 e9 add %ch,%cl 4: 2d fe ff ff 4c sub $0x4cfffffe,%eax 9: 89 ff mov %edi,%edi b: e8 c8 81 00 00 callq 0x81d8 10: e9 41 ff ff ff jmpq 0xffffff56 15: 90 nop 16: 90 nop 17: 90 nop 18: e8 cb a4 ca ff callq 0xffcaa4e8 1d: 0f b6 05 18 0a 8f 09 movzbl 0x98f0a18(%rip),%eax # 0x98f0a3c 24: c3 retq 25: 0f 1f 00 nopl (%rax) 28: 41 57 push %r15 * 2a: 41 56 push %r14 <-- trapping instruction 2c: 41 55 push %r13 2e: 41 54 push %r12 30: 49 89 fc mov %rdi,%r12 33: 55 push %rbp 34: 89 d5 mov %edx,%ebp 36: 53 push %rbx 37: 89 f3 mov %esi,%ebx 39: 48 83 ec 10 sub $0x10,%rsp 3d: e8 .byte 0xe8 3e: a6 cmpsb %es:(%rdi),%ds:(%rsi) 3f: a4 movsb %ds:(%rsi),%es:(%rdi)