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 ffff88802709f408 by task syz-executor/5783 CPU: 0 UID: 0 PID: 5783 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-00187-g8f6629c004b1 #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:0x7fd7799874ca 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:00007ffcd051ece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd779a01e6b RCX: 00007fd7799874ca RDX: 00007fd779a0ebc7 RSI: 00007fd779a01e6b RDI: 00007fd779a0ebc7 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd779a18080 R13: 00007ffcd051ed68 R14: 0000000000000009 R15: 0000000000000000 Allocated by task 5778: 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 5778: 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 ffff88802709f400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff88802709f400, ffff88802709f600) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2709c 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 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801a441c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00009c2701 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 5143, tgid 5143 (udevd), ts 33521039872, free_ts 33510829042 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 5155 tgid 5155 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_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission+0x243/0x360 security/tomoyo/file.c:587 tomoyo_path_perm+0x48c/0x740 security/tomoyo/file.c:838 security_inode_getattr+0x128/0x310 security/security.c:2377 vfs_getattr+0x26/0x3a0 fs/stat.c:243 vfs_fstat fs/stat.c:265 [inline] vfs_fstatat+0xa4/0x130 fs/stat.c:366 __do_sys_newfstatat fs/stat.c:532 [inline] __se_sys_newfstatat fs/stat.c:526 [inline] __x64_sys_newfstatat+0x119/0x1a0 fs/stat.c:526 Memory state around the buggy address: ffff88802709f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802709f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802709f400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802709f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802709f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Warning: Permanently added '10.128.0.252' (ED25519) to the list of known hosts. 2025/02/08 16:28:10 ignoring optional flag "sandboxArg"="0" 2025/02/08 16:28:11 parsed 1 programs [ 80.883384][ T5769] cgroup: Unknown subsys name 'net' [ 81.080567][ T5769] cgroup: Unknown subsys name 'cpuset' [ 81.089605][ T5769] cgroup: Unknown subsys name 'rlimit' [ 81.095272][ T5769] cgroup: Unknown subsys name 'memory' [ 82.732155][ T5769] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 85.504720][ T69] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 [ 85.521431][ T69] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 [ 85.546363][ T69] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 [ 85.554399][ T69] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 [ 85.754018][ T5783] ================================================================== [ 85.762158][ T5783] BUG: KASAN: slab-use-after-free in binder_add_device+0x5b/0xa0 [ 85.769911][ T5783] Write of size 8 at addr ffff88802709f408 by task syz-executor/5783 [ 85.777972][ T5783] [ 85.780306][ T5783] CPU: 0 UID: 0 PID: 5783 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-00187-g8f6629c004b1 #0 [ 85.780326][ T5783] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 85.780342][ T5783] Call Trace: [ 85.780350][ T5783] [ 85.780357][ T5783] dump_stack_lvl+0x23d/0x360 [ 85.780383][ T5783] ? __pfx_dump_stack_lvl+0x10/0x10 [ 85.780404][ T5783] ? __pfx__printk+0x10/0x10 [ 85.780424][ T5783] ? _printk+0xd1/0x120 [ 85.780445][ T5783] ? __virt_addr_valid+0x17f/0x530 [ 85.780460][ T5783] ? __virt_addr_valid+0x17f/0x530 [ 85.780475][ T5783] print_report+0x165/0x540 [ 85.780499][ T5783] ? __virt_addr_valid+0x17f/0x530 [ 85.780513][ T5783] ? __virt_addr_valid+0x17f/0x530 [ 85.780527][ T5783] ? __virt_addr_valid+0x45b/0x530 [ 85.780541][ T5783] ? __phys_addr+0xb6/0x170 [ 85.780556][ T5783] ? binder_add_device+0x5b/0xa0 [ 85.780570][ T5783] kasan_report+0x13f/0x180 [ 85.780593][ T5783] ? binder_add_device+0x5b/0xa0 [ 85.780610][ T5783] binder_add_device+0x5b/0xa0 [ 85.780624][ T5783] binderfs_binder_device_create+0x7bf/0x9c0 [ 85.780651][ T5783] binderfs_fill_super+0x940/0xd90 [ 85.780680][ T5783] ? __pfx_binderfs_fill_super+0x10/0x10 [ 85.780711][ T5783] ? shrinker_register+0x15c/0x220 [ 85.780732][ T5783] ? sget_fc+0x905/0x9c0 [ 85.780756][ T5783] ? __pfx_set_anon_super_fc+0x10/0x10 [ 85.780771][ T5783] ? __pfx_binderfs_fill_super+0x10/0x10 [ 85.780794][ T5783] get_tree_nodev+0xb3/0x140 [ 85.780809][ T5783] vfs_get_tree+0x8c/0x280 [ 85.780825][ T5783] do_new_mount+0x2ba/0xb40 [ 85.780845][ T5783] ? __pfx_do_new_mount+0x10/0x10 [ 85.780866][ T5783] __se_sys_mount+0x2d2/0x3c0 [ 85.780885][ T5783] ? lockdep_hardirqs_on_prepare+0x439/0x7a0 [ 85.780909][ T5783] ? __pfx___se_sys_mount+0x10/0x10 [ 85.780929][ T5783] ? __x64_sys_mount+0x1c/0xc0 [ 85.780948][ T5783] do_syscall_64+0x7e/0x180 [ 85.780968][ T5783] ? clear_bhb_loop+0x45/0xa0 [ 85.780990][ T5783] ? clear_bhb_loop+0x45/0xa0 [ 85.781012][ T5783] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 85.781050][ T5783] RIP: 0033:0x7fd7799874ca [ 85.781067][ T5783] 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 [ 85.781079][ T5783] RSP: 002b:00007ffcd051ece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 85.781096][ T5783] RAX: ffffffffffffffda RBX: 00007fd779a01e6b RCX: 00007fd7799874ca [ 85.781107][ T5783] RDX: 00007fd779a0ebc7 RSI: 00007fd779a01e6b RDI: 00007fd779a0ebc7 [ 85.781118][ T5783] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 85.781126][ T5783] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd779a18080 [ 85.781135][ T5783] R13: 00007ffcd051ed68 R14: 0000000000000009 R15: 0000000000000000 [ 85.781150][ T5783] [ 85.781155][ T5783] [ 86.055308][ T5783] Allocated by task 5778: [ 86.059728][ T5783] kasan_save_track+0x3b/0x70 [ 86.064420][ T5783] __kasan_kmalloc+0x94/0xb0 [ 86.069051][ T5783] __kmalloc_cache_noprof+0x237/0x370 [ 86.074636][ T5783] binderfs_binder_device_create+0x16c/0x9c0 [ 86.080737][ T5783] binderfs_fill_super+0x940/0xd90 [ 86.085905][ T5783] get_tree_nodev+0xb3/0x140 [ 86.090510][ T5783] vfs_get_tree+0x8c/0x280 [ 86.095017][ T5783] do_new_mount+0x2ba/0xb40 [ 86.099572][ T5783] __se_sys_mount+0x2d2/0x3c0 [ 86.104269][ T5783] do_syscall_64+0x7e/0x180 [ 86.108871][ T5783] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 86.114776][ T5783] [ 86.117107][ T5783] Freed by task 5778: [ 86.121118][ T5783] kasan_save_track+0x3b/0x70 [ 86.125811][ T5783] kasan_save_free_info+0x3c/0x50 [ 86.130842][ T5783] __kasan_slab_free+0x55/0x70 [ 86.135647][ T5783] kfree+0x18e/0x410 [ 86.139557][ T5783] evict+0x4e4/0x990 [ 86.143459][ T5783] __dentry_kill+0x200/0x610 [ 86.148064][ T5783] shrink_kill+0xa9/0x2c0 [ 86.152411][ T5783] shrink_dentry_list+0x2bc/0x5b0 [ 86.157475][ T5783] shrink_dcache_parent+0xc7/0x3b0 [ 86.162689][ T5783] do_one_tree+0x23/0xe0 [ 86.166970][ T5783] shrink_dcache_for_umount+0xb0/0x170 [ 86.172440][ T5783] generic_shutdown_super+0x66/0x2d0 [ 86.177797][ T5783] kill_litter_super+0x72/0xa0 [ 86.182576][ T5783] binderfs_kill_super+0x40/0x90 [ 86.187615][ T5783] deactivate_locked_super+0xc0/0x120 [ 86.193025][ T5783] cleanup_mnt+0x41f/0x4b0 [ 86.197470][ T5783] task_work_run+0x24b/0x310 [ 86.202075][ T5783] do_exit+0xa26/0x28d0 [ 86.206249][ T5783] do_group_exit+0x203/0x2b0 [ 86.210853][ T5783] get_signal+0x16ae/0x1740 [ 86.215385][ T5783] arch_do_signal_or_restart+0x92/0x860 [ 86.220968][ T5783] syscall_exit_to_user_mode+0xc9/0x320 [ 86.226726][ T5783] do_syscall_64+0x8a/0x180 [ 86.231247][ T5783] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 86.237176][ T5783] [ 86.239504][ T5783] The buggy address belongs to the object at ffff88802709f400 [ 86.239504][ T5783] which belongs to the cache kmalloc-512 of size 512 [ 86.253679][ T5783] The buggy address is located 8 bytes inside of [ 86.253679][ T5783] freed 512-byte region [ffff88802709f400, ffff88802709f600) [ 86.267323][ T5783] [ 86.269653][ T5783] The buggy address belongs to the physical page: [ 86.276080][ T5783] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2709c [ 86.284856][ T5783] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 86.293383][ T5783] flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) [ 86.300957][ T5783] page_type: f5(slab) [ 86.304961][ T5783] raw: 00fff00000000040 ffff88801a441c80 dead000000000100 dead000000000122 [ 86.313549][ T5783] raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 [ 86.322140][ T5783] head: 00fff00000000040 ffff88801a441c80 dead000000000100 dead000000000122 [ 86.330822][ T5783] head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 [ 86.339516][ T5783] head: 00fff00000000002 ffffea00009c2701 ffffffffffffffff 0000000000000000 [ 86.348201][ T5783] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 86.356896][ T5783] page dumped because: kasan: bad access detected [ 86.363510][ T5783] page_owner tracks the page as allocated [ 86.369221][ T5783] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5143, tgid 5143 (udevd), ts 33521039872, free_ts 33510829042 [ 86.390177][ T5783] post_alloc_hook+0x1e0/0x220 [ 86.394967][ T5783] get_page_from_freelist+0x35e2/0x3720 [ 86.400552][ T5783] __alloc_frozen_pages_noprof+0x252/0x680 [ 86.406463][ T5783] alloc_pages_mpol+0x30d/0x660 [ 86.411315][ T5783] allocate_slab+0x8f/0x390 [ 86.415835][ T5783] ___slab_alloc+0xc35/0x1490 [ 86.420608][ T5783] __slab_alloc+0x58/0xa0 [ 86.425404][ T5783] __kmalloc_cache_noprof+0x26f/0x370 [ 86.430799][ T5783] kernfs_fop_open+0x3dc/0xd00 [ 86.435606][ T5783] do_dentry_open+0xdea/0x1960 [ 86.440417][ T5783] vfs_open+0x37/0x360 [ 86.444511][ T5783] path_openat+0x2c79/0x3580 [ 86.449209][ T5783] do_filp_open+0x27b/0x4d0 [ 86.453731][ T5783] do_sys_openat2+0x13a/0x1d0 [ 86.458429][ T5783] __x64_sys_openat+0x243/0x290 [ 86.463307][ T5783] do_syscall_64+0x7e/0x180 [ 86.467853][ T5783] page last free pid 5155 tgid 5155 stack trace: [ 86.474187][ T5783] free_frozen_pages+0xddf/0x10a0 [ 86.479221][ T5783] __put_partials+0x15e/0x1b0 [ 86.483906][ T5783] put_cpu_partial+0x17c/0x250 [ 86.488680][ T5783] __slab_free+0x28c/0x370 [ 86.493106][ T5783] qlist_free_all+0x9a/0x130 [ 86.497723][ T5783] kasan_quarantine_reduce+0x14b/0x160 [ 86.503192][ T5783] __kasan_slab_alloc+0x1f/0x70 [ 86.508055][ T5783] __kmalloc_cache_noprof+0x1d1/0x370 [ 86.513606][ T5783] tomoyo_init_log+0x1c6/0x2040 [ 86.518463][ T5783] tomoyo_supervisor+0x3a0/0x1770 [ 86.523497][ T5783] tomoyo_path_permission+0x243/0x360 [ 86.528878][ T5783] tomoyo_path_perm+0x48c/0x740 [ 86.533754][ T5783] security_inode_getattr+0x128/0x310 [ 86.539139][ T5783] vfs_getattr+0x26/0x3a0 [ 86.543503][ T5783] vfs_fstatat+0xa4/0x130 [ 86.547856][ T5783] __x64_sys_newfstatat+0x119/0x1a0 [ 86.553347][ T5783] [ 86.555696][ T5783] Memory state around the buggy address: [ 86.561332][ T5783] ffff88802709f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 86.569482][ T5783] ffff88802709f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 86.577542][ T5783] >ffff88802709f400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 86.585602][ T5783] ^ [ 86.589934][ T5783] ffff88802709f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 86.598058][ T5783] ffff88802709f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 86.606125][ T5783] ================================================================== [ 86.628830][ T5783] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 86.636102][ T5783] CPU: 0 UID: 0 PID: 5783 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-00187-g8f6629c004b1 #0 [ 86.646972][ T5783] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 86.657127][ T5783] Call Trace: [ 86.660476][ T5783] [ 86.663412][ T5783] dump_stack_lvl+0x23d/0x360 [ 86.668127][ T5783] ? __pfx_dump_stack_lvl+0x10/0x10 [ 86.673348][ T5783] ? __pfx__printk+0x10/0x10 [ 86.678042][ T5783] ? preempt_schedule+0xdd/0xf0 [ 86.682895][ T5783] ? vscnprintf+0x59/0x80 [ 86.687286][ T5783] panic+0x345/0x880 [ 86.691227][ T5783] ? asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 86.697426][ T5783] ? check_panic_on_warn+0x1d/0xa0 [ 86.702549][ T5783] ? __pfx_panic+0x10/0x10 [ 86.707011][ T5783] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 86.713101][ T5783] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 86.719469][ T5783] ? print_report+0x4fe/0x540 [ 86.724170][ T5783] check_panic_on_warn+0x82/0xa0 [ 86.729133][ T5783] ? binder_add_device+0x5b/0xa0 [ 86.734084][ T5783] end_report+0x77/0x150 [ 86.738344][ T5783] kasan_report+0x150/0x180 [ 86.742888][ T5783] ? binder_add_device+0x5b/0xa0 [ 86.747861][ T5783] binder_add_device+0x5b/0xa0 [ 86.752730][ T5783] binderfs_binder_device_create+0x7bf/0x9c0 [ 86.758741][ T5783] binderfs_fill_super+0x940/0xd90 [ 86.763873][ T5783] ? __pfx_binderfs_fill_super+0x10/0x10 [ 86.769531][ T5783] ? shrinker_register+0x15c/0x220 [ 86.774654][ T5783] ? sget_fc+0x905/0x9c0 [ 86.778913][ T5783] ? __pfx_set_anon_super_fc+0x10/0x10 [ 86.784402][ T5783] ? __pfx_binderfs_fill_super+0x10/0x10 [ 86.790085][ T5783] get_tree_nodev+0xb3/0x140 [ 86.794688][ T5783] vfs_get_tree+0x8c/0x280 [ 86.799119][ T5783] do_new_mount+0x2ba/0xb40 [ 86.803660][ T5783] ? __pfx_do_new_mount+0x10/0x10 [ 86.808734][ T5783] __se_sys_mount+0x2d2/0x3c0 [ 86.813449][ T5783] ? lockdep_hardirqs_on_prepare+0x439/0x7a0 [ 86.819467][ T5783] ? __pfx___se_sys_mount+0x10/0x10 [ 86.824697][ T5783] ? __x64_sys_mount+0x1c/0xc0 [ 86.829493][ T5783] do_syscall_64+0x7e/0x180 [ 86.834029][ T5783] ? clear_bhb_loop+0x45/0xa0 [ 86.838774][ T5783] ? clear_bhb_loop+0x45/0xa0 [ 86.843486][ T5783] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 86.849515][ T5783] RIP: 0033:0x7fd7799874ca [ 86.853946][ T5783] 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 [ 86.873578][ T5783] RSP: 002b:00007ffcd051ece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 86.882009][ T5783] RAX: ffffffffffffffda RBX: 00007fd779a01e6b RCX: 00007fd7799874ca [ 86.890011][ T5783] RDX: 00007fd779a0ebc7 RSI: 00007fd779a01e6b RDI: 00007fd779a0ebc7 [ 86.898029][ T5783] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 86.906019][ T5783] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd779a18080 [ 86.914091][ T5783] R13: 00007ffcd051ed68 R14: 0000000000000009 R15: 0000000000000000 [ 86.922107][ T5783] [ 86.925585][ T5783] Kernel Offset: disabled [ 86.929921][ T5783] 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='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.7' 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-build1764811939=/tmp/go-build -gno-record-gcc-switches' git status (err=) HEAD detached at b4fbdbd43b 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 go fmt ./sys/... >/dev/null touch .descriptions GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=b4fbdbd43bfd6a8d0392238f019dc602335346d0 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20241222-073428'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -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 -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"b4fbdbd43bfd6a8d0392238f019dc602335346d0\" /usr/bin/ld: /tmp/ccbynPBb.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