==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6061
Free of addr ffff8880276a5c80 by task syz.4.1113/10611
CPU: 0 UID: 0 PID: 10611 Comm: syz.4.1113 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:lock_release+0x2e1/0x3c0 kernel/locking/lockdep.c:5968
Code: e9 f7 12 00 00 00 00 eb b5 e8 4b 98 50 0a f7 c3 00 02 00 00 74 b9 65 48 8b 05 53 a2 f7 12 48 3b 44 24 28 75 48 fb 48 83 c4 30 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d 3d a8 a4 db
RSP: 0018:ffffc90005aaf318 EFLAGS: 00000286
RAX: aa835b1f3d5b7400 RBX: 0000000000000206 RCX: 8000000000000001
RDX: 0000000000000000 RSI: ffffffff8e70fdbb RDI: ffffffff8c6e1780
RBP: ffff88807f962b68 R08: ffff88801f47895f R09: 1ffff11003e8f12b
R10: dffffc0000000000 R11: ffffed1003e8f12c R12: 0000000000000003
R13: 0000000000000003 R14: ffffffff8fd59ca0 R15: ffff88807f961f40
rcu_lock_release include/linux/rcupdate.h:319 [inline]
rcu_read_unlock include/linux/rcupdate.h:880 [inline]
page_table_check_clear+0x49d/0x500 mm/page_table_check.c:89
ptep_get_and_clear_full arch/x86/include/asm/jump_label.h:-1 [inline]
get_and_clear_full_ptes include/linux/pgtable.h:879 [inline]
zap_present_folio_ptes mm/memory.c:1779 [inline]
zap_present_ptes mm/memory.c:1861 [inline]
do_zap_pte_range mm/memory.c:1963 [inline]
zap_pte_range mm/memory.c:2065 [inline]
zap_pmd_range mm/memory.c:2151 [inline]
zap_pud_range mm/memory.c:2179 [inline]
zap_p4d_range mm/memory.c:2200 [inline]
__zap_vma_range+0x3a12/0x4f70 mm/memory.c:2240
unmap_vmas+0x38b/0x550 mm/memory.c:2309
exit_mmap+0x293/0x9f0 mm/mmap.c:1315
__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:0x7f21e2d9f559
Code: Unable to access opcode bytes at 0x7f21e2d9f52f.
RSP: 002b:00007f21e3b800e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f21e3026098 RCX: 00007f21e2d9f559
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f21e3026098
RBP: 00007f21e3026090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f21e3026128 R14: 00007ffd4bae14e0 R15: 00007ffd4bae15c8
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 10611:
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 ffff8880276a5c80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
64-byte region [ffff8880276a5c80, ffff8880276a5cc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880276a5880 pfn:0x276a5
flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000200 ffff88801c0418c0 ffffea0001e18290 ffffea0000705390
raw: ffff8880276a5880 0000000000200018 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 151, tgid 151 (kworker/u8:6), ts 8601020104
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_node_noprof+0x548/0x720 mm/slub.c:5426
_kmalloc_node_noprof include/linux/slab.h:1200 [inline]
__vmalloc_area_node mm/vmalloc.c:3893 [inline]
__vmalloc_node_range_noprof+0x5b4/0x1540 mm/vmalloc.c:4104
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4165
alloc_thread_stack_node kernel/fork.c:359 [inline]
dup_task_struct+0x2c6/0xa00 kernel/fork.c:930
copy_process+0x7ea/0x44b0 kernel/fork.c:2143
kernel_clone+0x2d7/0x940 kernel/fork.c:2785
user_mode_thread+0x115/0x180 kernel/fork.c:2862
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
page last free pid 151 tgid 151 ts 8600991603 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__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:2145
__get_vm_area_node+0x200/0x2f0 mm/vmalloc.c:3248
__vmalloc_node_range_noprof+0x343/0x1540 mm/vmalloc.c:4064
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4165
alloc_thread_stack_node kernel/fork.c:359 [inline]
dup_task_struct+0x2c6/0xa00 kernel/fork.c:930
copy_process+0x7ea/0x44b0 kernel/fork.c:2143
kernel_clone+0x2d7/0x940 kernel/fork.c:2785
user_mode_thread+0x115/0x180 kernel/fork.c:2862
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:
ffff8880276a5b80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
ffff8880276a5c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8880276a5c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff8880276a5d00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
ffff8880276a5d80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: e9 f7 12 00 00 jmp 0x12fc
5: 00 00 add %al,(%rax)
7: eb b5 jmp 0xffffffbe
9: e8 4b 98 50 0a call 0xa509859
e: f7 c3 00 02 00 00 test $0x200,%ebx
14: 74 b9 je 0xffffffcf
16: 65 48 8b 05 53 a2 f7 mov %gs:0x12f7a253(%rip),%rax # 0x12f7a271
1d: 12
1e: 48 3b 44 24 28 cmp 0x28(%rsp),%rax
23: 75 48 jne 0x6d
25: fb sti
26: 48 83 c4 30 add $0x30,%rsp
* 2a: 5b pop %rbx <-- trapping instruction
2b: 41 5c pop %r12
2d: 41 5d pop %r13
2f: 41 5e pop %r14
31: 41 5f pop %r15
33: 5d pop %rbp
34: c3 ret
35: cc int3
36: cc int3
37: cc int3
38: cc int3
39: cc int3
3a: 48 rex.W
3b: 8d .byte 0x8d
3c: 3d .byte 0x3d
3d: a8 a4 test $0xa4,%al
3f: db .byte 0xdb