================================================================== BUG: KASAN: slab-use-after-free in strlen+0x57/0x70 lib/string.c:403 Read of size 1 at addr ffff888070521900 by task kworker/1:6/5833 CPU: 1 UID: 0 PID: 5833 Comm: kworker/1:6 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: events output_poll_execute 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 strlen+0x57/0x70 lib/string.c:403 __fortify_strlen include/linux/fortify-string.h:218 [inline] fill_kobj_path lib/kobject.c:130 [inline] kobject_get_path+0x107/0x2f0 lib/kobject.c:164 kobject_uevent_env+0x29e/0x9e0 lib/kobject_uevent.c:548 drm_sysfs_hotplug_event+0x10e/0x150 drivers/gpu/drm/drm_sysfs.c:445 output_poll_execute+0x846/0xab0 drivers/gpu/drm/drm_probe_helper.c:867 process_one_work kernel/workqueue.c:3503 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3586 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3667 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 5776: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __do_kmalloc_node mm/slub.c:5569 [inline] __kmalloc_noprof+0x366/0x720 mm/slub.c:5594 _kmalloc_noprof include/linux/slab.h:988 [inline] usb_alloc_urb+0x46/0x150 drivers/usb/core/urb.c:75 udl_alloc_urb_list drivers/gpu/drm/udl/udl_main.c:226 [inline] udl_init+0x839/0xe70 drivers/gpu/drm/udl/udl_main.c:361 udl_driver_create drivers/gpu/drm/udl/udl_drv.c:80 [inline] udl_usb_probe+0x4c/0x150 drivers/gpu/drm/udl/udl_drv.c:95 usb_probe_interface+0x751/0xe00 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 device_initial_probe+0x9c/0x100 drivers/base/dd.c:1190 __bus_probe_device+0x126/0x220 drivers/base/bus.c:614 device_add+0x7d7/0xb80 drivers/base/core.c:3779 usb_set_configuration+0x1bb5/0x2260 drivers/usb/core/message.c:2280 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:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 device_initial_probe+0x9c/0x100 drivers/base/dd.c:1190 __bus_probe_device+0x126/0x220 drivers/base/bus.c:614 device_add+0x7d7/0xb80 drivers/base/core.c:3779 usb_new_device+0x9aa/0x1690 drivers/usb/core/hub.c:2710 hub_port_connect drivers/usb/core/hub.c:5582 [inline] hub_port_connect_change drivers/usb/core/hub.c:5736 [inline] port_event drivers/usb/core/hub.c:5900 [inline] hub_event+0x290f/0x4d80 drivers/usb/core/hub.c:5982 process_one_work kernel/workqueue.c:3503 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3586 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3667 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 5776: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:599 poison_slab_object mm/kasan/common.c:267 [inline] __kasan_slab_free+0x70/0x90 mm/kasan/common.c:299 kasan_slab_free include/linux/kasan.h:239 [inline] slab_free_hook mm/slub.c:2807 [inline] slab_free mm/slub.c:6672 [inline] kfree+0x1c7/0x650 mm/slub.c:6982 udl_free_urb_list+0x1b2/0x280 drivers/gpu/drm/udl/udl_main.c:196 udl_drop_usb+0x15/0x20 drivers/gpu/drm/udl/udl_main.c:383 usb_unbind_interface+0x295/0x9c0 drivers/usb/core/driver.c:460 device_remove drivers/base/dd.c:619 [inline] __device_release_driver drivers/base/dd.c:1357 [inline] device_release_driver_internal+0x48d/0x7d0 drivers/base/dd.c:1380 bus_remove_device+0x444/0x560 drivers/base/bus.c:678 device_del+0x524/0x8f0 drivers/base/core.c:3968 usb_disable_device+0x3d4/0x8d0 drivers/usb/core/message.c:1484 usb_disconnect+0x346/0x9a0 drivers/usb/core/hub.c:2352 hub_port_connect drivers/usb/core/hub.c:5422 [inline] hub_port_connect_change drivers/usb/core/hub.c:5736 [inline] port_event drivers/usb/core/hub.c:5900 [inline] hub_event+0x1bd6/0x4d80 drivers/usb/core/hub.c:5982 process_one_work kernel/workqueue.c:3503 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3586 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3667 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 ffff888070521900 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes inside of freed 192-byte region [ffff888070521900, ffff8880705219c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x70521 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801c8413c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6477, tgid 6476 (syz.3.209), ts 138518012791 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1872 prep_new_page+0x22/0xb0 mm/page_alloc.c:1880 get_page_from_freelist+0x2506/0x2570 mm/page_alloc.c:4000 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5546 alloc_slab_page mm/slub.c:3423 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3538 new_slab mm/slub.c:3589 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7578 refill_sheaf mm/slub.c:2953 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4849 alloc_from_pcs mm/slub.c:4925 [inline] slab_alloc_node mm/slub.c:5059 [inline] __do_kmalloc_node mm/slub.c:5568 [inline] __kmalloc_node_track_caller_noprof+0x547/0x720 mm/slub.c:5700 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:713 [inline] neigh_parms_alloc+0x83/0x500 net/core/neighbour.c:1790 inetdev_init+0x142/0x4f0 net/ipv4/devinet.c:283 inetdev_event+0x11c4/0x1610 net/ipv4/devinet.c:1580 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2354 [inline] call_netdevice_notifiers net/core/dev.c:2368 [inline] register_netdevice+0x1bfe/0x2280 net/core/dev.c:11944 bond_newlink+0x48/0xd0 drivers/net/bonding/bond_netlink.c:625 rtnl_newlink_create+0x305/0x7b0 net/core/rtnetlink.c:4006 page last free pid 36 tgid 36 ts 138405887458 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1414 [inline] __free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2970 __tlb_remove_table_free mm/mmu_gather.c:236 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:297 rcu_do_batch kernel/rcu/tree.c:2651 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2920 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+0xce/0x250 kernel/softirq.c:794 irq_exit_rcu+0x9/0x30 kernel/softirq.c:817 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Memory state around the buggy address: ffff888070521800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888070521880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888070521900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888070521980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888070521a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================