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:3783 [inline] BUG: KASAN: use-after-free in __dev_queue_xmit+0x611/0x35d0 net/core/dev.c:4048 Read of size 8 at addr ffff8880436c0c48 by task aoe_tx0/1235 CPU: 0 PID: 1235 Comm: aoe_tx0 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 print_address_description+0x65/0x3a0 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report+0x19a/0x1f0 mm/kasan/report.c:459 skb_update_prio net/core/dev.c:3783 [inline] __dev_queue_xmit+0x611/0x35d0 net/core/dev.c:4048 tx+0x6f/0x110 drivers/block/aoe/aoenet.c:63 kthread+0x241/0x450 drivers/block/aoe/aoecmd.c:1230 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Allocated by task 0: (stack is not available) Freed by task 3662: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x126/0x180 mm/kasan/common.c:367 kasan_slab_free include/linux/kasan.h:236 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1754 slab_free mm/slub.c:3509 [inline] kfree+0xb8/0x2e0 mm/slub.c:4562 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x3d5/0x500 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb+0x56/0x1d0 net/core/skbuff.c:756 nsim_dev_trap_report drivers/net/netdevsim/dev.c:818 [inline] nsim_dev_trap_report_work+0x7c6/0xaf0 drivers/net/netdevsim/dev.c:843 process_one_work+0x850/0x1130 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 The buggy address belongs to the object at ffff8880436c0000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3144 bytes inside of 4096-byte region [ffff8880436c0000, ffff8880436c1000) The buggy address belongs to the page: page:ffffea00010db000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x436c0 head:ffffea00010db000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888011442140 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 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3662, ts 132762093116, free_ts 132700238781 prep_new_page mm/page_alloc.c:2418 [inline] get_page_from_freelist+0x729/0x9e0 mm/page_alloc.c:4149 __alloc_pages+0x255/0x580 mm/page_alloc.c:5369 alloc_slab_page mm/slub.c:1799 [inline] allocate_slab+0xce/0x3f0 mm/slub.c:1944 new_slab mm/slub.c:2004 [inline] ___slab_alloc+0x3fe/0xc30 mm/slub.c:3018 __slab_alloc mm/slub.c:3105 [inline] slab_alloc_node mm/slub.c:3196 [inline] __kmalloc_node_track_caller+0x2df/0x400 mm/slub.c:4957 kmalloc_reserve net/core/skbuff.c:354 [inline] __alloc_skb+0x127/0x5a0 net/core/skbuff.c:426 alloc_skb include/linux/skbuff.h:1158 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:745 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:802 [inline] nsim_dev_trap_report_work+0x264/0xaf0 drivers/net/netdevsim/dev.c:843 process_one_work+0x850/0x1130 kernel/workqueue.c:2307 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1338 [inline] free_pcp_prepare+0xd1c/0xe00 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3309 [inline] free_unref_page+0x7d/0x580 mm/page_alloc.c:3388 free_large_kmalloc mm/slub.c:3548 [inline] kfree+0x279/0x2e0 mm/slub.c:4558 device_release+0x98/0x1c0 kobject_cleanup+0x1c0/0x280 lib/kobject.c:705 netdev_run_todo+0xb6f/0xd00 net/core/dev.c:9967 unregister_netdev+0x1a0/0x210 net/core/dev.c:10469 tty_ldisc_hangup+0x1a6/0x610 drivers/tty/tty_ldisc.c:700 __tty_hangup+0x4e5/0x730 drivers/tty/tty_io.c:637 tty_vhangup drivers/tty/tty_io.c:707 [inline] tty_ioctl+0x8b7/0x1830 drivers/tty/tty_io.c:2718 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae Memory state around the buggy address: ffff8880436c0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880436c0b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880436c0c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880436c0c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880436c0d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================