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+0x5f/0xa0 drivers/android/binder.c:6932 Write of size 8 at addr ffff88803fe91c08 by task syz-executor/5322 CPU: 0 UID: 0 PID: 5322 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-g2014c95afece-dirty #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 hlist_add_head include/linux/list.h:1026 [inline] binder_add_device+0x5f/0xa0 drivers/android/binder.c:6932 binderfs_binder_device_create+0x7bf/0x9c0 drivers/android/binderfs.c:210 binderfs_fill_super+0x944/0xd90 drivers/android/binderfs.c:729 vfs_get_super fs/super.c:1280 [inline] get_tree_nodev+0xb7/0x140 fs/super.c:1299 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe2efb874ca 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:00007fff67b22688 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe2efc01ecb RCX: 00007fe2efb874ca RDX: 00007fe2efc0ec27 RSI: 00007fe2efc01ecb RDI: 00007fe2efc0ec27 RBP: 00007fe2efc020c3 R08: 0000000000000000 R09: 00000000000001ff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe2efbe41c8 R13: 00007fe2efbe41a8 R14: 0000000000000009 R15: 0000000000000000 Allocated by task 5316: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x243/0x390 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+0x944/0xd90 drivers/android/binderfs.c:729 vfs_get_super fs/super.c:1280 [inline] get_tree_nodev+0xb7/0x140 fs/super.c:1299 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5316: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/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+0x196/0x430 mm/slub.c:4757 evict+0x4e8/0x9a0 fs/inode.c:796 __dentry_kill+0x20d/0x630 fs/dcache.c:643 shrink_kill+0xa9/0x2c0 fs/dcache.c:1088 shrink_dentry_list+0x2c0/0x5b0 fs/dcache.c:1115 shrink_dcache_parent+0xcb/0x3b0 do_one_tree+0x23/0xe0 fs/dcache.c:1578 shrink_dcache_for_umount+0xb4/0x180 fs/dcache.c:1595 generic_shutdown_super+0x6a/0x2d0 fs/super.c:620 kill_anon_super fs/super.c:1237 [inline] kill_litter_super+0x76/0xb0 fs/super.c:1247 binderfs_kill_super+0x44/0x90 drivers/android/binderfs.c:791 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1413 task_work_run+0x24f/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/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+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803fe91c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff88803fe91c00, ffff88803fe91e00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3fe90 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000040 ffff88801ac41c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 04fff00000000040 ffff88801ac41c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 04fff00000000001 ffffea0000ffa401 ffffffffffffffff 0000000000000000 head: ffff888000000002 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5020, tgid 5020 (dhcpcd), ts 45819556612, free_ts 45438545185 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2587 new_slab mm/slub.c:2640 [inline] ___slab_alloc+0xc27/0x14a0 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+0x27b/0x390 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] device_private_init drivers/base/core.c:3510 [inline] device_add+0xc1/0xbf0 drivers/base/core.c:3561 netdev_register_kobject+0x157/0x2e0 net/core/net-sysfs.c:2170 register_netdevice+0x12c3/0x1b10 net/core/dev.c:10861 lapbeth_new_device drivers/net/wan/lapbether.c:418 [inline] lapbeth_device_event+0x78d/0xa20 drivers/net/wan/lapbether.c:460 notifier_call_chain+0x1a5/0x3f0 kernel/notifier.c:85 __dev_notify_flags+0x207/0x400 dev_change_flags+0xf0/0x1a0 net/core/dev.c:9249 devinet_ioctl+0xcce/0x1ac0 net/ipv4/devinet.c:1208 page last free pid 5020 tgid 5020 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 mm_free_pgd kernel/fork.c:815 [inline] __mmdrop+0xb9/0x3d0 kernel/fork.c:931 mmdrop include/linux/sched/mm.h:55 [inline] mmdrop_sched include/linux/sched/mm.h:83 [inline] mmdrop_lazy_tlb_sched include/linux/sched/mm.h:110 [inline] finish_task_switch+0x304/0x870 kernel/sched/core.c:5276 context_switch kernel/sched/core.c:5380 [inline] __schedule+0x1916/0x4c90 kernel/sched/core.c:6764 __schedule_loop kernel/sched/core.c:6841 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6856 do_wait+0x2a5/0x550 kernel/exit.c:1696 kernel_wait4+0x2a7/0x3e0 kernel/exit.c:1850 __do_sys_wait4 kernel/exit.c:1878 [inline] __se_sys_wait4 kernel/exit.c:1874 [inline] __x64_sys_wait4+0x134/0x1e0 kernel/exit.c:1874 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88803fe91b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803fe91b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803fe91c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803fe91c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803fe91d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Warning: Permanently added '[localhost]:48690' (ED25519) to the list of known hosts. 2025/02/03 16:45:38 ignoring optional flag "sandboxArg"="0" 2025/02/03 16:45:39 parsed 1 programs [ 72.237966][ T5306] cgroup: Unknown subsys name 'net' [ 72.304524][ T5306] cgroup: Unknown subsys name 'cpuset' [ 72.309661][ T5306] cgroup: Unknown subsys name 'rlimit' [ 73.906040][ T5306] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 76.354457][ T1312] ieee802154 phy0 wpan0: encryption failed: -22 [ 76.357029][ T1312] ieee802154 phy1 wpan1: encryption failed: -22 [ 78.520679][ T5316] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. [ 79.094251][ T5322] ================================================================== [ 79.097238][ T5322] BUG: KASAN: slab-use-after-free in binder_add_device+0x5f/0xa0 [ 79.100192][ T5322] Write of size 8 at addr ffff88803fe91c08 by task syz-executor/5322 [ 79.103981][ T5322] [ 79.104883][ T5322] CPU: 0 UID: 0 PID: 5322 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-g2014c95afece-dirty #0 [ 79.104896][ T5322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 79.104903][ T5322] Call Trace: [ 79.104909][ T5322] [ 79.104915][ T5322] dump_stack_lvl+0x241/0x360 [ 79.104932][ T5322] ? __pfx_dump_stack_lvl+0x10/0x10 [ 79.104941][ T5322] ? __pfx__printk+0x10/0x10 [ 79.104950][ T5322] ? _printk+0xd5/0x120 [ 79.104957][ T5322] ? __virt_addr_valid+0x183/0x530 [ 79.104971][ T5322] ? __virt_addr_valid+0x183/0x530 [ 79.104984][ T5322] print_report+0x169/0x550 [ 79.104995][ T5322] ? __virt_addr_valid+0x183/0x530 [ 79.105008][ T5322] ? __virt_addr_valid+0x183/0x530 [ 79.105021][ T5322] ? __virt_addr_valid+0x45f/0x530 [ 79.105034][ T5322] ? __phys_addr+0xba/0x170 [ 79.105047][ T5322] ? binder_add_device+0x5f/0xa0 [ 79.105063][ T5322] kasan_report+0x143/0x180 [ 79.105072][ T5322] ? binder_add_device+0x5f/0xa0 [ 79.105086][ T5322] binder_add_device+0x5f/0xa0 [ 79.105104][ T5322] binderfs_binder_device_create+0x7bf/0x9c0 [ 79.105118][ T5322] binderfs_fill_super+0x944/0xd90 [ 79.105130][ T5322] ? __pfx_binderfs_fill_super+0x10/0x10 [ 79.105145][ T5322] ? shrinker_register+0x160/0x230 [ 79.105157][ T5322] ? sget_fc+0x909/0x9c0 [ 79.105169][ T5322] ? __pfx_set_anon_super_fc+0x10/0x10 [ 79.105182][ T5322] ? __pfx_binderfs_fill_super+0x10/0x10 [ 79.105195][ T5322] get_tree_nodev+0xb7/0x140 [ 79.105208][ T5322] vfs_get_tree+0x90/0x2b0 [ 79.105220][ T5322] do_new_mount+0x2be/0xb40 [ 79.105232][ T5322] ? __pfx_do_new_mount+0x10/0x10 [ 79.105244][ T5322] __se_sys_mount+0x2d6/0x3c0 [ 79.105254][ T5322] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 79.105269][ T5322] ? __pfx___se_sys_mount+0x10/0x10 [ 79.105285][ T5322] ? do_syscall_64+0x100/0x230 [ 79.105297][ T5322] ? __x64_sys_mount+0x20/0xc0 [ 79.105308][ T5322] do_syscall_64+0xf3/0x230 [ 79.105318][ T5322] ? clear_bhb_loop+0x35/0x90 [ 79.105335][ T5322] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.105358][ T5322] RIP: 0033:0x7fe2efb874ca [ 79.105368][ T5322] 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 [ 79.105378][ T5322] RSP: 002b:00007fff67b22688 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 79.105392][ T5322] RAX: ffffffffffffffda RBX: 00007fe2efc01ecb RCX: 00007fe2efb874ca [ 79.105399][ T5322] RDX: 00007fe2efc0ec27 RSI: 00007fe2efc01ecb RDI: 00007fe2efc0ec27 [ 79.105406][ T5322] RBP: 00007fe2efc020c3 R08: 0000000000000000 R09: 00000000000001ff [ 79.105413][ T5322] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe2efbe41c8 [ 79.105420][ T5322] R13: 00007fe2efbe41a8 R14: 0000000000000009 R15: 0000000000000000 [ 79.105430][ T5322] [ 79.105434][ T5322] [ 79.208540][ T5322] Allocated by task 5316: [ 79.210152][ T5322] kasan_save_track+0x3f/0x80 [ 79.211973][ T5322] __kasan_kmalloc+0x98/0xb0 [ 79.213710][ T5322] __kmalloc_cache_noprof+0x243/0x390 [ 79.215743][ T5322] binderfs_binder_device_create+0x16c/0x9c0 [ 79.217949][ T5322] binderfs_fill_super+0x944/0xd90 [ 79.219814][ T5322] get_tree_nodev+0xb7/0x140 [ 79.221865][ T5322] vfs_get_tree+0x90/0x2b0 [ 79.223563][ T5322] do_new_mount+0x2be/0xb40 [ 79.225260][ T5322] __se_sys_mount+0x2d6/0x3c0 [ 79.227031][ T5322] do_syscall_64+0xf3/0x230 [ 79.228631][ T5322] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.230793][ T5322] [ 79.231702][ T5322] Freed by task 5316: [ 79.233204][ T5322] kasan_save_track+0x3f/0x80 [ 79.234969][ T5322] kasan_save_free_info+0x40/0x50 [ 79.236713][ T5322] __kasan_slab_free+0x59/0x70 [ 79.238497][ T5322] kfree+0x196/0x430 [ 79.239961][ T5322] evict+0x4e8/0x9a0 [ 79.241492][ T5322] __dentry_kill+0x20d/0x630 [ 79.243263][ T5322] shrink_kill+0xa9/0x2c0 [ 79.244928][ T5322] shrink_dentry_list+0x2c0/0x5b0 [ 79.246856][ T5322] shrink_dcache_parent+0xcb/0x3b0 [ 79.248892][ T5322] do_one_tree+0x23/0xe0 [ 79.250534][ T5322] shrink_dcache_for_umount+0xb4/0x180 [ 79.252565][ T5322] generic_shutdown_super+0x6a/0x2d0 [ 79.254576][ T5322] kill_litter_super+0x76/0xb0 [ 79.256354][ T5322] binderfs_kill_super+0x44/0x90 [ 79.258296][ T5322] deactivate_locked_super+0xc4/0x130 [ 79.260256][ T5322] cleanup_mnt+0x41f/0x4b0 [ 79.261915][ T5322] task_work_run+0x24f/0x310 [ 79.263659][ T5322] do_exit+0xa2a/0x28e0 [ 79.265207][ T5322] do_group_exit+0x207/0x2c0 [ 79.266867][ T5322] get_signal+0x16b2/0x1750 [ 79.268474][ T5322] arch_do_signal_or_restart+0x96/0x860 [ 79.270499][ T5322] syscall_exit_to_user_mode+0xce/0x340 [ 79.272626][ T5322] do_syscall_64+0x100/0x230 [ 79.274383][ T5322] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.276624][ T5322] [ 79.277580][ T5322] The buggy address belongs to the object at ffff88803fe91c00 [ 79.277580][ T5322] which belongs to the cache kmalloc-512 of size 512 [ 79.282592][ T5322] The buggy address is located 8 bytes inside of [ 79.282592][ T5322] freed 512-byte region [ffff88803fe91c00, ffff88803fe91e00) [ 79.287277][ T5322] [ 79.288225][ T5322] The buggy address belongs to the physical page: [ 79.290662][ T5322] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3fe90 [ 79.293972][ T5322] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 79.297062][ T5322] flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) [ 79.299860][ T5322] page_type: f5(slab) [ 79.301289][ T5322] raw: 04fff00000000040 ffff88801ac41c80 dead000000000100 dead000000000122 [ 79.304474][ T5322] raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 [ 79.307569][ T5322] head: 04fff00000000040 ffff88801ac41c80 dead000000000100 dead000000000122 [ 79.310750][ T5322] head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 [ 79.313952][ T5322] head: 04fff00000000001 ffffea0000ffa401 ffffffffffffffff 0000000000000000 [ 79.317100][ T5322] head: ffff888000000002 0000000000000000 00000000ffffffff 0000000000000000 [ 79.320330][ T5322] page dumped because: kasan: bad access detected [ 79.322788][ T5322] page_owner tracks the page as allocated [ 79.324892][ T5322] page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5020, tgid 5020 (dhcpcd), ts 45819556612, free_ts 45438545185 [ 79.332277][ T5322] post_alloc_hook+0x1f4/0x240 [ 79.334062][ T5322] get_page_from_freelist+0x365c/0x37a0 [ 79.336059][ T5322] __alloc_frozen_pages_noprof+0x292/0x710 [ 79.338253][ T5322] alloc_pages_mpol+0x311/0x660 [ 79.340052][ T5322] allocate_slab+0x8f/0x3a0 [ 79.341744][ T5322] ___slab_alloc+0xc27/0x14a0 [ 79.343496][ T5322] __slab_alloc+0x58/0xa0 [ 79.345188][ T5322] __kmalloc_cache_noprof+0x27b/0x390 [ 79.347206][ T5322] device_add+0xc1/0xbf0 [ 79.348782][ T5322] netdev_register_kobject+0x157/0x2e0 [ 79.350786][ T5322] register_netdevice+0x12c3/0x1b10 [ 79.352706][ T5322] lapbeth_device_event+0x78d/0xa20 [ 79.354607][ T5322] notifier_call_chain+0x1a5/0x3f0 [ 79.356454][ T5322] __dev_notify_flags+0x207/0x400 [ 79.358266][ T5322] dev_change_flags+0xf0/0x1a0 [ 79.360029][ T5322] devinet_ioctl+0xcce/0x1ac0 [ 79.361818][ T5322] page last free pid 5020 tgid 5020 stack trace: [ 79.364126][ T5322] free_frozen_pages+0xe0d/0x10e0 [ 79.365988][ T5322] __mmdrop+0xb9/0x3d0 [ 79.367768][ T5322] finish_task_switch+0x304/0x870 [ 79.369982][ T5322] __schedule+0x1916/0x4c90 [ 79.371820][ T5322] schedule+0x14b/0x320 [ 79.373383][ T5322] do_wait+0x2a5/0x550 [ 79.374969][ T5322] kernel_wait4+0x2a7/0x3e0 [ 79.376668][ T5322] __x64_sys_wait4+0x134/0x1e0 [ 79.378435][ T5322] do_syscall_64+0xf3/0x230 [ 79.380120][ T5322] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.382324][ T5322] [ 79.383230][ T5322] Memory state around the buggy address: [ 79.385232][ T5322] ffff88803fe91b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 79.388161][ T5322] ffff88803fe91b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 79.391092][ T5322] >ffff88803fe91c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 79.394029][ T5322] ^ [ 79.395604][ T5322] ffff88803fe91c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 79.398594][ T5322] ffff88803fe91d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 79.401622][ T5322] ================================================================== [ 79.656850][ T5322] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 79.659721][ T5322] CPU: 0 UID: 0 PID: 5322 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-g2014c95afece-dirty #0 [ 79.663845][ T5322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 79.667894][ T5322] Call Trace: [ 79.669210][ T5322] [ 79.670343][ T5322] dump_stack_lvl+0x241/0x360 [ 79.672207][ T5322] ? __pfx_dump_stack_lvl+0x10/0x10 [ 79.674236][ T5322] ? __pfx__printk+0x10/0x10 [ 79.676011][ T5322] ? preempt_schedule+0xe1/0xf0 [ 79.677945][ T5322] ? vscnprintf+0x5d/0x90 [ 79.679673][ T5322] panic+0x349/0x880 [ 79.681184][ T5322] ? check_panic_on_warn+0x21/0xb0 [ 79.683208][ T5322] ? __pfx_panic+0x10/0x10 [ 79.684947][ T5322] ? _raw_spin_unlock_irqrestore+0x130/0x140 [ 79.687284][ T5322] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 79.689718][ T5322] ? print_report+0x502/0x550 [ 79.691599][ T5322] check_panic_on_warn+0x86/0xb0 [ 79.693429][ T5322] ? binder_add_device+0x5f/0xa0 [ 79.695323][ T5322] end_report+0x77/0x160 [ 79.696965][ T5322] kasan_report+0x154/0x180 [ 79.698513][ T5322] ? binder_add_device+0x5f/0xa0 [ 79.700162][ T5322] binder_add_device+0x5f/0xa0 [ 79.701981][ T5322] binderfs_binder_device_create+0x7bf/0x9c0 [ 79.704226][ T5322] binderfs_fill_super+0x944/0xd90 [ 79.706130][ T5322] ? __pfx_binderfs_fill_super+0x10/0x10 [ 79.708233][ T5322] ? shrinker_register+0x160/0x230 [ 79.710197][ T5322] ? sget_fc+0x909/0x9c0 [ 79.711928][ T5322] ? __pfx_set_anon_super_fc+0x10/0x10 [ 79.714075][ T5322] ? __pfx_binderfs_fill_super+0x10/0x10 [ 79.716173][ T5322] get_tree_nodev+0xb7/0x140 [ 79.718060][ T5322] vfs_get_tree+0x90/0x2b0 [ 79.719829][ T5322] do_new_mount+0x2be/0xb40 [ 79.721631][ T5322] ? __pfx_do_new_mount+0x10/0x10 [ 79.723655][ T5322] __se_sys_mount+0x2d6/0x3c0 [ 79.725438][ T5322] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 79.727709][ T5322] ? __pfx___se_sys_mount+0x10/0x10 [ 79.729664][ T5322] ? do_syscall_64+0x100/0x230 [ 79.731643][ T5322] ? __x64_sys_mount+0x20/0xc0 [ 79.733537][ T5322] do_syscall_64+0xf3/0x230 [ 79.735339][ T5322] ? clear_bhb_loop+0x35/0x90 [ 79.737441][ T5322] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.739870][ T5322] RIP: 0033:0x7fe2efb874ca [ 79.741672][ T5322] 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 [ 79.748964][ T5322] RSP: 002b:00007fff67b22688 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 79.752173][ T5322] RAX: ffffffffffffffda RBX: 00007fe2efc01ecb RCX: 00007fe2efb874ca [ 79.755027][ T5322] RDX: 00007fe2efc0ec27 RSI: 00007fe2efc01ecb RDI: 00007fe2efc0ec27 [ 79.757812][ T5322] RBP: 00007fe2efc020c3 R08: 0000000000000000 R09: 00000000000001ff [ 79.760703][ T5322] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe2efbe41c8 [ 79.763725][ T5322] R13: 00007fe2efbe41a8 R14: 0000000000000009 R15: 0000000000000000 [ 79.766469][ T5322] [ 79.767902][ T5322] Kernel Offset: disabled [ 79.769411][ T5322] Rebooting in 86400 seconds.. VM DIAGNOSIS: 16:45:48 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000073 RBX=ffffffff9a74c140 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000db271d0 R8 =ffffffff8577772b R9 =1ffff11003e05046 R10=dffffc0000000000 R11=ffffffff857776e0 R12=dffffc0000000000 R13=0000000000000073 R14=0000000000000073 R15=00000000000003f8 RIP=ffffffff8577775e RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 ffffffff 00c00000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 ffffffff 00c00000 FS =0000 000055555d844500 ffffffff 00c00000 GS =0000 ffff88801fc00000 ffffffff 00c00000 LDT=0000 0000000000000000 ffffffff 00c00000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007fe2efb0f700 CR3=0000000042cba000 CR4=00352ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000fffe0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 Opmask00=00000000eee0c0c0 Opmask01=000000000000000f Opmask02=00000000ffffffef Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fff67b226a0 0000003000000010 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM16=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM17=0000000000000000 0000000000000000 0000000000000000 0000000000000000 2525252525252525 2525252525252525 2525252525252525 2525252525252525 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 2029706d742d7a79 73287269646b6d00 706d742d7a79732f 2e00303030303031 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 050c554851085f5c 560d574c414e4800 554851085f5c560a 0b00151515151514 ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM25=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM26=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM27=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM28=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM29=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM30=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM31=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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/linux/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/syzkaller/jobs/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/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-build3679453093=/tmp/go-build -gno-record-gcc-switches' git status (err=) HEAD detached at da72ac06e38 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=da72ac06e38cf1dd2ecbddd5502225ff7589542d -X 'github.com/google/syzkaller/prog.gitRevisionDate=20250121-154645'" "-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 -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"da72ac06e38cf1dd2ecbddd5502225ff7589542d\" /usr/bin/ld: /tmp/ccQvOCbf.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