================================================================== BUG: KASAN: use-after-free in vlan_dev_get_iflink+0x6d/0x70 net/8021q/vlan_dev.c:757 Read of size 4 at addr ffff88810acec100 by task kworker/u4:6/8212 CPU: 0 PID: 8212 Comm: kworker/u4:6 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Workqueue: netns cleanup_net Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 vlan_dev_get_iflink+0x6d/0x70 net/8021q/vlan_dev.c:757 dev_get_iflink+0x70/0xc0 net/core/dev.c:824 default_operstate net/core/link_watch.c:41 [inline] rfc2863_policy+0x124/0x2b0 net/core/link_watch.c:53 linkwatch_do_dev+0x3b/0x140 net/core/link_watch.c:160 linkwatch_forget_dev+0x180/0x190 net/core/link_watch.c:238 netdev_wait_allrefs net/core/dev.c:10226 [inline] netdev_run_todo+0x2e0/0xda0 net/core/dev.c:10342 rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:112 default_device_exit_batch+0x363/0x3c0 net/core/dev.c:11299 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fe/0xb80 net/core/net_namespace.c:609 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Allocated by task 280: 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:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x19f/0x330 mm/slub.c:4038 __kmalloc_node include/linux/slab.h:421 [inline] kmalloc_node include/linux/slab.h:578 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:833 [inline] kvzalloc include/linux/mm.h:841 [inline] alloc_netdev_mqs+0x88/0xca0 net/core/dev.c:10538 rtnl_create_link+0x242/0x930 net/core/rtnetlink.c:3207 __rtnl_newlink net/core/rtnetlink.c:3484 [inline] rtnl_newlink+0x11ae/0x1830 net/core/rtnetlink.c:3542 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5622 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2007 __do_sys_sendto net/socket.c:2019 [inline] __se_sys_sendto net/socket.c:2015 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2015 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 8212: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 kvfree+0x35/0x40 mm/util.c:647 netdev_freemem+0x3f/0x60 net/core/dev.c:10492 netdev_release+0x7f/0xb0 net/core/net-sysfs.c:1886 device_release+0x96/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x18a/0x270 lib/kobject.c:761 netdev_run_todo+0xc06/0xda0 net/core/dev.c:10363 rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:112 default_device_exit_batch+0x363/0x3c0 net/core/dev.c:11299 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fe/0xb80 net/core/net_namespace.c:609 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88810acec000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 256 bytes inside of 4096-byte region [ffff88810acec000, ffff88810aced000) The buggy address belongs to the page: page:ffffea00042b3a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ace8 head:ffffea00042b3a00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042c00 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 2458057908, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x1f9/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] scsi_alloc_sdev+0x101/0x920 drivers/scsi/scsi_scan.c:238 scsi_probe_and_add_lun+0x17d/0x3370 drivers/scsi/scsi_scan.c:1098 __scsi_scan_target+0x1d2/0xbf0 drivers/scsi/scsi_scan.c:1581 scsi_scan_channel drivers/scsi/scsi_scan.c:1669 [inline] scsi_scan_host_selected+0x34e/0x600 drivers/scsi/scsi_scan.c:1698 do_scsi_scan_host drivers/scsi/scsi_scan.c:1837 [inline] scsi_scan_host+0x39e/0x670 drivers/scsi/scsi_scan.c:1867 virtscsi_probe+0x8f6/0xab0 drivers/scsi/virtio_scsi.c:915 virtio_dev_probe+0x8df/0xb30 drivers/virtio/virtio.c:274 really_probe+0x373/0xa60 drivers/base/dd.c:558 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 page_owner free stack trace missing Memory state around the buggy address: ffff88810acec000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810acec080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810acec100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810acec180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810acec200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================