=========
==================================================================
BUG: KASAN: slab-use-after-free in find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1618 [inline]
BUG: KASAN: slab-use-after-free in dummy_timer+0xd11/0x4cf0 drivers/usb/gadget/udc/dummy_hcd.c:1890
Read of size 1 at addr ffff88805beaed12 by task kworker/1:2/1566
CPU: 1 UID: 0 PID: 1566 Comm: kworker/1:2 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1618 [inline]
dummy_timer+0xd11/0x4cf0 drivers/usb/gadget/udc/dummy_hcd.c:1890
__run_hrtimer kernel/time/hrtimer.c:2067 [inline]
__hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2124
hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2141
handle_softirqs+0x226/0x860 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:kfence_alloc include/linux/kfence.h:127 [inline]
RIP: 0010:slab_alloc_node mm/slub.c:4978 [inline]
RIP: 0010:__do_kmalloc_node mm/slub.c:5418 [inline]
RIP: 0010:__kmalloc_node_track_caller_noprof+0x1ed/0x720 mm/slub.c:5550
Code: 8f 48 89 de e8 44 72 fa 02 e9 cd fe ff ff be 00 10 00 00 48 c7 c7 b0 72 09 8f 48 89 ca 49 89 cf e8 28 73 fa 02 4c 89 f9 eb 87 <83> 3d 8c 5b de 0c 00 0f 8f 19 ff ff ff 4c 89 e7 4c 89 f6 89 ea e8
RSP: 0018:ffffc900063a6958 EFLAGS: 00000286
RAX: 0000000000000000 RBX: 0000000000000cc0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8f0af1a0
RBP: 0000000000000cc0 R08: ffffffff8229b53c R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1005491699 R12: ffff88813ff1a500
R13: 00000000ffffffff R14: 0000000000000007 R15: ffff888029185dc0
__kmemdup_nul mm/util.c:64 [inline]
kstrdup+0x42/0x100 mm/util.c:84
kobject_set_name_vargs+0x61/0x110 lib/kobject.c:274
device_create_groups_vargs drivers/base/core.c:4454 [inline]
device_create+0x23d/0x300 drivers/base/core.c:4497
usb_register_dev+0x36a/0x5e0 drivers/usb/core/file.c:150
yurex_probe+0xb0f/0xec0 drivers/usb/misc/yurex.c:286
usb_probe_interface+0x788/0xe50 drivers/usb/core/driver.c:399
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x254/0xae0 drivers/base/dd.c:706
__driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
__device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c4/0x450 drivers/base/dd.c:1098
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
device_add+0x7d7/0xb80 drivers/base/core.c:3776
usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x254/0xae0 drivers/base/dd.c:706
__driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
__device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c4/0x450 drivers/base/dd.c:1098
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
device_add+0x7d7/0xb80 drivers/base/core.c:3776
usb_new_device+0x9aa/0x1690 drivers/usb/core/hub.c:2708
hub_port_connect drivers/usb/core/hub.c:5580 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5720 [inline]
port_event drivers/usb/core/hub.c:5884 [inline]
hub_event+0x28e8/0x4d30 drivers/usb/core/hub.c:5966
process_one_work kernel/workqueue.c:3399 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3482
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3563
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 12289:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5568
_kmalloc_noprof include/linux/slab.h:991 [inline]
_kzalloc_noprof include/linux/slab.h:1312 [inline]
tipc_crypto_start+0x99/0x630 net/tipc/crypto.c:1475
tipc_init_net+0x213/0x330 net/tipc/core.c:73
ops_init+0x35d/0x5d0 net/core/net_namespace.c:137
setup_net+0x118/0x350 net/core/net_namespace.c:443
copy_net_ns+0x536/0x770 net/core/net_namespace.c:582
create_new_namespaces+0x3f0/0x6b0 kernel/nsproxy.c:132
unshare_nsproxy_namespaces+0x144/0x190 kernel/nsproxy.c:234
ksys_unshare+0x5a7/0x950 kernel/fork.c:3291
__do_sys_unshare kernel/fork.c:3355 [inline]
__se_sys_unshare kernel/fork.c:3353 [inline]
__x64_sys_unshare+0x38/0x50 kernel/fork.c:3353
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 12:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2748 [inline]
slab_free mm/slub.c:6505 [inline]
kfree+0x1c5/0x650 mm/slub.c:6798
tipc_exit_net+0xde/0x2d0 net/tipc/core.c:120
ops_exit_list net/core/net_namespace.c:200 [inline]
ops_undo_list+0x451/0x8f0 net/core/net_namespace.c:253
cleanup_net+0x572/0x810 net/core/net_namespace.c:706
process_one_work kernel/workqueue.c:3399 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3482
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3563
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff88805beaec00
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 274 bytes inside of
freed 512-byte region [ffff88805beaec00, ffff88805beaee00)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5beac
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88813ff1ac80 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88813ff1ac80 dead000000000100 dead000000000122
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13, tgid 13 (kworker/u8:1), ts 93694573578
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1853
prep_new_page mm/page_alloc.c:1861 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3925
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5418
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab+0x7d/0x620 mm/slub.c:3462
new_slab mm/slub.c:3513 [inline]
refill_objects+0x2d5/0x350 mm/slub.c:7416
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
__do_kmalloc_node mm/slub.c:5418 [inline]
__kmalloc_noprof+0x476/0x710 mm/slub.c:5444
_kmalloc_noprof include/linux/slab.h:995 [inline]
_kzalloc_noprof include/linux/slab.h:1312 [inline]
fib6_info_alloc+0x30/0xf0 net/ipv6/ip6_fib.c:155
ip6_route_info_create+0x149/0x890 net/ipv6/route.c:3833
ip6_route_add+0x49/0x1b0 net/ipv6/route.c:3962
addrconf_prefix_route+0x3a2/0x480 net/ipv6/addrconf.c:2504
addrconf_add_linklocal+0x266/0x460 net/ipv6/addrconf.c:3337
addrconf_addr_gen+0x2f8/0x360 net/ipv6/addrconf.c:3471
addrconf_notify+0xb1e/0x1050 net/ipv6/addrconf.c:3776
notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86
netif_state_change+0x27d/0x3a0 net/core/dev.c:1625
page last free pid 1 tgid 1 ts 28117227406 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1400 [inline]
free_pages_prepare+0x9eb/0xaf0 mm/page_alloc.c:1445
__free_contig_range_common+0x174/0x340 mm/page_alloc.c:7054
destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993
debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368
do_one_initcall+0x250/0x870 init/main.c:1357
do_initcall_level+0x10a/0x1a0 init/main.c:1419
do_initcalls+0x59/0xa0 init/main.c:1435
kernel_init_freeable+0x29d/0x3e0 init/main.c:1670
kernel_init+0x22/0x1d0 init/main.c:1560
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff88805beaec00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88805beaec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88805beaed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88805beaed80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88805beaee00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 48 89 de mov %rbx,%rsi
3: e8 44 72 fa 02 call 0x2fa724c
8: e9 cd fe ff ff jmp 0xfffffeda
d: be 00 10 00 00 mov $0x1000,%esi
12: 48 c7 c7 b0 72 09 8f mov $0xffffffff8f0972b0,%rdi
19: 48 89 ca mov %rcx,%rdx
1c: 49 89 cf mov %rcx,%r15
1f: e8 28 73 fa 02 call 0x2fa734c
24: 4c 89 f9 mov %r15,%rcx
27: eb 87 jmp 0xffffffb0
* 29: 83 3d 8c 5b de 0c 00 cmpl $0x0,0xcde5b8c(%rip) # 0xcde5bbc <-- trapping instruction
30: 0f 8f 19 ff ff ff jg 0xffffff4f
36: 4c 89 e7 mov %r12,%rdi
39: 4c 89 f6 mov %r14,%rsi
3c: 89 ea mov %ebp,%edx
3e: e8 .byte 0xe8