ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 ================================================================== BUG: KASAN: use-after-free in skb_update_prio net/core/dev.c:3884 [inline] BUG: KASAN: use-after-free in __dev_queue_xmit+0x38a2/0x3d60 net/core/dev.c:4296 Read of size 8 at addr ffff888165334bb0 by task aoe_tx0/1226 CPU: 0 PID: 1226 Comm: aoe_tx0 Not tainted 6.6.0-rc7-syzkaller-00089-gc17cda15cc86 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 skb_update_prio net/core/dev.c:3884 [inline] __dev_queue_xmit+0x38a2/0x3d60 net/core/dev.c:4296 dev_queue_xmit include/linux/netdevice.h:3082 [inline] tx+0x76/0x100 drivers/block/aoe/aoenet.c:63 kthread+0x1e9/0x3c0 drivers/block/aoe/aoecmd.c:1229 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 The buggy address belongs to the physical page: page:ffffea000594cd00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x165334 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 057ff00000000000 ffff8880b9842970 ffff8880b9842970 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x546dc0(GFP_USER|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP|__GFP_ZERO|__GFP_ACCOUNT), pid 27749, tgid 27748 (syz-executor.4), ts 1975712294257, free_ts 1976549632461 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] __kmalloc_large_node+0x87/0x1c0 mm/slab_common.c:1167 __do_kmalloc_node mm/slab_common.c:1014 [inline] __kmalloc_node.cold+0x5/0xdd mm/slab_common.c:1033 kmalloc_node include/linux/slab.h:619 [inline] kvmalloc_node+0x6f/0x1a0 mm/util.c:607 kvmalloc include/linux/slab.h:737 [inline] kvzalloc include/linux/slab.h:745 [inline] alloc_netdev_mqs+0x9b/0x1290 net/core/dev.c:10710 ieee80211_if_add+0x14b/0x1a80 net/mac80211/iface.c:2099 ieee80211_register_hw+0x3863/0x4250 net/mac80211/main.c:1407 mac80211_hwsim_new_radio+0x2567/0x4c00 drivers/net/wireless/virtual/mac80211_hwsim.c:5302 hwsim_new_radio_nl+0xaf8/0x1240 drivers/net/wireless/virtual/mac80211_hwsim.c:5983 genl_family_rcv_msg_doit+0x1fc/0x2e0 net/netlink/genetlink.c:971 genl_family_rcv_msg net/netlink/genetlink.c:1051 [inline] genl_rcv_msg+0x55c/0x800 net/netlink/genetlink.c:1066 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2545 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1075 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0x536/0x810 net/netlink/af_netlink.c:1368 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 kvfree+0x47/0x50 mm/util.c:653 device_release+0xa1/0x240 drivers/base/core.c:2484 kobject_cleanup lib/kobject.c:682 [inline] kobject_release lib/kobject.c:716 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1d0/0x440 lib/kobject.c:733 netdev_run_todo+0x7dd/0x11d0 net/core/dev.c:10482 ieee80211_unregister_hw+0x50/0x250 net/mac80211/main.c:1485 mac80211_hwsim_del_radio drivers/net/wireless/virtual/mac80211_hwsim.c:5408 [inline] remove_user_radios drivers/net/wireless/virtual/mac80211_hwsim.c:6205 [inline] mac80211_hwsim_netlink_notify+0x2e8/0x8e0 drivers/net/wireless/virtual/mac80211_hwsim.c:6219 notifier_call_chain+0xb6/0x3b0 kernel/notifier.c:93 blocking_notifier_call_chain kernel/notifier.c:388 [inline] blocking_notifier_call_chain+0x69/0x90 kernel/notifier.c:376 netlink_release+0x17b5/0x1f90 net/netlink/af_netlink.c:795 __sock_release+0xae/0x260 net/socket.c:659 sock_close+0x1c/0x20 net/socket.c:1419 __fput+0x3f7/0xa70 fs/file_table.c:384 task_work_run+0x14d/0x240 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa92/0x2a20 kernel/exit.c:874 Memory state around the buggy address: ffff888165334a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888165334b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888165334b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888165334c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888165334c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================