================================================================== BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6182 Free of addr ffff88802a05ff80 by task syz-executor/17883 CPU: 1 UID: 0 PID: 17883 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:2725 [inline] __rcu_free_sheaf_prepare+0x10a/0x2a0 mm/slub.c:3041 rcu_free_sheaf+0x31/0x200 mm/slub.c:6182 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:7669 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 85 d9 8b f5 e8 e0 88 c7 f5 fb bf 01 00 00 00 95 a1 ff ff 9c 58 fa a9 00 02 00 00 74 05 e8 a6 8a c7 f5 bf 01 RSP: 0018:ffffc90005ce7638 EFLAGS: 00000206 RAX: 0000000000527547 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000006 RSI: ffffffff8e6ac4de RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff91be3bbf R09: 1ffffffff237c777 R10: dffffc0000000000 R11: fffffbfff237c778 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:lock_acquire+0x232/0x350 kernel/locking/lockdep.c:5947 Code: ff ff ff e8 50 7c 64 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 f2 45 3e 13 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 0f 90 67 0a cc 48 8d 3d 37 4c 1d RSP: 0018:ffffc90005ce7750 EFLAGS: 00000296 RAX: 2f57da5ec5451000 RBX: 0000000000000000 RCX: 0000000000000046 RDX: 00000000d2c02475 RSI: ffffffff8e93966e RDI: ffffffff8c8e9880 RBP: ffff888027feddc0 R08: ffffffff81d9dd96 R09: 0000000000000000 R10: ffffc90005ce7878 R11: ffffffff81b3b350 R12: ffffffff9015a260 R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:309 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] is_bpf_text_address+0x47/0x2b0 kernel/bpf/core.c:756 kernel_text_address+0xa5/0xe0 kernel/extable.c:125 __kernel_text_address+0xd/0x30 kernel/extable.c:79 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:385 arch_stack_walk+0xfb/0x150 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3287 [inline] call_rcu+0x86/0x300 kernel/rcu/tree.c:3395 slab_free_hook mm/slub.c:2744 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x471/0x650 mm/slub.c:6757 sk_prot_free net/core/sock.c:2332 [inline] __sk_destruct+0x79c/0xa30 net/core/sock.c:2434 inet_release+0x143/0x190 net/ipv4/af_inet.c:443 __sock_release+0xa0/0x1f0 net/socket.c:735 sock_close+0x1c/0x30 net/socket.c:1529 __fput+0x408/0xa40 fs/file_table.c:512 fput_close_sync+0x11f/0x240 fs/file_table.c:618 filp_close_sync fs/open.c:1574 [inline] __do_sys_close fs/open.c:1597 [inline] __se_sys_close+0xa2/0x160 fs/open.c:1584 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6799f69d8e 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:00007ffef6c2b728 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000555557b4d500 RCX: 00007f6799f69d8e RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007ffef6c2b7cc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000001ed R13: 00000000000927c0 R14: 00000000000eed14 R15: 00007ffef6c2b820 Allocated by task 22204: 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:5680 _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 net/mac802154/driver-ops.h:195 [inline] mac802154_slave_open net/mac802154/iface.c:196 [inline] mac802154_wpan_open+0x194b/0x29d0 net/mac802154/iface.c:295 __dev_open+0x46f/0x850 net/core/dev.c:1762 __dev_change_flags+0x329/0x820 net/core/dev.c:10068 netif_change_flags+0x7c/0x1b0 net/core/dev.c:10133 do_setlink+0xdd6/0x47a0 net/core/rtnetlink.c:3294 rtnl_group_changelink net/core/rtnetlink.c:3956 [inline] __rtnl_newlink net/core/rtnetlink.c:4122 [inline] rtnl_newlink+0x147c/0x1c30 net/core/rtnetlink.c:4252 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7169 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2585 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1362 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x49f/0x790 net/socket.c:2713 ___sys_sendmsg+0x2f8/0x3d0 net/socket.c:2770 __sys_sendmsg net/socket.c:2802 [inline] __do_sys_sendmsg net/socket.c:2807 [inline] __se_sys_sendmsg net/socket.c:2805 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2805 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 29096: 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:2780 [inline] __rcu_free_sheaf_prepare+0x12d/0x2a0 mm/slub.c:3041 rcu_free_sheaf+0x31/0x200 mm/slub.c:6182 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 The buggy address belongs to the object at ffff88802a05ff80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88802a05ff80, ffff88802a05ffc0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a05f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff278c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000200020 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 8027482056 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0x225d/0x22e0 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5492 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] kobject_get_path+0xc5/0x2f0 lib/kobject.c:161 kobject_uevent_env+0x29e/0x9e0 lib/kobject_uevent.c:548 driver_register+0x2d4/0x320 drivers/base/driver.c:182 phy_driver_register+0x198/0x300 drivers/net/phy/phy_device.c:4025 phy_drivers_register+0x3f/0xd0 drivers/net/phy/phy_device.c:4049 do_one_initcall+0x250/0x870 init/main.c:1419 do_initcall_level+0x10a/0x1a0 init/main.c:1481 do_initcalls+0x59/0xa0 init/main.c:1497 kernel_init_freeable+0x29d/0x3e0 init/main.c:1732 page last free pid 326 tgid 326 ts 8025896925 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2958 __kasan_populate_vmalloc_do mm/kasan/shadow.c:393 [inline] __kasan_populate_vmalloc+0x1a8/0x1c0 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:580 [inline] alloc_vmap_area+0xd10/0x1410 mm/vmalloc.c:2151 __get_vm_area_node+0x200/0x2f0 mm/vmalloc.c:3281 __vmalloc_node_range_noprof+0x36e/0x16f0 mm/vmalloc.c:4112 __vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4213 alloc_thread_stack_node kernel/fork.c:359 [inline] dup_task_struct+0x2c6/0xa00 kernel/fork.c:931 copy_process+0x7ea/0x4510 kernel/fork.c:2150 kernel_clone+0x2d7/0x940 kernel/fork.c:2798 user_mode_thread+0x115/0x180 kernel/fork.c:2875 call_usermodehelper_exec_work+0x5c/0x230 kernel/umh.c:169 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 Memory state around the buggy address: ffff88802a05fe80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802a05ff00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88802a05ff80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88802a060000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802a060080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- 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 85 d9 8b f5 call 0xf58bd9a4 1f: e8 e0 88 c7 f5 call 0xf5c78904 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 95 a1 ff ff call 0xffffa1c4 <-- 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 a6 8a c7 f5 call 0xf5c78ae4 3e: bf .byte 0xbf 3f: 01 .byte 0x1