IPVS: ftp: loaded support on port[0] = 21 usb usb9: usbfs: process 25453 (syz-executor.0) did not claim interface 0 before use usb usb9: usbfs: process 25453 (syz-executor.0) did not claim interface 0 before use ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:376 [inline] BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x326/0x630 drivers/usb/core/hcd.c:782 Write of size 2 at addr ffff8880a9a859c0 by task syz-executor.0/25448 CPU: 1 PID: 25448 Comm: syz-executor.0 Not tainted 4.14.229-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report+0x6f/0x80 mm/kasan/report.c:409 memcpy+0x35/0x50 mm/kasan/kasan.c:303 memcpy include/linux/string.h:376 [inline] usb_hcd_poll_rh_status+0x326/0x630 drivers/usb/core/hcd.c:782 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 IPVS: ftp: loaded support on port[0] = 21 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x1d/0x50 kernel/kcov.c:67 RSP: 0018:ffff88804745f9e0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 RAX: ffff8880952ee500 RBX: ffff88804745fa58 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88804745fa58 RBP: ffff88803f078000 R08: ffffffff8b9b2898 R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880952ee500 R12: dffffc0000000000 R13: ffffc90000c7bac0 R14: ffffc90000c7bac0 R15: 0000000000000000 drop_futex_key_refs+0x2e/0xa0 kernel/futex.c:480 put_futex_key kernel/futex.c:735 [inline] futex_wake+0x111/0x3c0 kernel/futex.c:1726 do_futex+0x281/0x1570 kernel/futex.c:3911 SYSC_futex kernel/futex.c:3967 [inline] SyS_futex+0x1da/0x290 kernel/futex.c:3935 mm_release+0x250/0x2d0 kernel/fork.c:1155 exit_mm kernel/exit.c:500 [inline] do_exit+0x56f/0x2850 kernel/exit.c:855 do_group_exit+0x100/0x2e0 kernel/exit.c:965 SYSC_exit_group kernel/exit.c:976 [inline] SyS_exit_group+0x19/0x20 kernel/exit.c:974 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x466459 RSP: 002b:00007fff2a99fc48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001e RCX: 0000000000466459 RDX: 000000000041926b RSI: ffffffffffffffbc RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007fff2a99fd40 Allocated by task 25453: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] proc_do_submiturb+0x280f/0x3610 drivers/usb/core/devio.c:1684 proc_submiturb drivers/usb/core/devio.c:1841 [inline] usbdev_do_ioctl+0x665/0x2b70 drivers/usb/core/devio.c:2495 usbdev_ioctl+0x21/0x30 drivers/usb/core/devio.c:2599 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 4630: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 aa_free_task_context+0xda/0x130 security/apparmor/context.c:54 apparmor_cred_free+0x34/0x70 security/apparmor/lsm.c:58 security_cred_free+0x71/0xb0 security/security.c:1003 put_cred_rcu+0xe3/0x300 kernel/cred.c:117 __put_cred+0x1a1/0x210 kernel/cred.c:151 put_cred include/linux/cred.h:271 [inline] SYSC_faccessat fs/open.c:444 [inline] SyS_faccessat+0x52a/0x680 fs/open.c:353 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff8880a9a859c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8880a9a859c0, ffff8880a9a859e0) The buggy address belongs to the page: page:ffffea0002a6a140 count:1 mapcount:0 mapping:ffff8880a9a85000 index:0xffff8880a9a85fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880a9a85000 ffff8880a9a85fc1 000000010000003f raw: ffffea0002c1ab60 ffffea00029bede0 ffff88813fe801c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a9a85880: fb fb fb fb fc fc fc fc 06 fc fc fc fc fc fc fc ffff8880a9a85900: 00 01 fc fc fc fc fc fc 05 fc fc fc fc fc fc fc >ffff8880a9a85980: 00 01 fc fc fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8880a9a85a00: 07 fc fc fc fc fc fc fc 00 01 fc fc fc fc fc fc ffff8880a9a85a80: 00 01 fc fc fc fc fc fc 00 03 fc fc fc fc fc fc ==================================================================