================================================================== BUG: KASAN: slab-use-after-free in mini_qdisc_pair_swap+0x138/0x158 net/sched/sch_generic.c:1618 Write of size 8 at addr ffff0000cb6cbac8 by task syz.2.809/8624 CPU: 1 UID: 0 PID: 8624 Comm: syz.2.809 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_store8_noabort+0x20/0x2c mm/kasan/report_generic.c:386 mini_qdisc_pair_swap+0x138/0x158 net/sched/sch_generic.c:1618 clsact_chain_head_change+0x28/0x38 net/sched/sch_ingress.c:60 tcf_chain_head_change_item net/sched/cls_api.c:537 [inline] tcf_chain0_head_change+0x100/0x16c net/sched/cls_api.c:551 tcf_chain_tp_insert net/sched/cls_api.c:1922 [inline] tcf_chain_tp_insert_unique+0x544/0x5d8 net/sched/cls_api.c:1971 tc_new_tfilter+0xf6c/0x1320 net/sched/cls_api.c:2405 rtnetlink_rcv_msg+0x66c/0x9bc net/core/rtnetlink.c:7132 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2556 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:7159 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x600/0x7f8 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:815 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2713 ___sys_sendmsg+0x198/0x224 net/socket.c:2767 __sys_sendmsg+0x158/0x204 net/socket.c:2799 __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2802 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Allocated by task 8302: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_node_noprof+0x444/0x6e4 mm/slub.c:5426 _kmalloc_node_noprof include/linux/slab.h:1200 [inline] qdisc_alloc+0x8c/0x7b0 net/sched/sch_generic.c:998 qdisc_create+0x84/0xb78 net/sched/sch_api.c:1293 __tc_modify_qdisc net/sched/sch_api.c:1766 [inline] tc_modify_qdisc+0x106c/0x17a8 net/sched/sch_api.c:1847 rtnetlink_rcv_msg+0x630/0x9bc net/core/rtnetlink.c:7141 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2556 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:7159 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x600/0x7f8 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:815 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2713 ___sys_sendmsg+0x198/0x224 net/socket.c:2767 __sys_sendmsg+0x158/0x204 net/socket.c:2799 __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2802 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Freed by task 23: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_free_info+0x54/0x6c mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x188/0x698 mm/slub.c:6792 qdisc_free+0xac/0xd0 net/sched/sch_generic.c:1096 qdisc_free_cb+0x20/0x30 net/sched/sch_generic.c:1103 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x748/0x1178 kernel/rcu/tree.c:2919 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2936 handle_softirqs+0x2ec/0xd98 kernel/softirq.c:645 run_ksoftirqd+0x70/0xbc kernel/softirq.c:1108 smpboot_thread_fn+0x4e4/0x97c kernel/smpboot.c:160 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:838 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:57 kasan_record_aux_stack+0xb0/0xc8 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3181 [inline] call_rcu+0x104/0x75c kernel/rcu/tree.c:3301 __qdisc_destroy+0x2fc/0x634 net/sched/sch_generic.c:1130 qdisc_destroy+0x60/0x88 net/sched/sch_generic.c:1138 qdisc_graft+0xa28/0x10e4 net/sched/sch_api.c:1171 __tc_modify_qdisc net/sched/sch_api.c:1791 [inline] tc_modify_qdisc+0x10e4/0x17a8 net/sched/sch_api.c:1847 rtnetlink_rcv_msg+0x630/0x9bc net/core/rtnetlink.c:7141 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2556 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:7159 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x600/0x7f8 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:815 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2713 ___sys_sendmsg+0x198/0x224 net/socket.c:2767 __sys_sendmsg+0x158/0x204 net/socket.c:2799 __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2802 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 The buggy address belongs to the object at ffff0000cb6cb800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 712 bytes inside of freed 1024-byte region [ffff0000cb6cb800, ffff0000cb6cbc00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000cb6ce000 pfn:0x10b6c8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000240 ffff0000c0001dc0 fffffdffc35b5a10 fffffdffc314f010 raw: ffff0000cb6ce000 0000000000100009 00000000f5000000 0000000000000000 head: 05ffc00000000240 ffff0000c0001dc0 fffffdffc35b5a10 fffffdffc314f010 head: ffff0000cb6ce000 0000000000100009 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc32db201 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cb6cb980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000cb6cba00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000cb6cba80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000cb6cbb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000cb6cbb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================