================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xa6/0x120 lib/list_debug.c:62 Read of size 8 at addr ffff888123db0c70 by task kworker/1:0/26 CPU: 1 PID: 26 Comm: kworker/1:0 Tainted: G W 5.15.161-syzkaller-00463-g8e36931104ac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: events linkwatch_event Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __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:2269 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 Allocated by task 310: 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+0xdb/0x110 mm/kasan/common.c:512 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13a/0x270 mm/slub.c:4427 __kmalloc_node include/linux/slab.h:469 [inline] kmalloc_node include/linux/slab.h:626 [inline] kvmalloc_node+0x1f0/0x4d0 mm/util.c:628 kvmalloc include/linux/mm.h:851 [inline] kvzalloc include/linux/mm.h:859 [inline] alloc_netdev_mqs+0x8c/0xc90 net/core/dev.c:10859 alloc_etherdev_mqs+0x33/0x40 net/ethernet/eth.c:383 usbnet_probe+0x1ff/0x2830 drivers/net/usb/usbnet.c:1694 usb_probe_interface+0x5b6/0xa90 drivers/usb/core/driver.c:396 really_probe+0x28d/0x970 drivers/base/dd.c:595 __driver_probe_device+0x1a0/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+0x183/0x200 drivers/base/bus.c:427 __device_attach+0x312/0x510 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbe/0x1e0 drivers/base/bus.c:487 device_add+0xb60/0xf10 drivers/base/core.c:3419 usb_set_configuration+0x190f/0x1e80 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x8b/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x144/0x260 drivers/usb/core/driver.c:293 really_probe+0x28d/0x970 drivers/base/dd.c:595 __driver_probe_device+0x1a0/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+0x183/0x200 drivers/base/bus.c:427 __device_attach+0x312/0x510 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbe/0x1e0 drivers/base/bus.c:487 device_add+0xb60/0xf10 drivers/base/core.c:3419 usb_new_device+0x1038/0x1c00 drivers/usb/core/hub.c:2599 hub_port_connect drivers/usb/core/hub.c:5513 [inline] hub_port_connect_change drivers/usb/core/hub.c:5653 [inline] port_event drivers/usb/core/hub.c:5803 [inline] hub_event+0x2def/0x4770 drivers/usb/core/hub.c:5885 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x56/0x320 kernel/workqueue.c:1373 __queue_work+0x92a/0xcd0 kernel/workqueue.c:1539 queue_work_on+0x105/0x170 kernel/workqueue.c:1566 usbnet_link_change+0xeb/0x100 usbnet_probe+0x1dd3/0x2830 drivers/net/usb/usbnet.c:1841 usb_probe_interface+0x5b6/0xa90 drivers/usb/core/driver.c:396 really_probe+0x28d/0x970 drivers/base/dd.c:595 __driver_probe_device+0x1a0/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+0x183/0x200 drivers/base/bus.c:427 __device_attach+0x312/0x510 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbe/0x1e0 drivers/base/bus.c:487 device_add+0xb60/0xf10 drivers/base/core.c:3419 usb_set_configuration+0x190f/0x1e80 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x8b/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x144/0x260 drivers/usb/core/driver.c:293 really_probe+0x28d/0x970 drivers/base/dd.c:595 __driver_probe_device+0x1a0/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+0x183/0x200 drivers/base/bus.c:427 __device_attach+0x312/0x510 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xbe/0x1e0 drivers/base/bus.c:487 device_add+0xb60/0xf10 drivers/base/core.c:3419 usb_new_device+0x1038/0x1c00 drivers/usb/core/hub.c:2599 hub_port_connect drivers/usb/core/hub.c:5513 [inline] hub_port_connect_change drivers/usb/core/hub.c:5653 [inline] port_event drivers/usb/core/hub.c:5803 [inline] hub_event+0x2def/0x4770 drivers/usb/core/hub.c:5885 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 The buggy address belongs to the object at ffff888123db0000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3184 bytes inside of 4096-byte region [ffff888123db0000, ffff888123db1000) The buggy address belongs to the page: page:ffffea00048f6c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888123db0000 pfn:0x123db0 head:ffffea00048f6c00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea00048b2808 ffffea0004444208 ffff888100043380 raw: ffff888123db0000 0000000000040001 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 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 289, ts 20094295813, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5779 allocate_slab mm/slub.c:1932 [inline] new_slab+0x9a/0x4e0 mm/slub.c:1995 ___slab_alloc+0x39e/0x830 mm/slub.c:3028 __slab_alloc+0x4a/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] __kmalloc_track_caller+0x16c/0x260 mm/slub.c:4945 kmalloc_reserve net/core/skbuff.c:357 [inline] __alloc_skb+0x10c/0x550 net/core/skbuff.c:428 alloc_skb include/linux/skbuff.h:1183 [inline] nlmsg_new include/net/netlink.h:953 [inline] rtmsg_ifinfo_build_skb+0x7f/0x180 net/core/rtnetlink.c:3863 rtmsg_ifinfo_event net/core/rtnetlink.c:3899 [inline] rtmsg_ifinfo+0x78/0x120 net/core/rtnetlink.c:3908 __dev_notify_flags+0xdd/0x610 net/core/dev.c:8854 __rtnl_newlink net/core/rtnetlink.c:3509 [inline] rtnl_newlink+0x19d1/0x2050 net/core/rtnetlink.c:3549 rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5629 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2508 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5647 page_owner free stack trace missing Memory state around the buggy address: ffff888123db0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888123db0b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888123db0c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888123db0c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888123db0d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 26 Comm: kworker/1:0 Tainted: G B W 5.15.161-syzkaller-00463-g8e36931104ac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: 0x0 (events) RIP: 0010:process_one_work+0xa7/0xc10 kernel/workqueue.c:2223 Code: 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 ce 94 69 00 4c 8b 33 49 8d 47 08 48 89 c1 48 c1 e9 03 48 89 8d 58 ff ff ff <42> 80 3c 21 00 48 89 45 98 74 0d 48 8b 7d 98 e8 a5 94 69 00 48 8b RSP: 0018:ffffc900001b7d20 EFLAGS: 00010002 RAX: 0000000000000008 RBX: ffff88810028c548 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900001b7dc8 R08: ffffffff81491f7e R09: 0000000000000007 R10: ffffed10247b618c R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88810028c500 R14: ffff8881f71371c0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa2e6ebf8e5 CR3: 000000011adf9000 CR4: 00000000003506a0 Call Trace: worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 Modules linked in: ---[ end trace 57e456a142de6804 ]--- RIP: 0010:process_one_work+0xa7/0xc10 kernel/workqueue.c:2223 Code: 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 ce 94 69 00 4c 8b 33 49 8d 47 08 48 89 c1 48 c1 e9 03 48 89 8d 58 ff ff ff <42> 80 3c 21 00 48 89 45 98 74 0d 48 8b 7d 98 e8 a5 94 69 00 48 8b RSP: 0018:ffffc900001b7d20 EFLAGS: 00010002 RAX: 0000000000000008 RBX: ffff88810028c548 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900001b7dc8 R08: ffffffff81491f7e R09: 0000000000000007 R10: ffffed10247b618c R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88810028c500 R14: ffff8881f71371c0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa2e6ebf8e5 CR3: 000000011adf9000 CR4: 00000000003506a0 ---------------- Code disassembly (best guess): 0: 89 d8 mov %ebx,%eax 2: 48 c1 e8 03 shr $0x3,%rax 6: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) b: 74 08 je 0x15 d: 48 89 df mov %rbx,%rdi 10: e8 ce 94 69 00 call 0x6994e3 15: 4c 8b 33 mov (%rbx),%r14 18: 49 8d 47 08 lea 0x8(%r15),%rax 1c: 48 89 c1 mov %rax,%rcx 1f: 48 c1 e9 03 shr $0x3,%rcx 23: 48 89 8d 58 ff ff ff mov %rcx,-0xa8(%rbp) * 2a: 42 80 3c 21 00 cmpb $0x0,(%rcx,%r12,1) <-- trapping instruction 2f: 48 89 45 98 mov %rax,-0x68(%rbp) 33: 74 0d je 0x42 35: 48 8b 7d 98 mov -0x68(%rbp),%rdi 39: e8 a5 94 69 00 call 0x6994e3 3e: 48 rex.W 3f: 8b .byte 0x8b