================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xa6/0x120 lib/list_debug.c:62 Read of size 8 at addr ffff88810eb54b40 by task kworker/0:2/387 CPU: 0 PID: 387 Comm: kworker/0:2 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_power_efficient wg_ratelimiter_gc_entries Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106 print_address_description+0x87/0x3a0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x177/0x1c0 mm/kasan/report.c:451 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 __list_del_entry_valid+0xa6/0x120 lib/list_debug.c:62 __list_del_entry include/linux/list.h:132 [inline] list_del_init include/linux/list.h:204 [inline] process_one_work+0x458/0xc10 kernel/workqueue.c:2254 worker_thread+0xad2/0x12a0 kernel/workqueue.c:2457 kthread+0x421/0x510 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 387: 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+0xdb/0x110 mm/kasan/common.c:513 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x13a/0x270 mm/slub.c:4407 __kmalloc_node include/linux/slab.h:457 [inline] kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x82/0x130 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] kvzalloc include/linux/mm.h:813 [inline] alloc_netdev_mqs+0x8c/0xc90 net/core/dev.c:10852 alloc_etherdev_mqs+0x33/0x40 net/ethernet/eth.c:383 usbnet_probe+0x1f4/0x2850 drivers/net/usb/usbnet.c:1712 usb_probe_interface+0x5b0/0xa80 drivers/usb/core/driver.c:396 really_probe+0x284/0x960 drivers/base/dd.c:595 __driver_probe_device+0x19d/0x310 drivers/base/dd.c:755 driver_probe_device+0x54/0x3d0 drivers/base/dd.c:785 __device_attach_driver+0x2c5/0x470 drivers/base/dd.c:907 bus_for_each_drv+0x182/0x200 drivers/base/bus.c:429 __device_attach+0x309/0x500 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbb/0x1d0 drivers/base/bus.c:489 device_add+0xb51/0xef0 drivers/base/core.c:3412 usb_set_configuration+0x190c/0x1e70 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x8b/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13e/0x260 drivers/usb/core/driver.c:293 really_probe+0x284/0x960 drivers/base/dd.c:595 __driver_probe_device+0x19d/0x310 drivers/base/dd.c:755 driver_probe_device+0x54/0x3d0 drivers/base/dd.c:785 __device_attach_driver+0x2c5/0x470 drivers/base/dd.c:907 bus_for_each_drv+0x182/0x200 drivers/base/bus.c:429 __device_attach+0x309/0x500 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbb/0x1d0 drivers/base/bus.c:489 device_add+0xb51/0xef0 drivers/base/core.c:3412 usb_new_device+0xf42/0x1810 drivers/usb/core/hub.c:2593 hub_port_connect drivers/usb/core/hub.c:5457 [inline] hub_port_connect_change drivers/usb/core/hub.c:5597 [inline] port_event drivers/usb/core/hub.c:5743 [inline] hub_event+0x2c6c/0x4bb0 drivers/usb/core/hub.c:5825 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2310 worker_thread+0xad2/0x12a0 kernel/workqueue.c:2457 kthread+0x421/0x510 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Freed by task 578: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0x126/0x160 mm/kasan/common.c:366 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xc8/0x220 mm/slub.c:4559 kvfree+0x35/0x40 mm/util.c:654 netdev_freemem+0x3f/0x60 net/core/dev.c:10806 netdev_release+0x7f/0xb0 net/core/net-sysfs.c:1903 device_release+0x95/0x1c0 kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x178/0x260 lib/kobject.c:761 put_device+0x1f/0x30 drivers/base/core.c:3520 free_netdev+0x353/0x440 net/core/dev.c:10992 usbnet_disconnect+0x25f/0x3b0 drivers/net/usb/usbnet.c:1651 usb_unbind_interface+0x1f4/0x8b0 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1229 [inline] device_release_driver_internal+0x4ff/0x7b0 drivers/base/dd.c:1262 device_release_driver+0x19/0x20 drivers/base/dd.c:1285 bus_remove_device+0x2ea/0x350 drivers/base/bus.c:531 device_del+0x61a/0xe80 drivers/base/core.c:3600 usb_disable_device+0x380/0x720 drivers/usb/core/message.c:1414 usb_disconnect+0x32a/0x890 drivers/usb/core/hub.c:2248 hub_port_connect drivers/usb/core/hub.c:5301 [inline] hub_port_connect_change drivers/usb/core/hub.c:5597 [inline] port_event drivers/usb/core/hub.c:5743 [inline] hub_event+0x1d4f/0x4bb0 drivers/usb/core/hub.c:5825 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2310 worker_thread+0xad2/0x12a0 kernel/workqueue.c:2457 kthread+0x421/0x510 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Last potentially related work creation: kasan_save_stack+0x36/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xca/0xf0 mm/kasan/generic.c:348 insert_work+0x56/0x320 kernel/workqueue.c:1366 __queue_work+0x92a/0xcd0 kernel/workqueue.c:1532 queue_work_on+0x105/0x170 kernel/workqueue.c:1559 usbnet_link_change+0x182/0x1a0 usbnet_probe+0x1da7/0x2850 drivers/net/usb/usbnet.c:1859 usb_probe_interface+0x5b0/0xa80 drivers/usb/core/driver.c:396 really_probe+0x284/0x960 drivers/base/dd.c:595 __driver_probe_device+0x19d/0x310 drivers/base/dd.c:755 driver_probe_device+0x54/0x3d0 drivers/base/dd.c:785 __device_attach_driver+0x2c5/0x470 drivers/base/dd.c:907 bus_for_each_drv+0x182/0x200 drivers/base/bus.c:429 __device_attach+0x309/0x500 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbb/0x1d0 drivers/base/bus.c:489 device_add+0xb51/0xef0 drivers/base/core.c:3412 usb_set_configuration+0x190c/0x1e70 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x8b/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13e/0x260 drivers/usb/core/driver.c:293 really_probe+0x284/0x960 drivers/base/dd.c:595 __driver_probe_device+0x19d/0x310 drivers/base/dd.c:755 driver_probe_device+0x54/0x3d0 drivers/base/dd.c:785 __device_attach_driver+0x2c5/0x470 drivers/base/dd.c:907 bus_for_each_drv+0x182/0x200 drivers/base/bus.c:429 __device_attach+0x309/0x500 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbb/0x1d0 drivers/base/bus.c:489 device_add+0xb51/0xef0 drivers/base/core.c:3412 usb_new_device+0xf42/0x1810 drivers/usb/core/hub.c:2593 hub_port_connect drivers/usb/core/hub.c:5457 [inline] hub_port_connect_change drivers/usb/core/hub.c:5597 [inline] port_event drivers/usb/core/hub.c:5743 [inline] hub_event+0x2c6c/0x4bb0 drivers/usb/core/hub.c:5825 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2310 worker_thread+0xad2/0x12a0 kernel/workqueue.c:2457 kthread+0x421/0x510 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff88810eb54000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 2880 bytes inside of 4096-byte region [ffff88810eb54000, ffff88810eb55000) The buggy address belongs to the page: page:ffffea00043ad400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10eb50 head:ffffea00043ad400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 0000000100000001 ffff888100042140 raw: 0000000000000000 0000000000040004 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 451, ts 32275532400, free_ts 32233425899 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x15d/0x170 mm/page_alloc.c:2420 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3bb6/0x3c90 mm/page_alloc.c:4192 __alloc_pages+0x38a/0x7b0 mm/page_alloc.c:5465 allocate_slab mm/slub.c:1912 [inline] new_slab+0x92/0x490 mm/slub.c:1975 ___slab_alloc+0x39e/0x830 mm/slub.c:3008 __slab_alloc+0x4a/0x90 mm/slub.c:3095 slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] __kmalloc+0x16d/0x270 mm/slub.c:4403 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] ops_init+0x8e/0x4a0 net/core/net_namespace.c:128 setup_net+0x3a3/0xc50 net/core/net_namespace.c:333 copy_net_ns+0x35f/0x5b0 net/core/net_namespace.c:486 create_new_namespaces+0x416/0x670 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x126/0x180 kernel/nsproxy.c:226 ksys_unshare+0x545/0x980 kernel/fork.c:3099 __do_sys_unshare kernel/fork.c:3173 [inline] __se_sys_unshare kernel/fork.c:3171 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3171 x64_sys_call+0x728/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1413 [inline] free_unref_page_prepare+0x7a9/0x7e0 mm/page_alloc.c:3317 free_unref_page+0x85/0x220 mm/page_alloc.c:3396 free_the_page mm/page_alloc.c:705 [inline] __free_pages+0x61/0xf0 mm/page_alloc.c:5541 __free_slab+0xec/0x1d0 mm/slub.c:2000 free_slab mm/slub.c:2015 [inline] discard_slab mm/slub.c:2021 [inline] __unfreeze_partials+0x165/0x1a0 mm/slub.c:2507 put_cpu_partial+0xc4/0x120 mm/slub.c:2587 __slab_free+0x1c8/0x290 mm/slub.c:3368 do_slab_free mm/slub.c:3487 [inline] ___cache_free+0x109/0x120 mm/slub.c:3506 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x44/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15a/0x180 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0xf5/0x200 mm/slub.c:3233 getname_flags+0xba/0x520 fs/namei.c:138 getname fs/namei.c:217 [inline] __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __x64_sys_mkdirat+0x7c/0xa0 fs/namei.c:4103 Memory state around the buggy address: ffff88810eb54a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810eb54a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810eb54b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810eb54b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810eb54c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== usb 4-1: USB disconnect, device number 4 cdc_ncm 4-1:1.0 eth2: unregister 'cdc_ncm' usb-dummy_hcd.3-1, CDC NCM usb 3-1: USB disconnect, device number 5 cdc_ncm 3-1:1.0 eth2: unregister 'cdc_ncm' usb-dummy_hcd.2-1, CDC NCM usb 3-1: new full-speed USB device number 6 using dummy_hcd usb 3-1: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 10 usb 3-1: config 1 interface 0 altsetting 0 endpoint 0x81 has invalid maxpacket 512, setting to 64 usb 3-1: config 1 interface 1 altsetting 0 has 0 endpoint descriptors, different from the interface descriptor's value: 8 usb 3-1: config 1 interface 1 altsetting 1 endpoint 0x82 has invalid maxpacket 512, setting to 64 usb 3-1: config 1 interface 1 altsetting 1 endpoint 0x3 has invalid maxpacket 512, setting to 64 usb 3-1: New USB device found, idVendor=0525, idProduct=a4a1, bcdDevice= 0.40 usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 3-1: Product: syz usb 3-1: Manufacturer: syz usb 3-1: SerialNumber: syz cdc_ncm 3-1:1.0: MAC-Address: 42:42:42:42:42:42 cdc_ncm 3-1:1.0 eth1: register 'cdc_ncm' at usb-dummy_hcd.2-1, CDC NCM, 42:42:42:42:42:42