================================================================== BUG: KASAN: slab-use-after-free in __hlist_del include/linux/list.h:982 [inline] BUG: KASAN: slab-use-after-free in hlist_del_init include/linux/list.h:1008 [inline] BUG: KASAN: slab-use-after-free in binderfs_evict_inode+0x335/0x340 drivers/android/binderfs.c:277 Write of size 8 at addr ffff88807b446808 by task syz-executor/5973 CPU: 0 UID: 0 PID: 5973 Comm: syz-executor Not tainted 6.15.0-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 __hlist_del include/linux/list.h:982 [inline] hlist_del_init include/linux/list.h:1008 [inline] binderfs_evict_inode+0x335/0x340 drivers/android/binderfs.c:277 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1898 [inline] iput fs/inode.c:1924 [inline] iput+0x521/0x880 fs/inode.c:1910 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:457 __dentry_kill+0x1d0/0x600 fs/dcache.c:660 shrink_kill fs/dcache.c:1105 [inline] shrink_dentry_list+0x140/0x5d0 fs/dcache.c:1132 shrink_dcache_parent+0xe1/0x530 fs/dcache.c:1566 do_one_tree fs/dcache.c:1595 [inline] shrink_dcache_for_umount+0xa5/0x3e0 fs/dcache.c:1612 generic_shutdown_super+0x6c/0x390 fs/super.c:620 kill_anon_super fs/super.c:1237 [inline] kill_litter_super+0x70/0xa0 fs/super.c:1247 binderfs_kill_super+0x3b/0xa0 drivers/android/binderfs.c:792 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473 deactivate_super fs/super.c:506 [inline] deactivate_super+0xde/0x100 fs/super.c:502 cleanup_mnt+0x225/0x450 fs/namespace.c:1431 task_work_run+0x150/0x240 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xafb/0x2c30 kernel/exit.c:953 do_group_exit+0xd3/0x2a0 kernel/exit.c:1102 get_signal+0x2673/0x26d0 kernel/signal.c:3034 arch_do_signal_or_restart+0x8f/0x7d0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x260 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8dc918df17 Code: Unable to access opcode bytes at 0x7f8dc918deed. RSP: 002b:00007f8dc94decb8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f8dc918df17 RDX: 00007f8dc94dece0 RSI: 00007f8dc94ded70 RDI: 00007f8dc94ded70 RBP: 00007f8dc94ded70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007f8dc94dfe00 R13: 00007f8dc921089d R14: 0000000000010eda R15: 00007f8dc94dfe40 Allocated by task 5968: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] binderfs_binder_device_create.isra.0+0x17a/0xb70 drivers/android/binderfs.c:147 binderfs_fill_super+0x8d4/0x1360 drivers/android/binderfs.c:730 vfs_get_super fs/super.c:1280 [inline] get_tree_nodev+0xda/0x190 fs/super.c:1299 vfs_get_tree+0x8b/0x340 fs/super.c:1759 do_new_mount fs/namespace.c:3881 [inline] path_mount+0x14d4/0x1f20 fs/namespace.c:4208 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount fs/namespace.c:4409 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5968: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2380 [inline] slab_free mm/slub.c:4642 [inline] kfree+0x2b6/0x4d0 mm/slub.c:4841 binderfs_evict_inode+0x29f/0x340 drivers/android/binderfs.c:279 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1898 [inline] iput fs/inode.c:1924 [inline] iput+0x521/0x880 fs/inode.c:1910 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:457 __dentry_kill+0x1d0/0x600 fs/dcache.c:660 shrink_kill fs/dcache.c:1105 [inline] shrink_dentry_list+0x140/0x5d0 fs/dcache.c:1132 shrink_dcache_parent+0xe1/0x530 fs/dcache.c:1566 do_one_tree fs/dcache.c:1595 [inline] shrink_dcache_for_umount+0xa5/0x3e0 fs/dcache.c:1612 generic_shutdown_super+0x6c/0x390 fs/super.c:620 kill_anon_super fs/super.c:1237 [inline] kill_litter_super+0x70/0xa0 fs/super.c:1247 binderfs_kill_super+0x3b/0xa0 drivers/android/binderfs.c:792 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473 deactivate_super fs/super.c:506 [inline] deactivate_super+0xde/0x100 fs/super.c:502 cleanup_mnt+0x225/0x450 fs/namespace.c:1431 task_work_run+0x150/0x240 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xafb/0x2c30 kernel/exit.c:953 do_group_exit+0xd3/0x2a0 kernel/exit.c:1102 get_signal+0x2673/0x26d0 kernel/signal.c:3034 arch_do_signal_or_restart+0x8f/0x7d0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0x13f/0x280 kernel/entry/common.c:231 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 The buggy address belongs to the object at ffff88807b446800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff88807b446800, ffff88807b446a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b444 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b441c80 ffffea0000a53200 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b441c80 ffffea0000a53200 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0001ed1101 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 Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5154, tgid 5154 (mount), ts 19840711568, free_ts 17993577120 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1714 prep_new_page mm/page_alloc.c:1722 [inline] get_page_from_freelist+0x135c/0x3920 mm/page_alloc.c:3684 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4974 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab mm/slub.c:2618 [inline] new_slab+0x244/0x340 mm/slub.c:2672 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3858 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3948 __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4339 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] tomoyo_init_log+0x1385/0x2140 security/tomoyo/audit.c:275 tomoyo_supervisor+0x302/0x13b0 security/tomoyo/common.c:2198 tomoyo_audit_mount_log security/tomoyo/mount.c:32 [inline] tomoyo_mount_acl+0x50c/0x850 security/tomoyo/mount.c:166 tomoyo_mount_permission+0x16d/0x420 security/tomoyo/mount.c:237 security_sb_mount+0x9b/0x260 security/security.c:1570 path_mount+0x128/0x1f20 fs/namespace.c:4150 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount fs/namespace.c:4409 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1258 [inline] __free_frozen_pages+0x69d/0xff0 mm/page_alloc.c:2721 __free_pages mm/page_alloc.c:5086 [inline] free_contig_range+0x135/0x3f0 mm/page_alloc.c:6942 destroy_args+0x66f/0x830 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x130e/0x2d50 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x120/0x6e0 init/main.c:1257 do_initcall_level init/main.c:1319 [inline] do_initcalls init/main.c:1335 [inline] do_basic_setup init/main.c:1354 [inline] kernel_init_freeable+0x5c2/0x900 init/main.c:1567 kernel_init+0x1c/0x2b0 init/main.c:1457 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88807b446700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807b446780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807b446800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807b446880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807b446900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================