================================================================== BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6061 Free of addr ffff88802c562c80 by task syz.3.430/7862 CPU: 1 UID: 0 PID: 7862 Comm: syz.3.430 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:is_kfence_address include/linux/kfence.h:58 [inline] RIP: 0010:kfence_free include/linux/kfence.h:185 [inline] RIP: 0010:slab_free_hook mm/slub.c:2686 [inline] RIP: 0010:slab_free mm/slub.c:6509 [inline] RIP: 0010:kmem_cache_free+0x107/0x650 mm/slub.c:6636 Code: ed 8b 6b 08 8b 73 1c 4c 89 e7 e8 a4 e7 75 ff f6 43 09 08 75 0b 8b 73 1c 4c 89 e7 e8 e3 ec c0 02 48 8b 05 dc 3e 4e 0f 4c 89 e1 <48> 29 c1 48 81 f9 00 00 20 00 0f 93 c1 48 85 c0 0f 94 c0 08 c8 0f RSP: 0018:ffffc900050c75e8 EFLAGS: 00000292 RAX: ffff88823be00000 RBX: ffff88814040f000 RCX: ffff888078e1d850 RDX: 0000000000000001 RSI: ffffffff8e486f08 RDI: 00000000ffffffff RBP: 000000000043a100 R08: ffffffff917c12bf R09: 1ffffffff22f8257 R10: dffffc0000000000 R11: fffffbfff22f8258 R12: ffff888078e1d850 R13: 0000000000000000 R14: ffffea0001e38740 R15: ffffffff8225379d anon_vma_chain_free mm/rmap.c:147 [inline] unlink_anon_vmas+0x35d/0x720 mm/rmap.c:518 free_pgtables+0x663/0xb70 mm/memory.c:401 exit_mmap+0x4aa/0x9f0 mm/mmap.c:1327 __mmput+0x118/0x420 kernel/fork.c:1193 exit_mm+0x18e/0x240 kernel/exit.c:586 do_exit+0x6a8/0x2360 kernel/exit.c:967 do_group_exit+0x22d/0x2f0 kernel/exit.c:1123 get_signal+0x1216/0x12c0 kernel/signal.c:3112 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f85bf39f559 Code: Unable to access opcode bytes at 0x7f85bf39f52f. RSP: 002b:00007f85c022f0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f85bf626098 RCX: 00007f85bf39f559 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f85bf626098 RBP: 00007f85bf626090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f85bf626128 R14: 00007ffe170d50e0 R15: 00007ffe170d51c8 Allocated by task 13: 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 5633: 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 ffff88802c562c80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88802c562c80, ffff88802c562cc0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802c562d80 pfn:0x2c562 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801c0418c0 ffffea0000b20bd0 ffffea00015e0d50 raw: ffff88802c562d80 000000000020000f 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 10886549496 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] __component_add+0x59/0x520 drivers/base/component.c:735 usb_hub_create_port_device+0x4b7/0xc40 drivers/usb/core/port.c:806 hub_configure drivers/usb/core/hub.c:1744 [inline] hub_probe+0x26bc/0x3c00 drivers/usb/core/hub.c:2011 usb_probe_interface+0x788/0xe50 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:706 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:503 page_owner free stack trace missing Memory state around the buggy address: ffff88802c562b80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff88802c562c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88802c562c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88802c562d00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802c562d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: ed in (%dx),%eax 1: 8b 6b 08 mov 0x8(%rbx),%ebp 4: 8b 73 1c mov 0x1c(%rbx),%esi 7: 4c 89 e7 mov %r12,%rdi a: e8 a4 e7 75 ff call 0xff75e7b3 f: f6 43 09 08 testb $0x8,0x9(%rbx) 13: 75 0b jne 0x20 15: 8b 73 1c mov 0x1c(%rbx),%esi 18: 4c 89 e7 mov %r12,%rdi 1b: e8 e3 ec c0 02 call 0x2c0ed03 20: 48 8b 05 dc 3e 4e 0f mov 0xf4e3edc(%rip),%rax # 0xf4e3f03 27: 4c 89 e1 mov %r12,%rcx * 2a: 48 29 c1 sub %rax,%rcx <-- trapping instruction 2d: 48 81 f9 00 00 20 00 cmp $0x200000,%rcx 34: 0f 93 c1 setae %cl 37: 48 85 c0 test %rax,%rax 3a: 0f 94 c0 sete %al 3d: 08 c8 or %cl,%al 3f: 0f .byte 0xf