KASAN: slab-use-after-free Write in binder_add_device ================================================================== BUG: KASAN: slab-use-after-free in hlist_add_head include/linux/list.h:1026 [inline] BUG: KASAN: slab-use-after-free in binder_add_device+0x5b/0xa0 drivers/android/binder.c:6932 Write of size 8 at addr ffff88803434d008 by task syz-executor/5792 CPU: 0 UID: 0 PID: 5792 Comm: syz-executor Not tainted 6.14.0-rc2-syzkaller-ga64dcfb451e2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x23d/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x165/0x540 mm/kasan/report.c:489 kasan_report+0x13f/0x180 mm/kasan/report.c:602 hlist_add_head include/linux/list.h:1026 [inline] binder_add_device+0x5b/0xa0 drivers/android/binder.c:6932 binderfs_binder_device_create+0x7bf/0x9c0 drivers/android/binderfs.c:210 binderfs_fill_super+0x940/0xd90 drivers/android/binderfs.c:729 vfs_get_super fs/super.c:1280 [inline] get_tree_nodev+0xb3/0x140 fs/super.c:1299 vfs_get_tree+0x8c/0x280 fs/super.c:1814 do_new_mount+0x2ba/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d2/0x3c0 fs/namespace.c:4088 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fef17f8e58a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffcd9af1bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fef1800e663 RCX: 00007fef17f8e58a RDX: 00007fef1801dda7 RSI: 00007fef1800e663 RDI: 00007fef1801dda7 RBP: 00007fef1800e8ac R08: 0000000000000000 R09: 00000000000001ff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fef17feb1a8 R13: 00007fef17feb180 R14: 0000000000000009 R15: 0000000000000000 Allocated by task 5789: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3b/0x70 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x94/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x237/0x370 mm/slub.c:4325 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] binderfs_binder_device_create+0x16c/0x9c0 drivers/android/binderfs.c:147 binderfs_fill_super+0x940/0xd90 drivers/android/binderfs.c:729 vfs_get_super fs/super.c:1280 [inline] get_tree_nodev+0xb3/0x140 fs/super.c:1299 vfs_get_tree+0x8c/0x280 fs/super.c:1814 do_new_mount+0x2ba/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d2/0x3c0 fs/namespace.c:4088 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 5789: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3b/0x70 mm/kasan/common.c:68 kasan_save_free_info+0x3c/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x55/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:4609 [inline] kfree+0x18e/0x410 mm/slub.c:4757 evict+0x4e4/0x990 fs/inode.c:796 __dentry_kill+0x200/0x610 fs/dcache.c:643 shrink_kill+0xa9/0x2c0 fs/dcache.c:1088 shrink_dentry_list+0x2bc/0x5b0 fs/dcache.c:1115 shrink_dcache_parent+0xc7/0x3b0 do_one_tree+0x23/0xe0 fs/dcache.c:1578 shrink_dcache_for_umount+0xb0/0x170 fs/dcache.c:1595 generic_shutdown_super+0x66/0x2d0 fs/super.c:620 kill_anon_super fs/super.c:1237 [inline] kill_litter_super+0x72/0xa0 fs/super.c:1247 binderfs_kill_super+0x40/0x90 drivers/android/binderfs.c:791 deactivate_locked_super+0xc0/0x120 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1413 task_work_run+0x24b/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa26/0x28d0 kernel/exit.c:938 do_group_exit+0x203/0x2b0 kernel/exit.c:1087 get_signal+0x16ae/0x1740 kernel/signal.c:3036 arch_do_signal_or_restart+0x92/0x860 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+0xc9/0x320 kernel/entry/common.c:218 do_syscall_64+0x8a/0x180 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff88803434d000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff88803434d000, ffff88803434d200) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3434c 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 ffff88801a441c80 ffffea0000a44300 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801a441c80 ffffea0000a44300 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0000d0d301 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5160, tgid 5160 (udevadm), ts 33096648447, free_ts 33031621335 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e0/0x220 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x35e2/0x3720 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x252/0x680 mm/page_alloc.c:4739 alloc_pages_mpol+0x30d/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab+0x8f/0x390 mm/slub.c:2587 new_slab mm/slub.c:2640 [inline] ___slab_alloc+0xc35/0x1490 mm/slub.c:3826 __slab_alloc+0x58/0xa0 mm/slub.c:3916 __slab_alloc_node mm/slub.c:3991 [inline] slab_alloc_node mm/slub.c:4152 [inline] __kmalloc_cache_noprof+0x26f/0x370 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] kernfs_fop_open+0x3dc/0xd00 fs/kernfs/file.c:623 do_dentry_open+0xdea/0x1960 fs/open.c:956 vfs_open+0x37/0x360 fs/open.c:1086 do_open fs/namei.c:3830 [inline] path_openat+0x2c79/0x3580 fs/namei.c:3989 do_filp_open+0x27b/0x4d0 fs/namei.c:4016 do_sys_openat2+0x13a/0x1d0 fs/open.c:1428 do_sys_open fs/open.c:1443 [inline] __do_sys_openat fs/open.c:1459 [inline] __se_sys_openat fs/open.c:1454 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1454 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/common.c:83 page last free pid 5166 tgid 5166 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xddf/0x10a0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2684 [inline] __put_partials+0x15e/0x1b0 mm/slub.c:3153 put_cpu_partial+0x17c/0x250 mm/slub.c:3228 __slab_free+0x28c/0x370 mm/slub.c:4479 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x130 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4115 [inline] slab_alloc_node mm/slub.c:4164 [inline] __kmalloc_cache_noprof+0x1d1/0x370 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:901 [inline] tomoyo_print_header security/tomoyo/audit.c:156 [inline] tomoyo_init_log+0x1c6/0x2040 security/tomoyo/audit.c:255 tomoyo_supervisor+0x3a0/0x1770 security/tomoyo/common.c:2119 tomoyo_audit_path_number_log security/tomoyo/file.c:235 [inline] tomoyo_path_number_perm+0x5a1/0x810 security/tomoyo/file.c:734 security_file_ioctl+0xba/0x270 security/security.c:2913 __do_sys_ioctl fs/ioctl.c:900 [inline] __se_sys_ioctl+0x46/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88803434cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803434cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803434d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803434d080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803434d100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Warning: Permanently added '10.128.1.37' (ED25519) to the list of known hosts. 2025/02/10 00:11:18 ignoring optional flag "sandboxArg"="0" 2025/02/10 00:11:20 parsed 1 programs [ 77.077389][ T5779] cgroup: Unknown subsys name 'net' [ 77.225619][ T5779] cgroup: Unknown subsys name 'cpuset' [ 77.234121][ T5779] cgroup: Unknown subsys name 'rlimit' [ 77.239746][ T5779] cgroup: Unknown subsys name 'memory' [ 78.783177][ T5779] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 82.064151][ T5792] ================================================================== [ 82.072281][ T5792] BUG: KASAN: slab-use-after-free in binder_add_device+0x5b/0xa0 [ 82.080045][ T5792] Write of size 8 at addr ffff88803434d008 by task syz-executor/5792 [ 82.088226][ T5792] [ 82.090589][ T5792] CPU: 0 UID: 0 PID: 5792 Comm: syz-executor Not tainted 6.14.0-rc2-syzkaller-ga64dcfb451e2 #0 [ 82.090618][ T5792] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 82.090639][ T5792] Call Trace: [ 82.090648][ T5792] [ 82.090656][ T5792] dump_stack_lvl+0x23d/0x360 [ 82.090692][ T5792] ? __pfx_dump_stack_lvl+0x10/0x10 [ 82.090722][ T5792] ? __pfx__printk+0x10/0x10 [ 82.090762][ T5792] ? _printk+0xd1/0x120 [ 82.090789][ T5792] ? __virt_addr_valid+0x17f/0x530 [ 82.090809][ T5792] ? __virt_addr_valid+0x17f/0x530 [ 82.090830][ T5792] print_report+0x165/0x540 [ 82.090863][ T5792] ? __virt_addr_valid+0x17f/0x530 [ 82.090883][ T5792] ? __virt_addr_valid+0x17f/0x530 [ 82.090902][ T5792] ? __virt_addr_valid+0x45b/0x530 [ 82.090922][ T5792] ? __phys_addr+0xb6/0x170 [ 82.090948][ T5792] ? binder_add_device+0x5b/0xa0 [ 82.090967][ T5792] kasan_report+0x13f/0x180 [ 82.090999][ T5792] ? binder_add_device+0x5b/0xa0 [ 82.091022][ T5792] binder_add_device+0x5b/0xa0 [ 82.091041][ T5792] binderfs_binder_device_create+0x7bf/0x9c0 [ 82.091077][ T5792] binderfs_fill_super+0x940/0xd90 [ 82.091112][ T5792] ? __pfx_binderfs_fill_super+0x10/0x10 [ 82.091155][ T5792] ? shrinker_register+0x15c/0x220 [ 82.091183][ T5792] ? sget_fc+0x905/0x9c0 [ 82.091212][ T5792] ? __pfx_set_anon_super_fc+0x10/0x10 [ 82.091231][ T5792] ? __pfx_binderfs_fill_super+0x10/0x10 [ 82.091262][ T5792] get_tree_nodev+0xb3/0x140 [ 82.091282][ T5792] vfs_get_tree+0x8c/0x280 [ 82.091304][ T5792] do_new_mount+0x2ba/0xb40 [ 82.091332][ T5792] ? __pfx_do_new_mount+0x10/0x10 [ 82.091360][ T5792] __se_sys_mount+0x2d2/0x3c0 [ 82.091386][ T5792] ? lockdep_hardirqs_on_prepare+0x439/0x7a0 [ 82.091418][ T5792] ? __pfx___se_sys_mount+0x10/0x10 [ 82.091446][ T5792] ? __x64_sys_mount+0x1c/0xc0 [ 82.091472][ T5792] do_syscall_64+0x7e/0x180 [ 82.091497][ T5792] ? clear_bhb_loop+0x45/0xa0 [ 82.091526][ T5792] ? clear_bhb_loop+0x45/0xa0 [ 82.091556][ T5792] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 82.091588][ T5792] RIP: 0033:0x7fef17f8e58a [ 82.091610][ T5792] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 [ 82.091627][ T5792] RSP: 002b:00007ffcd9af1bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 82.091648][ T5792] RAX: ffffffffffffffda RBX: 00007fef1800e663 RCX: 00007fef17f8e58a [ 82.091664][ T5792] RDX: 00007fef1801dda7 RSI: 00007fef1800e663 RDI: 00007fef1801dda7 [ 82.091683][ T5792] RBP: 00007fef1800e8ac R08: 0000000000000000 R09: 00000000000001ff [ 82.091700][ T5792] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fef17feb1a8 [ 82.091713][ T5792] R13: 00007fef17feb180 R14: 0000000000000009 R15: 0000000000000000 [ 82.091733][ T5792] [ 82.091740][ T5792] [ 82.363948][ T5792] Allocated by task 5789: [ 82.368277][ T5792] kasan_save_track+0x3b/0x70 [ 82.372967][ T5792] __kasan_kmalloc+0x94/0xb0 [ 82.377576][ T5792] __kmalloc_cache_noprof+0x237/0x370 [ 82.382966][ T5792] binderfs_binder_device_create+0x16c/0x9c0 [ 82.388956][ T5792] binderfs_fill_super+0x940/0xd90 [ 82.394089][ T5792] get_tree_nodev+0xb3/0x140 [ 82.398683][ T5792] vfs_get_tree+0x8c/0x280 [ 82.403106][ T5792] do_new_mount+0x2ba/0xb40 [ 82.407616][ T5792] __se_sys_mount+0x2d2/0x3c0 [ 82.412299][ T5792] do_syscall_64+0x7e/0x180 [ 82.416810][ T5792] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 82.422798][ T5792] [ 82.425119][ T5792] Freed by task 5789: [ 82.429095][ T5792] kasan_save_track+0x3b/0x70 [ 82.433781][ T5792] kasan_save_free_info+0x3c/0x50 [ 82.438812][ T5792] __kasan_slab_free+0x55/0x70 [ 82.443583][ T5792] kfree+0x18e/0x410 [ 82.447479][ T5792] evict+0x4e4/0x990 [ 82.451391][ T5792] __dentry_kill+0x200/0x610 [ 82.455992][ T5792] shrink_kill+0xa9/0x2c0 [ 82.460328][ T5792] shrink_dentry_list+0x2bc/0x5b0 [ 82.465358][ T5792] shrink_dcache_parent+0xc7/0x3b0 [ 82.470478][ T5792] do_one_tree+0x23/0xe0 [ 82.474731][ T5792] shrink_dcache_for_umount+0xb0/0x170 [ 82.480200][ T5792] generic_shutdown_super+0x66/0x2d0 [ 82.485496][ T5792] kill_litter_super+0x72/0xa0 [ 82.490261][ T5792] binderfs_kill_super+0x40/0x90 [ 82.495208][ T5792] deactivate_locked_super+0xc0/0x120 [ 82.500586][ T5792] cleanup_mnt+0x41f/0x4b0 [ 82.505014][ T5792] task_work_run+0x24b/0x310 [ 82.509605][ T5792] do_exit+0xa26/0x28d0 [ 82.513768][ T5792] do_group_exit+0x203/0x2b0 [ 82.518368][ T5792] get_signal+0x16ae/0x1740 [ 82.522888][ T5792] arch_do_signal_or_restart+0x92/0x860 [ 82.528446][ T5792] syscall_exit_to_user_mode+0xc9/0x320 [ 82.534432][ T5792] do_syscall_64+0x8a/0x180 [ 82.539027][ T5792] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 82.544929][ T5792] [ 82.547248][ T5792] The buggy address belongs to the object at ffff88803434d000 [ 82.547248][ T5792] which belongs to the cache kmalloc-512 of size 512 [ 82.561298][ T5792] The buggy address is located 8 bytes inside of [ 82.561298][ T5792] freed 512-byte region [ffff88803434d000, ffff88803434d200) [ 82.574921][ T5792] [ 82.577243][ T5792] The buggy address belongs to the physical page: [ 82.583662][ T5792] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3434c [ 82.592439][ T5792] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 82.600936][ T5792] flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) [ 82.608491][ T5792] page_type: f5(slab) [ 82.612475][ T5792] raw: 00fff00000000040 ffff88801a441c80 ffffea0000a44300 dead000000000002 [ 82.621056][ T5792] raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 [ 82.629647][ T5792] head: 00fff00000000040 ffff88801a441c80 ffffea0000a44300 dead000000000002 [ 82.638321][ T5792] head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 [ 82.646993][ T5792] head: 00fff00000000002 ffffea0000d0d301 ffffffffffffffff 0000000000000000 [ 82.655669][ T5792] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 82.664333][ T5792] page dumped because: kasan: bad access detected [ 82.670746][ T5792] page_owner tracks the page as allocated [ 82.676493][ T5792] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5160, tgid 5160 (udevadm), ts 33096648447, free_ts 33031621335 [ 82.697424][ T5792] post_alloc_hook+0x1e0/0x220 [ 82.702197][ T5792] get_page_from_freelist+0x35e2/0x3720 [ 82.707753][ T5792] __alloc_frozen_pages_noprof+0x252/0x680 [ 82.713572][ T5792] alloc_pages_mpol+0x30d/0x660 [ 82.718421][ T5792] allocate_slab+0x8f/0x390 [ 82.722935][ T5792] ___slab_alloc+0xc35/0x1490 [ 82.727618][ T5792] __slab_alloc+0x58/0xa0 [ 82.731957][ T5792] __kmalloc_cache_noprof+0x26f/0x370 [ 82.737330][ T5792] kernfs_fop_open+0x3dc/0xd00 [ 82.742100][ T5792] do_dentry_open+0xdea/0x1960 [ 82.746869][ T5792] vfs_open+0x37/0x360 [ 82.750958][ T5792] path_openat+0x2c79/0x3580 [ 82.755568][ T5792] do_filp_open+0x27b/0x4d0 [ 82.760079][ T5792] do_sys_openat2+0x13a/0x1d0 [ 82.764762][ T5792] __x64_sys_openat+0x243/0x290 [ 82.769619][ T5792] do_syscall_64+0x7e/0x180 [ 82.774152][ T5792] page last free pid 5166 tgid 5166 stack trace: [ 82.780489][ T5792] free_frozen_pages+0xddf/0x10a0 [ 82.785546][ T5792] __put_partials+0x15e/0x1b0 [ 82.790238][ T5792] put_cpu_partial+0x17c/0x250 [ 82.795017][ T5792] __slab_free+0x28c/0x370 [ 82.799446][ T5792] qlist_free_all+0x9a/0x130 [ 82.804050][ T5792] kasan_quarantine_reduce+0x14b/0x160 [ 82.809516][ T5792] __kasan_slab_alloc+0x1f/0x70 [ 82.814378][ T5792] __kmalloc_cache_noprof+0x1d1/0x370 [ 82.819755][ T5792] tomoyo_init_log+0x1c6/0x2040 [ 82.824612][ T5792] tomoyo_supervisor+0x3a0/0x1770 [ 82.829666][ T5792] tomoyo_path_number_perm+0x5a1/0x810 [ 82.835137][ T5792] security_file_ioctl+0xba/0x270 [ 82.840161][ T5792] __se_sys_ioctl+0x46/0x170 [ 82.844766][ T5792] do_syscall_64+0x7e/0x180 [ 82.849276][ T5792] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 82.855181][ T5792] [ 82.857522][ T5792] Memory state around the buggy address: [ 82.863154][ T5792] ffff88803434cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 82.871214][ T5792] ffff88803434cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 82.879276][ T5792] >ffff88803434d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.887337][ T5792] ^ [ 82.891666][ T5792] ffff88803434d080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.899738][ T5792] ffff88803434d100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.907796][ T5792] ================================================================== [ 82.918264][ T5792] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 82.925515][ T5792] CPU: 1 UID: 0 PID: 5792 Comm: syz-executor Not tainted 6.14.0-rc2-syzkaller-ga64dcfb451e2 #0 [ 82.935877][ T5792] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 82.945999][ T5792] Call Trace: [ 82.949304][ T5792] [ 82.952268][ T5792] dump_stack_lvl+0x23d/0x360 [ 82.957029][ T5792] ? __pfx_dump_stack_lvl+0x10/0x10 [ 82.962269][ T5792] ? __pfx__printk+0x10/0x10 [ 82.966904][ T5792] ? preempt_schedule+0xdd/0xf0 [ 82.971799][ T5792] ? vscnprintf+0x59/0x80 [ 82.976162][ T5792] panic+0x345/0x880 [ 82.980096][ T5792] ? asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 82.986298][ T5792] ? check_panic_on_warn+0x1d/0xa0 [ 82.991462][ T5792] ? __pfx_panic+0x10/0x10 [ 82.995940][ T5792] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 83.001962][ T5792] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 83.008323][ T5792] ? print_report+0x4fe/0x540 [ 83.013047][ T5792] check_panic_on_warn+0x82/0xa0 [ 83.018011][ T5792] ? binder_add_device+0x5b/0xa0 [ 83.023054][ T5792] end_report+0x77/0x150 [ 83.027326][ T5792] kasan_report+0x150/0x180 [ 83.031854][ T5792] ? binder_add_device+0x5b/0xa0 [ 83.036816][ T5792] binder_add_device+0x5b/0xa0 [ 83.041674][ T5792] binderfs_binder_device_create+0x7bf/0x9c0 [ 83.047710][ T5792] binderfs_fill_super+0x940/0xd90 [ 83.052863][ T5792] ? __pfx_binderfs_fill_super+0x10/0x10 [ 83.058518][ T5792] ? shrinker_register+0x15c/0x220 [ 83.063646][ T5792] ? sget_fc+0x905/0x9c0 [ 83.067898][ T5792] ? __pfx_set_anon_super_fc+0x10/0x10 [ 83.073362][ T5792] ? __pfx_binderfs_fill_super+0x10/0x10 [ 83.079006][ T5792] get_tree_nodev+0xb3/0x140 [ 83.083605][ T5792] vfs_get_tree+0x8c/0x280 [ 83.088027][ T5792] do_new_mount+0x2ba/0xb40 [ 83.092539][ T5792] ? __pfx_do_new_mount+0x10/0x10 [ 83.097598][ T5792] __se_sys_mount+0x2d2/0x3c0 [ 83.102287][ T5792] ? lockdep_hardirqs_on_prepare+0x439/0x7a0 [ 83.108280][ T5792] ? __pfx___se_sys_mount+0x10/0x10 [ 83.113487][ T5792] ? __x64_sys_mount+0x1c/0xc0 [ 83.118253][ T5792] do_syscall_64+0x7e/0x180 [ 83.122783][ T5792] ? clear_bhb_loop+0x45/0xa0 [ 83.127472][ T5792] ? clear_bhb_loop+0x45/0xa0 [ 83.132164][ T5792] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 83.138063][ T5792] RIP: 0033:0x7fef17f8e58a [ 83.142482][ T5792] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 [ 83.162091][ T5792] RSP: 002b:00007ffcd9af1bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 83.170510][ T5792] RAX: ffffffffffffffda RBX: 00007fef1800e663 RCX: 00007fef17f8e58a [ 83.178486][ T5792] RDX: 00007fef1801dda7 RSI: 00007fef1800e663 RDI: 00007fef1801dda7 [ 83.186548][ T5792] RBP: 00007fef1800e8ac R08: 0000000000000000 R09: 00000000000001ff [ 83.194613][ T5792] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fef17feb1a8 [ 83.202591][ T5792] R13: 00007fef17feb180 R14: 0000000000000009 R15: 0000000000000000 [ 83.210570][ T5792] [ 83.213926][ T5792] Kernel Offset: disabled [ 83.218248][ T5792] Rebooting in 86400 seconds.. syzkaller build log: go env (err=) GO111MODULE='auto' GOARCH='amd64' GOBIN='' GOCACHE='/syzkaller/.cache/go-build' GOENV='/syzkaller/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/syzkaller/jobs-2/linux/gopath' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/syzkaller/jobs-2/linux/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.6.linux-amd64' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/syzkaller/jobs-2/linux/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.6.linux-amd64/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.23.6' GODEBUG='' GOTELEMETRY='local' GOTELEMETRYDIR='/syzkaller/.config/go/telemetry' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2933525567=/tmp/go-build -gno-record-gcc-switches' git status (err=) HEAD detached at ef44b750e8 nothing to commit, working tree clean tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified Makefile:31: run command via tools/syz-env for best compatibility, see: Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen make .descriptions tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified Makefile:31: run command via tools/syz-env for best compatibility, see: Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env bin/syz-sysgen touch .descriptions GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=ef44b750e8fab8d6d5cb84920680581b13e0d470 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20250207-152458'" -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog mkdir -p ./bin/linux_amd64 g++ -o ./bin/linux_amd64/syz-executor executor/executor.cc \ -m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -std=c++17 -I. -Iexecutor/_include -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"ef44b750e8fab8d6d5cb84920680581b13e0d470\" /usr/bin/ld: /tmp/ccElOTXh.o: in function `Connection::Connect(char const*, char const*)': executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x104): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking