================================================================== BUG: KASAN: slab-use-after-free in find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1650 [inline] BUG: KASAN: slab-use-after-free in handle_control_request drivers/usb/gadget/udc/dummy_hcd.c:1793 [inline] BUG: KASAN: slab-use-after-free in dummy_timer+0x33df/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:1974 Read of size 1 at addr ffff8880515ec0e8 by task ksoftirqd/0/15 CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/0 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 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:1650 [inline] handle_control_request drivers/usb/gadget/udc/dummy_hcd.c:1793 [inline] dummy_timer+0x33df/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:1974 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2153 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1133 smpboot_thread_fn+0x5f8/0xb30 kernel/smpboot.c:162 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 31: 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:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5680 _kmalloc_noprof include/linux/slab.h:991 [inline] batadv_forw_packet_alloc+0x178/0x370 net/batman-adv/send.c:511 batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:648 [inline] batadv_iv_ogm_queue_add+0x8b8/0xd90 net/batman-adv/bat_iv_ogm.c:769 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:973 [inline] batadv_iv_ogm_schedule+0xafb/0xfc0 net/batman-adv/bat_iv_ogm.c:1011 batadv_iv_send_outstanding_bat_ogm_packet+0x622/0x740 net/batman-adv/bat_iv_ogm.c:1924 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 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 Freed by task 3312: 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:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x1c5/0x650 mm/slub.c:6923 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 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 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 insert_work+0x3d/0x330 kernel/workqueue.c:2356 __queue_work+0xbe8/0x1360 kernel/workqueue.c:2550 call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1749 expire_timers kernel/time/timer.c:1795 [inline] __run_timers kernel/time/timer.c:2375 [inline] __run_timer_base+0x67e/0x8b0 kernel/time/timer.c:2387 run_timer_base kernel/time/timer.c:2396 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2406 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x57/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 The buggy address belongs to the object at ffff8880515ec000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 232 bytes inside of freed 512-byte region [ffff8880515ec000, ffff8880515ec200) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880515ec000 pfn:0x515ec head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88813ff28c80 ffffea00014aaa10 ffffea0001455d10 raw: ffff8880515ec000 000000000010000c 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88813ff28c80 ffffea00014aaa10 ffffea0001455d10 head: ffff8880515ec000 000000000010000c 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5635, tgid 5635 (syz-executor), ts 90036294595 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856 prep_new_page mm/page_alloc.c:1864 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3935 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5444 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5556 _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:3811 ip6_route_add+0x49/0x1b0 net/ipv6/route.c:3940 addrconf_add_mroute+0x2d1/0x370 net/ipv6/addrconf.c:2585 addrconf_add_dev net/ipv6/addrconf.c:2603 [inline] addrconf_dev_config net/ipv6/addrconf.c:3525 [inline] addrconf_init_auto_addrs+0x4d7/0xa50 net/ipv6/addrconf.c:3613 addrconf_notify+0xb1e/0x1050 net/ipv6/addrconf.c:3793 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2351 [inline] call_netdevice_notifiers net/core/dev.c:2365 [inline] __dev_notify_flags+0x31e/0x510 net/core/dev.c:10032 netif_change_flags+0xde/0x1b0 net/core/dev.c:10061 page last free pid 1 tgid 1 ts 22147107026 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] free_pages_prepare+0x9eb/0xaf0 mm/page_alloc.c:1448 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7062 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:1419 do_initcall_level+0x10a/0x1a0 init/main.c:1481 do_initcalls+0x59/0xa0 init/main.c:1497 kernel_init_freeable+0x29d/0x3e0 init/main.c:1732 kernel_init+0x22/0x1d0 init/main.c:1622 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: ffff8880515ebf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880515ec000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880515ec080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880515ec100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880515ec180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================