ieee802154 phy0 wpan0: encryption failed: -22 ================================================================== BUG: KASAN: slab-use-after-free in skb_update_prio net/core/dev.c:3859 [inline] BUG: KASAN: slab-use-after-free in __dev_queue_xmit+0x37ef/0x3d60 net/core/dev.c:4276 Read of size 8 at addr ffff88803a150bb0 by task aoe_tx0/1223 CPU: 1 PID: 1223 Comm: aoe_tx0 Not tainted 6.7.0-syzkaller-00119-g5db8752c3b81 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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:3859 [inline] __dev_queue_xmit+0x37ef/0x3d60 net/core/dev.c:4276 dev_queue_xmit include/linux/netdevice.h:3134 [inline] tx+0x76/0x100 drivers/block/aoe/aoenet.c:62 kthread+0x1e9/0x3c0 drivers/block/aoe/aoecmd.c:1229 kthread+0x2c6/0x3a0 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:242 Allocated by task 2939: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc_node+0x5c/0x90 mm/slab_common.c:1014 kmalloc_node include/linux/slab.h:620 [inline] kvmalloc_node+0x99/0x1a0 mm/util.c:617 kvmalloc include/linux/slab.h:738 [inline] kvzalloc include/linux/slab.h:746 [inline] alloc_netdev_mqs+0x9b/0x1290 net/core/dev.c:10786 sl_alloc drivers/net/slip/slip.c:756 [inline] slip_open+0x35d/0x1130 drivers/net/slip/slip.c:817 tty_ldisc_open+0x98/0x110 drivers/tty/tty_ldisc.c:432 tty_set_ldisc+0x2e2/0x680 drivers/tty/tty_ldisc.c:557 tiocsetd drivers/tty/tty_io.c:2435 [inline] tty_ioctl+0xbda/0x1580 drivers/tty/tty_io.c:2716 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Freed by task 2937: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0xc0/0x180 mm/slub.c:3822 kvfree+0x47/0x50 mm/util.c:663 device_release+0xa1/0x240 drivers/base/core.c:2485 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+0x840/0x12e0 net/core/dev.c:10541 slip_close+0x165/0x1c0 drivers/net/slip/slip.c:906 tty_ldisc_close+0x111/0x190 drivers/tty/tty_ldisc.c:455 tty_ldisc_kill+0x8e/0x150 drivers/tty/tty_ldisc.c:607 tty_ldisc_release+0x116/0x2a0 drivers/tty/tty_ldisc.c:775 tty_release_struct+0x23/0xe0 drivers/tty/tty_io.c:1692 tty_release+0xe2c/0x1420 drivers/tty/tty_io.c:1863 __fput+0x270/0xb70 fs/file_table.c:382 __fput_sync+0x47/0x50 fs/file_table.c:467 __do_sys_close fs/open.c:1554 [inline] __se_sys_close fs/open.c:1539 [inline] __x64_sys_close+0x87/0xf0 fs/open.c:1539 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff88803a150000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 2992 bytes inside of freed 4096-byte region [ffff88803a150000, ffff88803a151000) The buggy address belongs to the physical page: page:ffffea0000e85400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3a150 head:ffffea0000e85400 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88803a529c41 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff88801304f500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000040004 00000001ffffffff ffff88803a529c41 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 24227, tgid 24224 (syz-executor.5), ts 1049095186944, free_ts 1049090843250 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab mm/slub.c:2017 [inline] new_slab+0x283/0x3c0 mm/slub.c:2070 ___slab_alloc+0x979/0x1500 mm/slub.c:3223 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x131/0x310 mm/slub.c:3517 kmalloc_trace+0x25/0x60 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] snmp6_alloc_dev net/ipv6/addrconf.c:356 [inline] ipv6_add_dev+0x58f/0x13e0 net/ipv6/addrconf.c:406 addrconf_notify+0x561/0x1920 net/ipv6/addrconf.c:3593 notifier_call_chain+0xb6/0x3b0 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x130 net/core/dev.c:1967 call_netdevice_notifiers_extack net/core/dev.c:2005 [inline] call_netdevice_notifiers net/core/dev.c:2019 [inline] register_netdevice+0x16d3/0x1da0 net/core/dev.c:10254 br_dev_newlink+0x27/0x110 net/bridge/br_netlink.c:1562 rtnl_newlink_create net/core/rtnetlink.c:3521 [inline] __rtnl_newlink+0x1173/0x1930 net/core/rtnetlink.c:3741 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2487 __unfreeze_partials+0x226/0x240 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x195/0x310 mm/slub.c:3517 kmalloc_trace+0x25/0x60 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline] netdevice_event+0x367/0x9a0 drivers/infiniband/core/roce_gid_mgmt.c:802 notifier_call_chain+0xb6/0x3b0 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x130 net/core/dev.c:1967 call_netdevice_notifiers_extack net/core/dev.c:2005 [inline] call_netdevice_notifiers net/core/dev.c:2019 [inline] __dev_notify_flags+0x12d/0x2e0 net/core/dev.c:8647 rtnl_configure_link+0x1b3/0x260 net/core/rtnetlink.c:3342 rtnl_newlink_create net/core/rtnetlink.c:3529 [inline] __rtnl_newlink+0x11a7/0x1930 net/core/rtnetlink.c:3741 rtnl_newlink+0x67/0xa0 net/core/rtnetlink.c:3754 rtnetlink_rcv_msg+0x3c7/0xe00 net/core/rtnetlink.c:6558 Memory state around the buggy address: ffff88803a150a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803a150b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803a150b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803a150c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803a150c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================