================================================================== BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6061 Free of addr ffff88802adb2b00 by task syz-executor/5636 CPU: 1 UID: 0 PID: 5636 Comm: syz-executor 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:ptep_get include/linux/pgtable.h:495 [inline] RIP: 0010:copy_pte_range mm/memory.c:1372 [inline] RIP: 0010:copy_pmd_range+0x865/0x5c00 mm/memory.c:1490 Code: a7 ff 49 89 de 31 db 4c 89 f0 48 c1 e8 03 48 89 44 24 18 42 80 3c 38 00 74 08 4c 89 f7 e8 53 ee 18 00 4c 89 74 24 30 4d 8b 36 <4c> 89 74 24 58 4c 89 f6 48 83 e6 9f 31 ff e8 48 fc a7 ff 4c 89 f0 RSP: 0018:ffffc900043272e0 EFLAGS: 00000246 RAX: 1ffff1100bc9bbb8 RBX: 0000000000000010 RCX: ffff88807ef98000 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 000000000000001f RBP: ffffc90004327570 R08: ffff88801f5d7f8b R09: 1ffff11003ebaff1 R10: dffffc0000000000 R11: ffffed1003ebaff2 R12: 00007f37a2bb8000 R13: 00007f37a2bf3000 R14: 8400000065e63805 R15: dffffc0000000000 copy_pud_range mm/memory.c:1527 [inline] copy_p4d_range mm/memory.c:1551 [inline] copy_page_range+0xc7d/0x1280 mm/memory.c:1637 dup_mmap+0xf17/0x1dc0 mm/mmap.c:1819 dup_mm kernel/fork.c:1543 [inline] copy_mm+0x115/0x470 kernel/fork.c:1595 copy_process+0x1ecc/0x44b0 kernel/fork.c:2321 kernel_clone+0x2d7/0x940 kernel/fork.c:2785 __do_sys_clone kernel/fork.c:2927 [inline] __se_sys_clone kernel/fork.c:2911 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2911 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:0x7f37a29c7fd2 Code: 89 e7 e8 71 8b f7 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffe8457be10 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffe8457be10 RCX: 00007f37a29c7fd2 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffe8457bf9c R08: 0000000000000000 R09: 0000000000000001 R10: 00005555744647d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000000927c0 R14: 0000000000048e4d R15: 00007ffe8457bff0 Allocated by task 12: 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 5636: 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 __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 ffff88802adb2b00 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88802adb2b00, ffff88802adb2b40) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802adb2780 pfn:0x2adb2 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801c0418c0 ffffea0001f38450 ffffea0001580c50 raw: ffff88802adb2780 000000000020001d 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 8631182438 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] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5559 _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:775 driver_register+0x23a/0x320 drivers/base/driver.c:174 usb_register_driver+0x1e4/0x390 drivers/usb/core/driver.c:1082 do_one_initcall+0x250/0x870 init/main.c:1362 do_initcall_level+0x10a/0x1a0 init/main.c:1424 do_initcalls+0x59/0xa0 init/main.c:1440 kernel_init_freeable+0x29d/0x3e0 init/main.c:1675 page_owner free stack trace missing Memory state around the buggy address: ffff88802adb2a00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802adb2a80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff88802adb2b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88802adb2b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802adb2c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: a7 cmpsl %es:(%rdi),%ds:(%rsi) 1: ff 49 89 decl -0x77(%rcx) 4: de 31 fidivs (%rcx) 6: db 4c 89 f0 fisttpl -0x10(%rcx,%rcx,4) a: 48 c1 e8 03 shr $0x3,%rax e: 48 89 44 24 18 mov %rax,0x18(%rsp) 13: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 18: 74 08 je 0x22 1a: 4c 89 f7 mov %r14,%rdi 1d: e8 53 ee 18 00 call 0x18ee75 22: 4c 89 74 24 30 mov %r14,0x30(%rsp) 27: 4d 8b 36 mov (%r14),%r14 * 2a: 4c 89 74 24 58 mov %r14,0x58(%rsp) <-- trapping instruction 2f: 4c 89 f6 mov %r14,%rsi 32: 48 83 e6 9f and $0xffffffffffffff9f,%rsi 36: 31 ff xor %edi,%edi 38: e8 48 fc a7 ff call 0xffa7fc85 3d: 4c 89 f0 mov %r14,%rax