================================================================== BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6182 Free of addr ffff88807ee80d80 by task syz-executor/12664 CPU: 1 UID: 0 PID: 12664 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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: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 common_interrupt+0xbb/0xe0 arch/x86/kernel/irq.c:273 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:665 RIP: 0010:lock_acquire+0x232/0x350 kernel/locking/lockdep.c:5947 Code: ff ff ff e8 00 96 74 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 02 50 46 13 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d 3d a7 aa 1f RSP: 0018:ffffc90003a47d18 EFLAGS: 00000286 RAX: 9f423e5764ade900 RBX: 0000000000000000 RCX: 8000000000000001 RDX: 00000000105758bd RSI: ffffffff8ea7a435 RDI: ffffffff8c8ffd80 RBP: ffff88801f725dc0 R08: ffffffff825db655 R09: 0000000000000000 R10: ffffc90003a47c20 R11: fffff52000748f86 R12: ffffffff9015a520 R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:309 [inline] rcu_read_lock_sched include/linux/rcupdate.h:947 [inline] fd_install+0xb2/0x4e0 fs/file.c:764 fd_publish include/linux/file.h:202 [inline] do_sys_openat2+0x178/0x200 fs/open.c:1442 do_sys_open fs/open.c:1448 [inline] __do_sys_openat fs/open.c:1788 [inline] __se_sys_openat fs/open.c:1783 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1783 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:0x7f6e4d19e87c Code: 4c 89 54 24 18 41 89 f2 41 83 e2 40 75 40 89 f0 f7 d0 a9 00 00 41 00 74 35 89 f2 b8 01 01 00 00 48 89 fe bf 9c ff ff ff 0f 05 <48> 3d 00 f0 ff ff 77 44 48 8b 54 24 18 64 48 2b 14 25 28 00 00 00 RSP: 002b:00007ffe8b10c1e0 EFLAGS: 00000206 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f6e4d235f63 RCX: 00007f6e4d19e87c RDX: 0000000000090800 RSI: 00007ffe8b10d390 RDI: 00000000ffffff9c RBP: 00007ffe8b10d37c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffe8b10d390 R13: 00007f6e4d235f63 R14: 00000000000d27af R15: 00007ffe8b10d3d0 Allocated by task 1123: 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 12664: 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 common_interrupt+0xbb/0xe0 arch/x86/kernel/irq.c:273 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:665 The buggy address belongs to the object at ffff88807ee80d80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88807ee80d80, ffff88807ee80dc0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807ee80900 pfn:0x7ee80 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88813ff378c0 ffffea00007bd210 ffffea00017f92d0 raw: ffff88807ee80900 000000000020001b 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 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5643, tgid 5643 (syz-executor), ts 320058889604 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3938 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5447 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] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x2ad/0x570 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x5fa/0x640 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x229/0x470 security/tomoyo/file.c:776 security_file_open+0xa9/0x240 security/security.c:2760 do_dentry_open+0x495/0x1360 fs/open.c:977 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4845 [inline] path_openat+0x16fc/0x20f0 fs/namei.c:5010 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_sys_openat2+0x115/0x200 fs/open.c:1442 page last free pid 5643 tgid 5643 ts 320019468107 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] __free_frozen_pages+0xc97/0xd90 mm/page_alloc.c:2957 __slab_free+0x269/0x2c0 mm/slub.c:5926 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:361 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_noprof+0x2b4/0x600 mm/slub.c:5047 alloc_filename fs/namei.c:147 [inline] do_getname+0x2e/0x250 fs/namei.c:187 getname_flags fs/namei.c:230 [inline] getname include/linux/fs.h:2564 [inline] class_filename_constructor include/linux/fs.h:2591 [inline] __do_sys_unlink fs/namei.c:5765 [inline] __se_sys_unlink+0x1e/0x140 fs/namei.c:5763 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 Memory state around the buggy address: ffff88807ee80c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88807ee80d00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88807ee80d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88807ee80e00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88807ee80e80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess), 2 bytes skipped: 0: ff ljmp (bad) 1: e8 00 96 74 0a call 0xa749606 6: f7 44 24 10 00 02 00 testl $0x200,0x10(%rsp) d: 00 e: 0f 84 38 ff ff ff je 0xffffff4c 14: 65 48 8b 05 02 50 46 mov %gs:0x13465002(%rip),%rax # 0x1346501e 1b: 13 1c: 48 3b 44 24 50 cmp 0x50(%rsp),%rax 21: 75 33 jne 0x56 23: fb sti 24: 48 83 c4 58 add $0x58,%rsp * 28: 5b pop %rbx <-- trapping instruction 29: 41 5c pop %r12 2b: 41 5d pop %r13 2d: 41 5e pop %r14 2f: 41 5f pop %r15 31: 5d pop %rbp 32: c3 ret 33: cc int3 34: cc int3 35: cc int3 36: cc int3 37: cc int3 38: 48 rex.W 39: 8d .byte 0x8d 3a: 3d .byte 0x3d 3b: a7 cmpsl %es:(%rdi),%ds:(%rsi) 3c: aa stos %al,%es:(%rdi) 3d: 1f (bad)