================================================================== BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6182 Free of addr ffff88802d7c2300 by task syz.1.7125/413 CPU: 1 UID: 0 PID: 413 Comm: syz.1.7125 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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:unwind_next_frame+0xd09/0x2550 arch/x86/kernel/unwind_orc.c:645 Code: 18 74 08 48 89 df e8 56 25 c8 00 48 8b 04 24 48 89 03 ba 10 00 00 00 49 8d 5e 50 48 89 df 31 f6 e8 1c 27 c8 00 48 8b 54 24 08 c7 04 00 00 48 89 5c 24 48 49 8d 7e 08 48 89 fb 48 c1 eb 03 42 RSP: 0000:ffffc90006067200 EFLAGS: 00000202 RAX: ffffc900060672f8 RBX: ffffc900060672f8 RCX: 0000000000000000 RDX: ffffffff9264b3e8 RSI: 0000000000000000 RDI: ffffc90006067308 RBP: 1ffffffff24c967d R08: ffffc90006067307 R09: ffffc900060672f8 R10: dffffc0000000000 R11: fffff52000c0ce61 R12: dffffc0000000000 R13: ffffffff9264b3e4 R14: ffffc900060672a8 R15: ffffc900060672f0 arch_stack_walk+0x11b/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122 save_stack+0x122/0x230 mm/page_owner.c:183 __set_page_owner+0x8d/0x4c0 mm/page_owner.c:359 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_pages_mpol+0x21e/0x390 mm/mempolicy.c:2513 folio_alloc_mpol_noprof+0x39/0x160 mm/mempolicy.c:2532 vma_alloc_folio_noprof+0xe1/0x1e0 mm/mempolicy.c:2567 folio_prealloc mm/memory.c:-1 [inline] wp_page_copy mm/memory.c:4080 [inline] do_wp_page+0x115b/0x4c30 mm/memory.c:4550 handle_pte_fault mm/memory.c:6692 [inline] __handle_mm_fault mm/memory.c:6817 [inline] handle_mm_fault+0x19c9/0x2f80 mm/memory.c:6984 do_user_addr_fault+0xb35/0x1480 arch/x86/mm/fault.c:1343 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f1d88c56918 Code: 85 ed 74 3b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 47 0f b6 0c 08 45 84 c9 74 08 <45> 88 0c 00 49 8b 47 10 48 83 c0 01 49 89 47 10 83 e9 01 73 d3 41 RSP: 002b:00007f1d89c95460 EFLAGS: 00010202 RAX: 0000000000434ff8 RBX: 00007f1d89c95520 RCX: 0000000000000003 RDX: 0000000000000fff RSI: 0000000000001000 RDI: 00007f1d89c955c0 RBP: 0000000000000004 R08: 00007f1d7ea00000 R09: 0000000000000004 R10: 00002000000024c2 R11: 00000000000023ce R12: 0000000000000c01 R13: 00007f1d88e589c0 R14: 0000000000000017 R15: 00007f1d89c955c0 Allocated by task 17572: 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+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 413: 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 ffff88802d7c2300 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88802d7c2300, ffff88802d7c2340) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2d7c2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff258c0 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 13540811015 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] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] kobject_create lib/kobject.c:768 [inline] kobject_create_and_add+0x58/0x230 lib/kobject.c:794 module_create_drivers_dir drivers/base/module.c:29 [inline] module_add_driver+0x216/0x320 drivers/base/module.c:68 bus_add_driver+0x3e5/0x6e0 drivers/base/bus.c:786 driver_register+0x23a/0x320 drivers/base/driver.c:174 usb_register_driver+0x1e4/0x390 drivers/usb/core/driver.c:1083 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_owner free stack trace missing Memory state around the buggy address: ffff88802d7c2200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88802d7c2280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88802d7c2300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88802d7c2380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88802d7c2400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: 18 74 08 48 sbb %dh,0x48(%rax,%rcx,1) 4: 89 df mov %ebx,%edi 6: e8 56 25 c8 00 call 0xc82561 b: 48 8b 04 24 mov (%rsp),%rax f: 48 89 03 mov %rax,(%rbx) 12: ba 10 00 00 00 mov $0x10,%edx 17: 49 8d 5e 50 lea 0x50(%r14),%rbx 1b: 48 89 df mov %rbx,%rdi 1e: 31 f6 xor %esi,%esi 20: e8 1c 27 c8 00 call 0xc82741 25: 48 8b 54 24 08 mov 0x8(%rsp),%rdx * 2a: e9 c7 04 00 00 jmp 0x4f6 <-- trapping instruction 2f: 48 89 5c 24 48 mov %rbx,0x48(%rsp) 34: 49 8d 7e 08 lea 0x8(%r14),%rdi 38: 48 89 fb mov %rdi,%rbx 3b: 48 c1 eb 03 shr $0x3,%rbx 3f: 42 rex.X