================================================================== 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+0x1ac/0x280 drivers/android/binderfs.c:277 Write of size 8 at addr ffff88810f3ab408 by task syz.3.19/4998 CPU: 0 UID: 0 PID: 4998 Comm: syz.3.19 Not tainted 6.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0xf5/0x170 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xac/0x230 mm/kasan/report.c:489 kasan_report+0x118/0x150 mm/kasan/report.c:602 __hlist_del include/linux/list.h:982 [inline] hlist_del_init include/linux/list.h:1008 [inline] binderfs_evict_inode+0x1ac/0x280 drivers/android/binderfs.c:277 evict+0x440/0x940 fs/inode.c:796 __dentry_kill+0x194/0x5c0 fs/dcache.c:625 shrink_kill+0x29/0xa0 fs/dcache.c:1070 shrink_dentry_list+0x1b4/0x410 fs/dcache.c:1097 shrink_dcache_parent+0xa2/0x1d0 fs/dcache.c:-1 do_one_tree+0x1b/0xd0 fs/dcache.c:1560 shrink_dcache_for_umount+0x6f/0x100 fs/dcache.c:1577 generic_shutdown_super+0x61/0x260 fs/super.c:620 kill_anon_super+0x3f/0x1f0 fs/super.c:1237 binderfs_kill_super+0x40/0x80 drivers/android/binderfs.c:792 deactivate_locked_super+0x9b/0x390 fs/super.c:473 cleanup_mnt+0x114/0x300 fs/namespace.c:1373 task_work_run+0x14a/0x1e0 kernel/task_work.c:239 resume_user_mode_work+0x52/0x60 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x77/0xc0 kernel/entry/common.c:218 do_syscall_64+0x9c/0x170 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbdfc78e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffeb5bffff8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 0000000000016950 RCX: 00007fbdfc78e969 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fbdfc9b7ba0 R08: 0000000000000001 R09: 00000006b5c002ef R10: 00007fbdfc600000 R11: 0000000000000246 R12: 00007fbdfc9b5fac R13: 00007fbdfc9b5fa0 R14: ffffffffffffffff R15: 00007ffeb5c00110 Allocated by task 2975: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x221/0x410 mm/slub.c:4329 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] binderfs_binder_device_create+0x14e/0x970 drivers/android/binderfs.c:147 binderfs_fill_super+0x926/0xd00 drivers/android/binderfs.c:730 vfs_get_super fs/super.c:1280 [inline] get_tree_nodev+0xa4/0x120 fs/super.c:1299 vfs_get_tree+0x84/0x1a0 fs/super.c:1814 do_new_mount+0x1c9/0x850 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x21c/0x2c0 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8f/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 8: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:582 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2353 [inline] slab_free mm/slub.c:4613 [inline] kfree+0x17a/0x3e0 mm/slub.c:4761 binder_free_proc drivers/android/binder.c:5249 [inline] binder_proc_dec_tmpref+0x1e5/0x420 drivers/android/binder.c:1565 binder_deferred_release drivers/android/binder.c:6293 [inline] binder_deferred_func+0xef/0x1360 drivers/android/binder.c:6320 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x989/0x12d0 kernel/workqueue.c:3310 worker_thread+0x850/0xc50 kernel/workqueue.c:3391 kthread+0x235/0x290 kernel/kthread.c:389 ret_from_fork+0x32/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff88810f3ab400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff88810f3ab400, ffff88810f3ab600) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10f3a8 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x100000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0100000000000040 ffff888100041c80 ffffea0004481700 dead000000000002 raw: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000 head: 0100000000000040 ffff888100041c80 ffffea0004481700 dead000000000002 head: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000 head: 0100000000000002 ffffea00043cea01 ffffffffffffffff 0000000000000000 head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 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 1414, tgid 1414 (S02acpid), ts 7496181167, free_ts 4922515553 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0xf2/0x120 mm/page_alloc.c:1556 prep_new_page mm/page_alloc.c:1564 [inline] get_page_from_freelist+0x3799/0x38a0 mm/page_alloc.c:3474 __alloc_pages_noprof+0x1e4/0x430 mm/page_alloc.c:4751 alloc_pages_mpol_noprof+0x1d5/0x380 mm/mempolicy.c:2269 alloc_slab_page+0x5d/0x110 mm/slub.c:2423 allocate_slab+0x5d/0x260 mm/slub.c:2589 new_slab mm/slub.c:2642 [inline] ___slab_alloc+0x9de/0x10e0 mm/slub.c:3830 __slab_alloc mm/slub.c:3920 [inline] __slab_alloc_node mm/slub.c:3995 [inline] slab_alloc_node mm/slub.c:4156 [inline] __do_kmalloc_node mm/slub.c:4297 [inline] __kmalloc_noprof+0x2ea/0x500 mm/slub.c:4310 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] tomoyo_init_log+0x178f/0x1cf0 security/tomoyo/audit.c:275 tomoyo_supervisor+0x2d3/0xdd0 security/tomoyo/common.c:2089 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_check_open_permission+0x28f/0x520 security/tomoyo/file.c:777 security_file_open+0x45/0xd0 security/security.c:3105 do_dentry_open+0x2fd/0x1060 fs/open.c:928 vfs_open+0x36/0x2b0 fs/open.c:1075 do_open fs/namei.c:3828 [inline] path_openat+0x23b7/0x2b80 fs/namei.c:3987 do_filp_open+0x1e2/0x3c0 fs/namei.c:4014 page last free pid 43 tgid 43 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xa87/0xc60 mm/page_alloc.c:2657 vfree+0x103/0x200 mm/vmalloc.c:3382 delayed_vfree_work+0x3c/0x70 mm/vmalloc.c:3303 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x989/0x12d0 kernel/workqueue.c:3310 worker_thread+0x850/0xc50 kernel/workqueue.c:3391 kthread+0x235/0x290 kernel/kthread.c:389 ret_from_fork+0x32/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff88810f3ab300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810f3ab380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88810f3ab400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810f3ab480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810f3ab500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================