================================================================== BUG: KASAN: slab-use-after-free in selinux_inode security/selinux/include/objsec.h:201 [inline] BUG: KASAN: slab-use-after-free in inode_security_rcu security/selinux/hooks.c:311 [inline] BUG: KASAN: slab-use-after-free in selinux_inode_follow_link+0x134/0x310 security/selinux/hooks.c:3107 Read of size 8 at addr ffff88812d8b7d40 by task syz.5.785/2644 CPU: 1 UID: 0 PID: 2644 Comm: syz.5.785 Not tainted syzkaller #0 PREEMPT 966a14263cffb7d750746148d0eb8978fa86128f Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x9c/0xf0 lib/dump_stack.c:120 print_address_description+0x72/0x210 mm/kasan/report.c:378 print_report+0x5b/0x80 mm/kasan/report.c:482 kasan_report+0x165/0x1a0 mm/kasan/report.c:595 __asan_report_load8_noabort+0x18/0x20 mm/kasan/report_generic.c:381 selinux_inode security/selinux/include/objsec.h:201 [inline] inode_security_rcu security/selinux/hooks.c:311 [inline] selinux_inode_follow_link+0x134/0x310 security/selinux/hooks.c:3107 security_inode_follow_link+0xbe/0x180 security/security.c:1795 pick_link+0x583/0xfe0 fs/namei.c:2050 step_into_slowpath+0x547/0x7f0 fs/namei.c:2124 step_into fs/namei.c:2149 [inline] walk_component fs/namei.c:2285 [inline] link_path_walk+0xd4f/0x1920 fs/namei.c:2647 path_parentat fs/namei.c:2851 [inline] __filename_parentat+0x27f/0x6f0 fs/namei.c:2875 filename_parentat fs/namei.c:2893 [inline] filename_unlinkat+0x104/0x600 fs/namei.c:5509 __do_sys_unlinkat fs/namei.c:5569 [inline] __se_sys_unlinkat+0x87/0x1b0 fs/namei.c:5561 __x64_sys_unlinkat+0x7f/0xa0 fs/namei.c:5561 x64_sys_call+0x1134/0x3040 arch/x86/include/generated/asm/syscalls_64.h:264 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc7/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f5d86b9bf79 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5d87b32028 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007f5d86e15fa0 RCX: 00007f5d86b9bf79 RDX: 0000000000000000 RSI: 00002000000001c0 RDI: 0000000000000004 RBP: 00007f5d86c327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5d86e16038 R14: 00007f5d86e15fa0 R15: 00007ffcf46b7e58 Allocated by task 2644: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x73/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4459 [inline] slab_alloc_node mm/slub.c:4788 [inline] kmem_cache_alloc_lru_noprof+0x160/0x330 mm/slub.c:4807 alloc_inode+0xad/0x270 fs/inode.c:349 new_inode+0x25/0x180 fs/inode.c:1185 bpf_get_inode kernel/bpf/inode.c:117 [inline] bpf_symlink+0x65/0x1f0 kernel/bpf/inode.c:391 vfs_symlink+0x1c6/0x360 fs/namei.c:5615 filename_symlinkat+0x1cd/0x410 fs/namei.c:5640 __do_sys_symlinkat fs/namei.c:5660 [inline] __se_sys_symlinkat+0x52/0x2e0 fs/namei.c:5655 __x64_sys_symlinkat+0x7f/0xa0 fs/namei.c:5655 x64_sys_call+0x2b52/0x3040 arch/x86/include/generated/asm/syscalls_64.h:267 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc7/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 2650: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x4a/0x60 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x63/0x90 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2670 [inline] slab_free mm/slub.c:6082 [inline] kmem_cache_free+0x161/0x440 mm/slub.c:6212 free_inode_nonrcu+0x20/0x30 fs/inode.c:318 bpf_destroy_inode+0x14e/0x180 kernel/bpf/inode.c:773 destroy_inode fs/inode.c:397 [inline] evict+0x781/0x950 fs/inode.c:870 iput_final fs/inode.c:1966 [inline] iput+0x607/0x8e0 fs/inode.c:2015 filename_unlinkat+0x43a/0x600 fs/namei.c:5544 __do_sys_unlinkat fs/namei.c:5569 [inline] __se_sys_unlinkat+0x87/0x1b0 fs/namei.c:5561 __x64_sys_unlinkat+0x7f/0xa0 fs/namei.c:5561 x64_sys_call+0x1134/0x3040 arch/x86/include/generated/asm/syscalls_64.h:264 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc7/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff88812d8b7d08 which belongs to the cache inode_cache of size 616 The buggy address is located 56 bytes inside of freed 616-byte region [ffff88812d8b7d08, ffff88812d8b7f70) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12d8b4 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4000000000000040(head|zone=1) page_type: f5(slab) raw: 4000000000000040 ffff888102279b40 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000160016 00000000f5000000 0000000000000000 head: 4000000000000040 ffff888102279b40 dead000000000100 dead000000000122 head: 0000000000000000 0000000000160016 00000000f5000000 0000000000000000 head: 4000000000000002 ffffea0004b62d01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 408, tgid 408 (syz-executor), ts 53937759338, free_ts 31031593960 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x265/0x2a0 mm/page_alloc.c:1883 prep_new_page mm/page_alloc.c:1891 [inline] get_page_from_freelist+0x1eb5/0x1f40 mm/page_alloc.c:3956 __alloc_frozen_pages_noprof+0x2c8/0x510 mm/page_alloc.c:5244 alloc_slab_page+0x2d/0x110 mm/slub.c:-1 allocate_slab+0x78/0x650 mm/slub.c:3411 new_slab mm/slub.c:3469 [inline] refill_objects+0x43e/0x5c0 mm/slub.c:7091 refill_sheaf mm/slub.c:2787 [inline] __pcs_replace_empty_main+0x1a3/0x370 mm/slub.c:4536 alloc_from_pcs mm/slub.c:4639 [inline] slab_alloc_node mm/slub.c:4773 [inline] kmem_cache_alloc_lru_noprof+0x231/0x330 mm/slub.c:4807 alloc_inode+0xad/0x270 fs/inode.c:349 new_inode_pseudo include/linux/fs.h:2993 [inline] get_pipe_inode fs/pipe.c:888 [inline] create_pipe_files+0x54/0x800 fs/pipe.c:928 __do_pipe_flags+0x4f/0x200 fs/pipe.c:990 do_pipe2+0xaa/0x190 fs/pipe.c:1038 __do_sys_pipe2 fs/pipe.c:1056 [inline] __se_sys_pipe2 fs/pipe.c:1054 [inline] __x64_sys_pipe2+0x5e/0x70 fs/pipe.c:1054 x64_sys_call+0x2c8a/0x3040 arch/x86/include/generated/asm/syscalls_64.h:294 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc7/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 330 tgid 330 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xac0/0xba0 mm/page_alloc.c:2972 ___free_pages+0x6d/0x410 mm/page_alloc.c:5325 __free_pages+0xf/0x30 mm/page_alloc.c:5363 vfree+0x325/0x4e0 mm/vmalloc.c:3479 kcov_put kernel/kcov.c:442 [inline] kcov_close+0x2c/0x70 kernel/kcov.c:543 __fput+0x3ee/0xa50 fs/file_table.c:469 ____fput+0x20/0x30 fs/file_table.c:497 task_work_run+0x1e7/0x260 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x7aa/0x2170 kernel/exit.c:971 do_group_exit+0x214/0x2e0 kernel/exit.c:1112 get_signal+0x12d2/0x1410 kernel/signal.c:3034 arch_do_signal_or_restart+0xbb/0x760 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x73/0xd0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x1ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88812d8b7c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812d8b7c80: fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88812d8b7d00: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812d8b7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812d8b7e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================