================================================================== BUG: KASAN: use-after-free in skb_update_prio net/core/dev.c:3900 [inline] BUG: KASAN: use-after-free in __dev_queue_xmit+0x4b0/0x2a6c net/core/dev.c:4164 Read of size 8 at addr ffff00013cdc0be8 by task aoe_tx0/2046 CPU: 1 PID: 2046 Comm: aoe_tx0 Not tainted 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 skb_update_prio net/core/dev.c:3900 [inline] __dev_queue_xmit+0x4b0/0x2a6c net/core/dev.c:4164 dev_queue_xmit+0x24/0x34 net/core/dev.c:4258 tx+0x8c/0x130 drivers/block/aoe/aoenet.c:63 kthread+0x1ac/0x374 drivers/block/aoe/aoecmd.c:1230 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 13041: 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+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc_node+0x2c0/0x5b8 mm/slub.c:4455 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x88/0x204 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] kvzalloc include/linux/mm.h:813 [inline] alloc_netdev_mqs+0x94/0x9d4 net/core/dev.c:10817 rtnl_create_link+0x2b8/0x86c net/core/rtnetlink.c:3185 __rtnl_newlink net/core/rtnetlink.c:3452 [inline] rtnl_newlink+0xfa0/0x1ab8 net/core/rtnetlink.c:3510 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5587 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Freed by task 13041: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 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+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x178/0x410 mm/slub.c:4559 kvfree+0x40/0x50 mm/util.c:654 netdev_freemem+0x4c/0x64 net/core/dev.c:10771 netdev_release+0x88/0xb0 net/core/net-sysfs.c:1903 device_release+0x8c/0x1ac kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2c4/0x438 lib/kobject.c:761 netdev_run_todo+0x968/0xae0 net/core/dev.c:10635 rtnl_unlock net/core/rtnetlink.c:112 [inline] rtnetlink_rcv_msg+0xa7c/0xdac net/core/rtnetlink.c:5588 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff00013cdc0000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 3048 bytes inside of 4096-byte region [ffff00013cdc0000, ffff00013cdc1000) The buggy address belongs to the page: page:0000000052816f06 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17cdc0 head:0000000052816f06 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0005156200 0000000300000003 ffff0000c0003500 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00013cdc0a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff00013cdc0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff00013cdc0b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff00013cdc0c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff00013cdc0c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== selects TX queue 0, but real number of TX queues is 0 Unable to handle kernel paging request at virtual address 004f805a6000065e Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 [004f805a6000065e] address between user and kernel address ranges Internal error: Oops: 96000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 2046 Comm: aoe_tx0 Tainted: G B 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __dev_queue_xmit+0x74c/0x2a6c net/core/dev.c:4189 lr : trace_net_dev_queue include/trace/events/net.h:143 [inline] lr : __dev_queue_xmit+0x740/0x2a6c net/core/dev.c:4188 sp : ffff800022847a60 x29: ffff800022847c30 x28: dfff800000000000 x27: aa8002d3000032f1 x26: ffff000167314800 x25: 0000000000000000 x24: ffff00010ebd2c00 x23: ffff800022847b20 x22: ffff00016722e305 x21: ffff8000148dd310 x20: ffff00016722e280 x19: 0000000000000002 x18: 0000000000000201 x17: ff80800008335ea8 x16: ffff800011950fac x15: ffff800008335ea8 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000fd8c49c x10: 0000000000000000 x9 : ffff80000fd8c49c x8 : 1550005a6000065e x7 : 0000000000001250 x6 : 0000000000001218 x5 : ffff800022847178 x4 : ffff8000149a7538 x3 : ffff80000fd8c3c8 x2 : 0000000000000000 x1 : ffff800011f50840 x0 : 0000000000000001 Call trace: __dev_queue_xmit+0x74c/0x2a6c net/core/dev.c:4189 dev_queue_xmit+0x24/0x34 net/core/dev.c:4258 tx+0x8c/0x130 drivers/block/aoe/aoenet.c:63 kthread+0x1ac/0x374 drivers/block/aoe/aoecmd.c:1230 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Code: 961cdb19 14000002 961cdb17 d343ff68 (387c6908) ---[ end trace 5740fb67e385abe1 ]--- ---------------- Code disassembly (best guess): 0: 961cdb19 bl 0xfffffffff8736c64 4: 14000002 b 0xc 8: 961cdb17 bl 0xfffffffff8736c64 c: d343ff68 lsr x8, x27, #3 * 10: 387c6908 ldrb w8, [x8, x28] <-- trapping instruction