================================================================== BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6061 Free of addr ffff888093e35380 by task syz.3.2347/22026 CPU: 1 UID: 0 PID: 22026 Comm: syz.3.2347 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report_invalid_free+0xea/0x110 mm/kasan/report.c:557 check_slab_allocation mm/kasan/common.c:-1 [inline] __kasan_slab_pre_free+0x104/0x120 mm/kasan/common.c:272 kasan_slab_pre_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:2693 [inline] __rcu_free_sheaf_prepare+0x10a/0x2a0 mm/slub.c:3009 rcu_free_sheaf+0x31/0x200 mm/slub.c:6061 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:preempt_schedule_irq+0x46/0x90 kernel/sched/core.c:7662 Code: 49 be 00 00 00 00 00 fc ff df eb 09 48 f7 03 10 00 00 00 74 53 bf 01 00 00 00 e8 b5 9e 9f f5 e8 30 39 db f5 fb bf 01 00 00 00 35 a2 ff ff 9c 58 fa a9 00 02 00 00 74 05 e8 f6 3a db f5 bf 01 RSP: 0018:ffffc90004f2f198 EFLAGS: 00000202 RAX: 0000000000003cdf RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000006 RSI: ffffffff8e486f08 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff917c12bf R09: 1ffffffff22f8257 R10: dffffc0000000000 R11: fffffbfff22f8258 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 irqentry_exit_to_kernel_mode include/linux/irq-entry-common.h:543 [inline] irqentry_exit+0x14f/0x9b0 kernel/entry/common.c:154 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:check_kcov_mode kernel/kcov.c:181 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x49/0x80 kernel/kcov.c:213 Code: 29 89 d6 81 e6 00 01 00 0f 81 fe 00 01 00 00 40 0f 95 c6 81 fa 00 00 00 10 0f 93 c2 40 08 f2 75 35 83 b9 44 17 00 00 00 74 2c <8b> 91 18 17 00 00 83 fa 02 75 21 48 8b 91 20 17 00 00 48 8b 32 48 RSP: 0018:ffffc90004f2f2b8 EFLAGS: 00000246 RAX: ffffffff89fffd22 RBX: ffffc90004f2f4f0 RCX: ffff888053083e80 RDX: 8000000000000000 RSI: 000000000000007b RDI: 0000000000000057 RBP: ffffc90004f2f3d0 R08: ffffc90004f2f34f R09: 0000000000000000 R10: ffffc90004f2f320 R11: fffff520009e5e6a R12: 0000000000000057 R13: 0000000000000002 R14: 000000000000007b R15: ffffffff8e77cbf8 genl_op_iter_next+0x1c2/0xe30 net/netlink/genetlink.c:354 ctrl_fill_info+0x7f7/0xf50 net/netlink/genetlink.c:1252 ctrl_build_family_msg net/netlink/genetlink.c:1391 [inline] ctrl_getfamily+0x3f0/0x5c0 net/netlink/genetlink.c:1467 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2576 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2283 __do_sys_sendto net/socket.c:2290 [inline] __se_sys_sendto net/socket.c:2286 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2286 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd6de15fd8e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fd6df05fe88 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fd6df0616c0 RCX: 00007fd6de15fd8e RDX: 0000000000000020 RSI: 00007fd6df060000 RDI: 000000000000002f RBP: 0000000000000000 R08: 00007fd6df05ff04 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000002f R13: 00007fd6df05ff58 R14: 00007fd6df060000 R15: 0000000000000000 Allocated by task 6465: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] hwsim_update_pib+0x7e/0x400 drivers/net/ieee802154/mac802154_hwsim.c:103 hwsim_set_promiscuous_mode+0x196/0x2e0 drivers/net/ieee802154/mac802154_hwsim.c:326 drv_set_promiscuous_mode+0x154/0x2d0 net/mac802154/driver-ops.h:127 drv_start+0x4db/0x1000 net/mac802154/driver-ops.h:167 mac802154_scan_worker+0x8e6/0xe60 net/mac802154/scan.c:248 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 15: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] __rcu_free_sheaf_prepare+0x12d/0x2a0 mm/slub.c:3009 rcu_free_sheaf+0x31/0x200 mm/slub.c:6061 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1133 smpboot_thread_fn+0x5f8/0xb30 kernel/smpboot.c:162 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888093e35380 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff888093e35380, ffff888093e353c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888093e35f80 pfn:0x93e35 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801c0418c0 ffffea00016149d0 ffffea00014704d0 raw: ffff888093e35f80 0000000000200005 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 15668, tgid 15667 (syz.3.1097), ts 359715573971 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7418 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] hash_ipport4_resize+0xadb/0x1bb0 net/netfilter/ipset/ip_set_hash_gen.h:859 call_ad+0x43a/0xb50 net/netfilter/ipset/ip_set_core.c:1777 ip_set_ad+0x82a/0x9d0 net/netfilter/ipset/ip_set_core.c:1861 nfnetlink_rcv_msg+0xcc2/0x12b0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2576 nfnetlink_rcv+0x2b9/0x28c0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 page_owner free stack trace missing Memory state around the buggy address: ffff888093e35280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888093e35300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888093e35380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888093e35400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888093e35480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 7: fc ff df a: eb 09 jmp 0x15 c: 48 f7 03 10 00 00 00 testq $0x10,(%rbx) 13: 74 53 je 0x68 15: bf 01 00 00 00 mov $0x1,%edi 1a: e8 b5 9e 9f f5 call 0xf59f9ed4 1f: e8 30 39 db f5 call 0xf5db3954 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 35 a2 ff ff call 0xffffa264 <-- trapping instruction 2f: 9c pushf 30: 58 pop %rax 31: fa cli 32: a9 00 02 00 00 test $0x200,%eax 37: 74 05 je 0x3e 39: e8 f6 3a db f5 call 0xf5db3b34 3e: bf .byte 0xbf 3f: 01 .byte 0x1