==================================================================
BUG: KASAN: slab-out-of-bounds in memcpy include/linux/fortify-string.h:225 [inline]
BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x376/0x780 drivers/usb/core/hcd.c:774
Write of size 2 at addr ffff88806ffc0ec0 by task syz-executor.1/31993
CPU: 0 PID: 31993 Comm: syz-executor.1 Not tainted 5.16.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description.constprop.0.cold+0x8d/0x2ed mm/kasan/report.c:247
__kasan_report mm/kasan/report.c:433 [inline]
kasan_report.cold+0x83/0xdf mm/kasan/report.c:450
check_region_inline mm/kasan/generic.c:183 [inline]
kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189
memcpy+0x39/0x60 mm/kasan/shadow.c:66
memcpy include/linux/fortify-string.h:225 [inline]
usb_hcd_poll_rh_status+0x376/0x780 drivers/usb/core/hcd.c:774
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734
__run_timers kernel/time/timer.c:1715 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:check_kcov_mode+0xf/0x40 kernel/kcov.c:166
Code: 7c 24 08 e8 63 3f 46 00 e9 61 fd ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc 65 8b 05 69 90 8b 7e 89 c2 81 e2 00 01 00 00 00 01 ff 00 74 10 31 c0 85 d2 74 15 8b 96 a4 15 00 00 85 d2 74
RSP: 0000:ffffc90002877b78 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 0000000000061489 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88801cad2240 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00000000000c2912 R09: ffff88806b6465d7
R10: ffffffff820ee75c R11: 0000000000000000 R12: 00000000000c2912
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
write_comp_data kernel/kcov.c:221 [inline]
__sanitizer_cov_trace_cmp8+0x1d/0x70 kernel/kcov.c:267
ext4_nonda_switch+0xec/0x1f0 fs/ext4/inode.c:2913
ext4_page_mkwrite+0xbc7/0x1a60 fs/ext4/inode.c:6056
do_page_mkwrite+0x1a7/0x550 mm/memory.c:2856
do_shared_fault mm/memory.c:4229 [inline]
do_fault mm/memory.c:4297 [inline]
handle_pte_fault mm/memory.c:4551 [inline]
__handle_mm_fault+0x2633/0x5120 mm/memory.c:4686
handle_mm_fault+0x1c8/0x790 mm/memory.c:4784
do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
handle_page_fault arch/x86/mm/fault.c:1485 [inline]
exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1541
asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0033:0x7fa7277c2673
Code: 5d c3 0f 1f 44 00 00 48 8b 0d 59 ed 0a 01 48 8b 05 4a ed 0a 01 4c 8d 81 00 00 00 01 48 39 c8 72 13 4c 39 c0 73 0e 48 8d 50 04 <89> 38 48 89 15 2c ed 0a 01 c3 52 48 8d 35 77 b7 0b 00 48 89 c2 48
RSP: 002b:00007ffe89280918 EFLAGS: 00010287
RAX: 0000001b31c32000 RBX: 00007fa72739c430 RCX: 0000001b31c20000
RDX: 0000001b31c32004 RSI: 00007fa7273bf8e0 RDI: 0000000081a93a1b
RBP: 000000000000027e R08: 0000001b32c20000 R09: 0000001b31c31af0
R10: 0000000000000258 R11: 00000000dd15025c R12: 00007fa72739d3f8
R13: 00007fa7273bf8e0 R14: ffffffff89443d71 R15: 00007fa7279380b0
Allocated by task 32022:
kasan_save_stack+0x1e/0x50 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc mm/kasan/common.c:513 [inline]
____kasan_kmalloc mm/kasan/common.c:472 [inline]
__kasan_kmalloc+0xa6/0xd0 mm/kasan/common.c:522
kasan_kmalloc include/linux/kasan.h:269 [inline]
__do_kmalloc mm/slab.c:3702 [inline]
__kmalloc+0x209/0x4d0 mm/slab.c:3711
kmalloc include/linux/slab.h:595 [inline]
do_proc_bulk+0x2fc/0xba0 drivers/usb/core/devio.c:1292
proc_bulk drivers/usb/core/devio.c:1351 [inline]
usbdev_do_ioctl drivers/usb/core/devio.c:2625 [inline]
usbdev_ioctl+0x586/0x36c0 drivers/usb/core/devio.c:2791
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl fs/ioctl.c:860 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
The buggy address belongs to the object at ffff88806ffc0ec0
which belongs to the cache kmalloc-32 of size 32
The buggy address is located 0 bytes inside of
32-byte region [ffff88806ffc0ec0, ffff88806ffc0ee0)
The buggy address belongs to the page:
page:ffffea0001bff000 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806ffc0fc1 pfn:0x6ffc0
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffffea000093c1c8 ffffea0000694188 ffff888010c40100
raw: ffff88806ffc0fc1 ffff88806ffc0000 000000010000003d 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x242220(__GFP_HIGH|__GFP_ATOMIC|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 1087, ts 262772464314, free_ts 262713596616
prep_new_page mm/page_alloc.c:2418 [inline]
get_page_from_freelist+0xa72/0x2f50 mm/page_alloc.c:4149
__alloc_pages+0x1b2/0x500 mm/page_alloc.c:5369
__alloc_pages_node include/linux/gfp.h:570 [inline]
kmem_getpages mm/slab.c:1377 [inline]
cache_grow_begin+0x75/0x470 mm/slab.c:2593
cache_alloc_refill+0x27f/0x380 mm/slab.c:2965
____cache_alloc mm/slab.c:3048 [inline]
____cache_alloc mm/slab.c:3031 [inline]
__do_cache_alloc mm/slab.c:3275 [inline]
slab_alloc mm/slab.c:3316 [inline]
kmem_cache_alloc_trace+0x380/0x4a0 mm/slab.c:3573
kmalloc include/linux/slab.h:590 [inline]
batadv_mcast_mla_softif_get_ipv6 net/batman-adv/multicast.c:446 [inline]
batadv_mcast_mla_softif_get net/batman-adv/multicast.c:504 [inline]
__batadv_mcast_mla_update net/batman-adv/multicast.c:878 [inline]
batadv_mcast_mla_update+0x138a/0x2a20 net/batman-adv/multicast.c:915
process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
kthread+0x405/0x4f0 kernel/kthread.c:327
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1338 [inline]
free_pcp_prepare+0x374/0x870 mm/page_alloc.c:1389
free_unref_page_prepare mm/page_alloc.c:3309 [inline]
free_unref_page+0x19/0x690 mm/page_alloc.c:3388
tlb_batch_list_free mm/mmu_gather.c:61 [inline]
tlb_finish_mmu+0x24f/0x8c0 mm/mmu_gather.c:343
exit_mmap+0x1ea/0x630 mm/mmap.c:3172
__mmput+0x122/0x4b0 kernel/fork.c:1113
mmput+0x56/0x60 kernel/fork.c:1134
exit_mm kernel/exit.c:507 [inline]
do_exit+0xb27/0x2b40 kernel/exit.c:819
do_group_exit+0x125/0x310 kernel/exit.c:929
__do_sys_exit_group kernel/exit.c:940 [inline]
__se_sys_exit_group kernel/exit.c:938 [inline]
__x64_sys_exit_group+0x3a/0x50 kernel/exit.c:938
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
Memory state around the buggy address:
ffff88806ffc0d80: fa fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc
ffff88806ffc0e00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
>ffff88806ffc0e80: fa fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc
^
ffff88806ffc0f00: 04 fc fc fc fc fc fc fc fa fb fb fb fc fc fc fc
ffff88806ffc0f80: 00 02 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 24 08 and $0x8,%al
2: e8 63 3f 46 00 callq 0x463f6a
7: e9 61 fd ff ff jmpq 0xfffffd6d
c: cc int3
d: cc int3
e: cc int3
f: cc int3
10: cc int3
11: cc int3
12: cc int3
13: cc int3
14: cc int3
15: cc int3
16: cc int3
17: cc int3
18: cc int3
19: cc int3
1a: 65 8b 05 69 90 8b 7e mov %gs:0x7e8b9069(%rip),%eax # 0x7e8b908a
21: 89 c2 mov %eax,%edx
23: 81 e2 00 01 00 00 and $0x100,%edx
* 29: a9 00 01 ff 00 test $0xff0100,%eax <-- trapping instruction
2e: 74 10 je 0x40
30: 31 c0 xor %eax,%eax
32: 85 d2 test %edx,%edx
34: 74 15 je 0x4b
36: 8b 96 a4 15 00 00 mov 0x15a4(%rsi),%edx
3c: 85 d2 test %edx,%edx
3e: 74 .byte 0x74