==================================================================
BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x243/0x530 drivers/usb/core/hcd.c:774
Write of size 2 at addr ffff888073854be0 by task syz-executor.2/5975
CPU: 0 PID: 5975 Comm: syz-executor.2 Not tainted 5.16.0-rc7-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+0x1dc/0x2d8 lib/dump_stack.c:106
print_address_description+0x65/0x380 mm/kasan/report.c:247
__kasan_report mm/kasan/report.c:433 [inline]
kasan_report+0x19a/0x1f0 mm/kasan/report.c:450
kasan_check_range+0x2b5/0x2f0 mm/kasan/generic.c:189
memcpy+0x3c/0x60 mm/kasan/shadow.c:66
usb_hcd_poll_rh_status+0x243/0x530 drivers/usb/core/hcd.c:774
call_timer_fn+0xf6/0x210 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers+0x71a/0x910 kernel/time/timer.c:1734
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1747
__do_softirq+0x392/0x7a3 kernel/softirq.c:558
__irq_exit_rcu+0xec/0x170 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 02 d9 c1 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 87 12 4d f7 65 8b 05 d8 5b f5 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90007897400 EFLAGS: 00000206
RAX: 5c87b2a513207800 RBX: 1ffff92000f12e84 RCX: ffffffff90bb6903
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90007897498 R08: ffffffff818b1ab0 R09: fffffbfff1aa4761
R10: fffffbfff1aa4761 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92000f12e80 R14: ffffc90007897420 R15: 0000000000000246
spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
rh_queue_status+0x104/0x330 drivers/usb/core/hcd.c:832
rh_urb_enqueue drivers/usb/core/hcd.c:839 [inline]
usb_hcd_submit_urb+0x244/0x5f0 drivers/usb/core/hcd.c:1544
usbfs_start_wait_urb+0x13c/0x400 drivers/usb/core/devio.c:1125
do_proc_bulk+0xce0/0x15d0 drivers/usb/core/devio.c:1313
proc_bulk drivers/usb/core/devio.c:1351 [inline]
usbdev_do_ioctl drivers/usb/core/devio.c:2625 [inline]
usbdev_ioctl+0x36b7/0x6d00 drivers/usb/core/devio.c:2791
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9daa215e99
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:00007f9da8b8b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f9daa328f60 RCX: 00007f9daa215e99
RDX: 0000000020000240 RSI: 00000000c0185502 RDI: 0000000000000003
RBP: 00007f9daa26fff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffeef506fbf R14: 00007f9da8b8b300 R15: 0000000000022000
Allocated by task 5975:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:269 [inline]
__kmalloc+0x253/0x380 mm/slub.c:4423
kmalloc include/linux/slab.h:595 [inline]
do_proc_bulk+0x858/0x15d0 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+0x36b7/0x6d00 drivers/usb/core/devio.c:2791
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
The buggy address belongs to the object at ffff888073854be0
which belongs to the cache kmalloc-8 of size 8
The buggy address is located 0 bytes inside of
8-byte region [ffff888073854be0, ffff888073854be8)
The buggy address belongs to the page:
page:ffffea0001ce1500 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888073854708 pfn:0x73854
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffffea00006a5640 dead000000000002 ffff888011441280
raw: ffff888073854708 0000000080660064 00000001ffffffff 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 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 136, ts 143946036177, free_ts 143930305685
prep_new_page mm/page_alloc.c:2418 [inline]
get_page_from_freelist+0x729/0x9e0 mm/page_alloc.c:4149
__alloc_pages+0x255/0x580 mm/page_alloc.c:5369
alloc_slab_page mm/slub.c:1793 [inline]
allocate_slab+0xcc/0x540 mm/slub.c:1930
new_slab mm/slub.c:1993 [inline]
___slab_alloc+0x41e/0xc40 mm/slub.c:3022
__slab_alloc mm/slub.c:3109 [inline]
slab_alloc_node mm/slub.c:3200 [inline]
slab_alloc mm/slub.c:3242 [inline]
__kmalloc+0x2eb/0x380 mm/slub.c:4419
kmalloc_array include/linux/slab.h:630 [inline]
kcalloc include/linux/slab.h:661 [inline]
nsim_fib6_event_init drivers/net/netdevsim/fib.c:807 [inline]
nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:940 [inline]
nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:991 [inline]
nsim_fib_event_nb+0x1ee/0xd20 drivers/net/netdevsim/fib.c:1028
notifier_call_chain kernel/notifier.c:83 [inline]
atomic_notifier_call_chain+0x157/0x260 kernel/notifier.c:198
call_fib_notifiers+0x2d/0x60 net/core/fib_notifier.c:35
call_fib6_entry_notifiers net/ipv6/ip6_fib.c:401 [inline]
fib6_add_rt2node net/ipv6/ip6_fib.c:1222 [inline]
fib6_add+0x1c49/0x3cc0 net/ipv6/ip6_fib.c:1476
__ip6_ins_rt net/ipv6/route.c:1302 [inline]
ip6_ins_rt+0x120/0x1a0 net/ipv6/route.c:1312
__ipv6_ifa_notify+0x5b5/0x1320 net/ipv6/addrconf.c:6114
ipv6_ifa_notify net/ipv6/addrconf.c:6153 [inline]
addrconf_dad_completed+0x174/0xb90 net/ipv6/addrconf.c:4178
addrconf_dad_work+0xfd6/0x1d10 net/ipv6/addrconf.c:4126
process_one_work+0x853/0x1140 kernel/workqueue.c:2298
worker_thread+0xac1/0x1320 kernel/workqueue.c:2445
kthread+0x468/0x490 kernel/kthread.c:327
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+0xd1c/0xe00 mm/page_alloc.c:1389
free_unref_page_prepare mm/page_alloc.c:3309 [inline]
free_unref_page+0x7d/0x580 mm/page_alloc.c:3388
do_slab_free mm/slub.c:3501 [inline]
___cache_free+0xe6/0x120 mm/slub.c:3520
qlist_free_all mm/kasan/quarantine.c:165 [inline]
kasan_quarantine_reduce+0x151/0x1c0 mm/kasan/quarantine.c:272
__kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:259 [inline]
slab_post_alloc_hook mm/slab.h:519 [inline]
slab_alloc_node mm/slub.c:3234 [inline]
slab_alloc mm/slub.c:3242 [inline]
kmem_cache_alloc+0x1c9/0x310 mm/slub.c:3247
getname_flags+0xba/0x650 fs/namei.c:138
do_sys_openat2+0xd2/0x500 fs/open.c:1206
do_sys_open fs/open.c:1228 [inline]
__do_sys_openat fs/open.c:1244 [inline]
__se_sys_openat fs/open.c:1239 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1239
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
Memory state around the buggy address:
ffff888073854a80: fc fc fc fc fa fc fc fc fc fb fc fc fc fc fa fc
ffff888073854b00: fc fc fc fb fc fc fc fc 00 fc fc fc fc fb fc fc
>ffff888073854b80: fc fc fb fc fc fc fc fa fc fc fc fc 01 fc fc fc
^
ffff888073854c00: fc fa fc fc fc fc 00 fc fc fc fc fb fc fc fc fc
ffff888073854c80: 00 fc fc fc fc fa fc fc fc fc fa fc fc fc fc fa
==================================================================
----------------
Code disassembly (best guess):
0: 9c pushfq
1: 8f 44 24 20 popq 0x20(%rsp)
5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1)
a: 74 08 je 0x14
c: 4c 89 f7 mov %r14,%rdi
f: e8 02 d9 c1 f7 callq 0xf7c1d916
14: f6 44 24 21 02 testb $0x2,0x21(%rsp)
19: 75 4e jne 0x69
1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 87 12 4d f7 callq 0xf74d12b6 <-- trapping instruction
2f: 65 8b 05 d8 5b f5 75 mov %gs:0x75f55bd8(%rip),%eax # 0x75f55c0e
36: 85 c0 test %eax,%eax
38: 74 3f je 0x79
3a: 48 rex.W
3b: c7 .byte 0xc7
3c: 04 24 add $0x24,%al
3e: 0e (bad)
3f: 36 ss