================================================================== BUG: KASAN: use-after-free in worker_thread+0xa2e/0x1200 kernel/workqueue.c:2470 Read of size 8 at addr ffff8881017b8c60 by task kworker/0:22/902 CPU: 0 PID: 902 Comm: kworker/0:22 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: 0x0 (events) Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 worker_thread+0xa2e/0x1200 kernel/workqueue.c:2470 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 907: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13d/0x2c0 mm/slub.c:4436 __kmalloc_node include/linux/slab.h:487 [inline] kmalloc_node include/linux/slab.h:642 [inline] kvmalloc_node+0x206/0x300 mm/util.c:621 kvmalloc include/linux/mm.h:862 [inline] kvzalloc include/linux/mm.h:870 [inline] alloc_netdev_mqs+0x8d/0xc90 net/core/dev.c:10900 alloc_etherdev_mqs+0x34/0x40 net/ethernet/eth.c:383 usbnet_probe+0x219/0x2860 drivers/net/usb/usbnet.c:1726 usb_probe_interface+0x5ff/0xae0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x285/0x970 drivers/base/dd.c:595 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489 device_add+0xb31/0xed0 drivers/base/core.c:3422 usb_set_configuration+0x19c2/0x1f10 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x285/0x970 drivers/base/dd.c:595 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489 device_add+0xb31/0xed0 drivers/base/core.c:3422 usb_new_device+0xd06/0x1620 drivers/usb/core/hub.c:2638 hub_port_connect drivers/usb/core/hub.c:5555 [inline] hub_port_connect_change drivers/usb/core/hub.c:5695 [inline] port_event drivers/usb/core/hub.c:5861 [inline] hub_event+0x29c4/0x4480 drivers/usb/core/hub.c:5943 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 process_scheduled_works kernel/workqueue.c:2388 [inline] worker_thread+0xd7b/0x1200 kernel/workqueue.c:2474 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x51/0x310 kernel/workqueue.c:1373 __queue_work+0x8e5/0xc60 kernel/workqueue.c:1539 queue_work_on+0xd2/0x140 kernel/workqueue.c:1566 queue_work include/linux/workqueue.h:510 [inline] schedule_work include/linux/workqueue.h:571 [inline] usbnet_defer_kevent drivers/net/usb/usbnet.c:482 [inline] usbnet_link_change+0x189/0x1b0 drivers/net/usb/usbnet.c:-1 usbnet_probe+0x1dfd/0x2860 drivers/net/usb/usbnet.c:1871 usb_probe_interface+0x5ff/0xae0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x285/0x970 drivers/base/dd.c:595 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489 device_add+0xb31/0xed0 drivers/base/core.c:3422 usb_set_configuration+0x19c2/0x1f10 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x285/0x970 drivers/base/dd.c:595 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489 device_add+0xb31/0xed0 drivers/base/core.c:3422 usb_new_device+0xd06/0x1620 drivers/usb/core/hub.c:2638 hub_port_connect drivers/usb/core/hub.c:5555 [inline] hub_port_connect_change drivers/usb/core/hub.c:5695 [inline] port_event drivers/usb/core/hub.c:5861 [inline] hub_event+0x29c4/0x4480 drivers/usb/core/hub.c:5943 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 process_scheduled_works kernel/workqueue.c:2388 [inline] worker_thread+0xd7b/0x1200 kernel/workqueue.c:2474 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff8881017b8000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3168 bytes inside of 4096-byte region [ffff8881017b8000, ffff8881017b9000) The buggy address belongs to the page: page:ffffea000405ee00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881017b8000 pfn:0x1017b8 head:ffffea000405ee00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea000412e808 ffffea0004738a08 ffff888100043380 raw: ffff8881017b8000 0000000000040002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 2466169837, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 mm/page_alloc.c:5808 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc+0x16a/0x2c0 mm/slub.c:4432 kmalloc_array include/linux/slab.h:659 [inline] __vring_new_virtqueue+0x5a8/0xdf0 drivers/virtio/virtio_ring.c:2241 vring_create_virtqueue_split drivers/virtio/virtio_ring.c:975 [inline] vring_create_virtqueue+0x10bc/0x1800 drivers/virtio/virtio_ring.c:2286 setup_vq+0x14b/0x370 drivers/virtio/virtio_pci_legacy.c:137 vp_setup_vq+0xba/0x300 drivers/virtio/virtio_pci_common.c:189 vp_find_vqs_msix+0x8d7/0xf10 drivers/virtio/virtio_pci_common.c:322 vp_find_vqs+0x57/0x470 drivers/virtio/virtio_pci_common.c:401 virtio_find_single_vq include/linux/virtio_config.h:197 [inline] probe_common+0x324/0x670 drivers/char/hw_random/virtio-rng.c:156 virtrng_probe+0x15/0x20 drivers/char/hw_random/virtio-rng.c:194 page_owner free stack trace missing Memory state around the buggy address: ffff8881017b8b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881017b8b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881017b8c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881017b8c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881017b8d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== usb 2-1: USB disconnect, device number 15