================================================================== BUG: KASAN: use-after-free in skb_update_prio net/core/dev.c:3901 [inline] BUG: KASAN: use-after-free in __dev_queue_xmit+0x35c8/0x39a0 net/core/dev.c:4180 Read of size 8 at addr ffff8880903e8b90 by task aoe_tx0/1237 CPU: 1 PID: 1237 Comm: aoe_tx0 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:317 [inline] print_report.cold+0x2ba/0x719 mm/kasan/report.c:433 kasan_report+0xbe/0x1f0 mm/kasan/report.c:495 skb_update_prio net/core/dev.c:3901 [inline] __dev_queue_xmit+0x35c8/0x39a0 net/core/dev.c:4180 dev_queue_xmit include/linux/netdevice.h:2994 [inline] tx+0x6a/0xc0 drivers/block/aoe/aoenet.c:63 kthread+0x1e7/0x3b0 drivers/block/aoe/aoecmd.c:1229 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 The buggy address belongs to the physical page: page:ffffea000240fa00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x903e8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00015d5008 ffffea0001a48208 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 3, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP|__GFP_ZERO), pid 6027, tgid 6012 (syz-executor636), ts 1791418636307, free_ts 1791581322751 prep_new_page mm/page_alloc.c:2535 [inline] get_page_from_freelist+0x210d/0x3a30 mm/page_alloc.c:4282 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5506 __alloc_pages_node include/linux/gfp.h:583 [inline] alloc_pages_node include/linux/gfp.h:606 [inline] kmalloc_large_node+0x62/0x130 mm/slub.c:4438 __kmalloc_node+0x300/0x380 mm/slub.c:4454 kmalloc_node include/linux/slab.h:623 [inline] kvmalloc_node+0xa4/0x190 mm/util.c:581 kvmalloc include/linux/slab.h:750 [inline] kvzalloc include/linux/slab.h:758 [inline] alloc_netdev_mqs+0x98/0x1180 net/core/dev.c:10598 rtnl_create_link+0x9d7/0xc00 net/core/rtnetlink.c:3241 rtnl_newlink_create net/core/rtnetlink.c:3353 [inline] __rtnl_newlink+0xf8f/0x17e0 net/core/rtnetlink.c:3580 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3593 rtnetlink_rcv_msg+0x43a/0xc90 net/core/rtnetlink.c:6089 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2485 ___sys_sendmsg+0xf3/0x170 net/socket.c:2539 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1453 [inline] free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1503 free_unref_page_prepare mm/page_alloc.c:3383 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3479 kvfree+0x42/0x50 mm/util.c:623 device_release+0x9f/0x240 drivers/base/core.c:2318 kobject_cleanup lib/kobject.c:673 [inline] kobject_release lib/kobject.c:704 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1be/0x4c0 lib/kobject.c:721 netdev_run_todo+0x75e/0x10f0 net/core/dev.c:10380 rtnl_unlock net/core/rtnetlink.c:147 [inline] rtnetlink_rcv_msg+0x447/0xc90 net/core/rtnetlink.c:6090 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2485 ___sys_sendmsg+0xf3/0x170 net/socket.c:2539 __sys_sendmsg net/socket.c:2568 [inline] __do_sys_sendmsg net/socket.c:2577 [inline] __se_sys_sendmsg net/socket.c:2575 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2575 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Memory state around the buggy address: ffff8880903e8a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880903e8b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8880903e8b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880903e8c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880903e8c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================