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 ffff88802f134008 by task syz-executor/5800
CPU: 0 UID: 0 PID: 5800 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller-00090-gdd83757f6e68 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
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:408 [inline]
print_report+0x16a/0x5b0 mm/kasan/report.c:521
kasan_report+0x13f/0x180 mm/kasan/report.c:634
hlist_add_head include/linux/list.h:1026 [inline]
binder_add_device+0x5b/0xa0 drivers/android/binder.c:6932
binderfs_binder_device_create+0x878/0xab0 drivers/android/binderfs.c:210
binderfs_fill_super+0x96a/0xe60 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:0x7fc63a98e90a
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:00007ffe5566cea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc63aa0e663 RCX: 00007fc63a98e90a
RDX: 00007fc63aa1dda7 RSI: 00007fc63aa0e663 RDI: 00007fc63aa1dda7
RBP: 00007fc63aa0e8ac R08: 0000000000000000 R09: 00000000000001ff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc63a9eb1a8
R13: 00007fc63a9eb180 R14: 0000000000000009 R15: 0000000000000000
Allocated by task 5793:
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+0x171/0xab0 drivers/android/binderfs.c:147
binderfs_fill_super+0x96a/0xe60 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 5793:
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+0x1688/0x1720 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 ffff88802f134000
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes inside of
freed 512-byte region [ffff88802f134000, ffff88802f134200)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2f134
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 ffffea0000bc4d01 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 1, tgid 1 (swapper/0), ts 24278155736, free_ts 0
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]
snd_mixer_oss_build_test+0xa0/0x320 sound/core/oss/mixer_oss.c:884
snd_mixer_oss_build_test_all sound/core/oss/mixer_oss.c:963 [inline]
snd_mixer_oss_build_input+0x56b/0x1540 sound/core/oss/mixer_oss.c:1002
snd_mixer_oss_build sound/core/oss/mixer_oss.c:1259 [inline]
snd_mixer_oss_notify_handler+0x92c/0x1040 sound/core/oss/mixer_oss.c:1327
snd_card_register+0x568/0x700 sound/core/init.c:925
snd_dummy_probe+0x110c/0x1950 sound/drivers/dummy.c:1092
platform_probe+0x136/0x1c0 drivers/base/platform.c:1404
really_probe+0x2b9/0xac0 drivers/base/dd.c:658
__driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800
page_owner free stack trace missing
Memory state around the buggy address:
ffff88802f133f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88802f133f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88802f134000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88802f134080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88802f134100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Warning: Permanently added '10.128.1.18' (ED25519) to the list of known hosts.
2025/02/27 15:53:10 ignoring optional flag "sandboxArg"="0"
2025/02/27 15:53:11 parsed 1 programs
[ 81.438998][ T5782] cgroup: Unknown subsys name 'net'
[ 81.565691][ T5782] cgroup: Unknown subsys name 'cpuset'
[ 81.574123][ T5782] cgroup: Unknown subsys name 'rlimit'
[ 81.579768][ T5782] cgroup: Unknown subsys name 'memory'
[ 83.153405][ T5782] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 86.470308][ T5812] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 86.486678][ T5812] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 86.495655][ T5812] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 86.504092][ T5812] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 86.512178][ T5814] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 86.522293][ T5814] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 86.531488][ T5800] ==================================================================
[ 86.539739][ T5800] BUG: KASAN: slab-use-after-free in binder_add_device+0x5b/0xa0
[ 86.547519][ T5800] Write of size 8 at addr ffff88802f134008 by task syz-executor/5800
[ 86.555645][ T5800]
[ 86.558008][ T5800] CPU: 0 UID: 0 PID: 5800 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller-00090-gdd83757f6e68 #0
[ 86.558029][ T5800] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
[ 86.558047][ T5800] Call Trace:
[ 86.558062][ T5800]
[ 86.558070][ T5800] dump_stack_lvl+0x23d/0x360
[ 86.558103][ T5800] ? __pfx_dump_stack_lvl+0x10/0x10
[ 86.558128][ T5800] ? __pfx__printk+0x10/0x10
[ 86.558152][ T5800] ? _printk+0xd1/0x120
[ 86.558174][ T5800] ? __virt_addr_valid+0x17f/0x530
[ 86.558194][ T5800] ? __virt_addr_valid+0x17f/0x530
[ 86.558213][ T5800] print_report+0x16a/0x5b0
[ 86.558235][ T5800] ? __virt_addr_valid+0x17f/0x530
[ 86.558253][ T5800] ? __virt_addr_valid+0x17f/0x530
[ 86.558270][ T5800] ? __virt_addr_valid+0x45b/0x530
[ 86.558287][ T5800] ? __phys_addr+0xb6/0x170
[ 86.558305][ T5800] ? binder_add_device+0x5b/0xa0
[ 86.558329][ T5800] kasan_report+0x13f/0x180
[ 86.558350][ T5800] ? binder_add_device+0x5b/0xa0
[ 86.558374][ T5800] binder_add_device+0x5b/0xa0
[ 86.558396][ T5800] binderfs_binder_device_create+0x878/0xab0
[ 86.558423][ T5800] binderfs_fill_super+0x96a/0xe60
[ 86.558447][ T5800] ? __pfx_binderfs_fill_super+0x10/0x10
[ 86.558478][ T5800] ? shrinker_register+0x15c/0x220
[ 86.558506][ T5800] ? sget_fc+0x95c/0xa50
[ 86.558526][ T5800] ? __pfx_set_anon_super_fc+0x10/0x10
[ 86.558547][ T5800] ? __pfx_binderfs_fill_super+0x10/0x10
[ 86.558568][ T5800] get_tree_nodev+0xb3/0x140
[ 86.558590][ T5800] vfs_get_tree+0x8c/0x280
[ 86.558614][ T5800] do_new_mount+0x2ba/0xb40
[ 86.558648][ T5800] ? __pfx_do_new_mount+0x10/0x10
[ 86.558678][ T5800] __se_sys_mount+0x2d2/0x3c0
[ 86.558694][ T5800] ? lockdep_hardirqs_on_prepare+0x439/0x7a0
[ 86.558724][ T5800] ? __pfx___se_sys_mount+0x10/0x10
[ 86.558742][ T5800] ? __x64_sys_mount+0x1c/0xc0
[ 86.558758][ T5800] do_syscall_64+0x7e/0x180
[ 86.558779][ T5800] ? clear_bhb_loop+0x45/0xa0
[ 86.558804][ T5800] ? clear_bhb_loop+0x45/0xa0
[ 86.558828][ T5800] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 86.558852][ T5800] RIP: 0033:0x7fc63a98e90a
[ 86.558872][ T5800] 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.558892][ T5800] RSP: 002b:00007ffe5566cea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 86.558910][ T5800] RAX: ffffffffffffffda RBX: 00007fc63aa0e663 RCX: 00007fc63a98e90a
[ 86.558923][ T5800] RDX: 00007fc63aa1dda7 RSI: 00007fc63aa0e663 RDI: 00007fc63aa1dda7
[ 86.558935][ T5800] RBP: 00007fc63aa0e8ac R08: 0000000000000000 R09: 00000000000001ff
[ 86.558952][ T5800] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc63a9eb1a8
[ 86.558969][ T5800] R13: 00007fc63a9eb180 R14: 0000000000000009 R15: 0000000000000000
[ 86.558985][ T5800]
[ 86.558995][ T5800]
[ 86.832609][ T5800] Allocated by task 5793:
[ 86.836945][ T5800] kasan_save_track+0x3b/0x70
[ 86.841633][ T5800] __kasan_kmalloc+0x94/0xb0
[ 86.846230][ T5800] __kmalloc_cache_noprof+0x237/0x370
[ 86.851612][ T5800] binderfs_binder_device_create+0x171/0xab0
[ 86.857598][ T5800] binderfs_fill_super+0x96a/0xe60
[ 86.862835][ T5800] get_tree_nodev+0xb3/0x140
[ 86.867867][ T5800] vfs_get_tree+0x8c/0x280
[ 86.872291][ T5800] do_new_mount+0x2ba/0xb40
[ 86.876805][ T5800] __se_sys_mount+0x2d2/0x3c0
[ 86.881493][ T5800] do_syscall_64+0x7e/0x180
[ 86.886005][ T5800] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 86.891908][ T5800]
[ 86.894245][ T5800] Freed by task 5793:
[ 86.898221][ T5800] kasan_save_track+0x3b/0x70
[ 86.902904][ T5800] kasan_save_free_info+0x3c/0x50
[ 86.908029][ T5800] __kasan_slab_free+0x55/0x70
[ 86.912800][ T5800] kfree+0x18e/0x410
[ 86.916705][ T5800] evict+0x4e4/0x990
[ 86.920615][ T5800] __dentry_kill+0x200/0x610
[ 86.925214][ T5800] shrink_kill+0xa9/0x2c0
[ 86.929559][ T5800] shrink_dentry_list+0x2bc/0x5b0
[ 86.934588][ T5800] shrink_dcache_parent+0xc7/0x3b0
[ 86.939711][ T5800] do_one_tree+0x23/0xe0
[ 86.943969][ T5800] shrink_dcache_for_umount+0xb0/0x170
[ 86.949443][ T5800] generic_shutdown_super+0x66/0x2d0
[ 86.954908][ T5800] kill_litter_super+0x72/0xa0
[ 86.959684][ T5800] binderfs_kill_super+0x40/0x90
[ 86.964630][ T5800] deactivate_locked_super+0xc0/0x120
[ 86.970029][ T5800] cleanup_mnt+0x41f/0x4b0
[ 86.974450][ T5800] task_work_run+0x24b/0x310
[ 86.979046][ T5800] do_exit+0xa26/0x28d0
[ 86.983206][ T5800] do_group_exit+0x203/0x2b0
[ 86.987815][ T5800] get_signal+0x1688/0x1720
[ 86.992324][ T5800] arch_do_signal_or_restart+0x92/0x860
[ 86.997885][ T5800] syscall_exit_to_user_mode+0xc9/0x320
[ 87.003437][ T5800] do_syscall_64+0x8a/0x180
[ 87.007945][ T5800] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 87.013847][ T5800]
[ 87.016191][ T5800] The buggy address belongs to the object at ffff88802f134000
[ 87.016191][ T5800] which belongs to the cache kmalloc-512 of size 512
[ 87.030245][ T5800] The buggy address is located 8 bytes inside of
[ 87.030245][ T5800] freed 512-byte region [ffff88802f134000, ffff88802f134200)
[ 87.043955][ T5800]
[ 87.046289][ T5800] The buggy address belongs to the physical page:
[ 87.052819][ T5800] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2f134
[ 87.061585][ T5800] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 87.070088][ T5800] flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
[ 87.077648][ T5800] page_type: f5(slab)
[ 87.081640][ T5800] raw: 00fff00000000040 ffff88801a441c80 dead000000000100 dead000000000122
[ 87.090227][ T5800] raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
[ 87.098816][ T5800] head: 00fff00000000040 ffff88801a441c80 dead000000000100 dead000000000122
[ 87.107670][ T5800] head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
[ 87.116349][ T5800] head: 00fff00000000002 ffffea0000bc4d01 ffffffffffffffff 0000000000000000
[ 87.125136][ T5800] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[ 87.133849][ T5800] page dumped because: kasan: bad access detected
[ 87.140399][ T5800] page_owner tracks the page as allocated
[ 87.146120][ T5800] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 24278155736, free_ts 0
[ 87.165856][ T5800] post_alloc_hook+0x1e0/0x220
[ 87.170670][ T5800] get_page_from_freelist+0x35e2/0x3720
[ 87.176257][ T5800] __alloc_frozen_pages_noprof+0x252/0x680
[ 87.182085][ T5800] alloc_pages_mpol+0x30d/0x660
[ 87.187035][ T5800] allocate_slab+0x8f/0x390
[ 87.191569][ T5800] ___slab_alloc+0xc35/0x1490
[ 87.196369][ T5800] __slab_alloc+0x58/0xa0
[ 87.200745][ T5800] __kmalloc_cache_noprof+0x26f/0x370
[ 87.206142][ T5800] snd_mixer_oss_build_test+0xa0/0x320
[ 87.211662][ T5800] snd_mixer_oss_build_input+0x56b/0x1540
[ 87.217411][ T5800] snd_mixer_oss_notify_handler+0x92c/0x1040
[ 87.223423][ T5800] snd_card_register+0x568/0x700
[ 87.228497][ T5800] snd_dummy_probe+0x110c/0x1950
[ 87.233445][ T5800] platform_probe+0x136/0x1c0
[ 87.238140][ T5800] really_probe+0x2b9/0xac0
[ 87.242657][ T5800] __driver_probe_device+0x1a2/0x390
[ 87.247972][ T5800] page_owner free stack trace missing
[ 87.253342][ T5800]
[ 87.255665][ T5800] Memory state around the buggy address:
[ 87.261299][ T5800] ffff88802f133f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 87.269455][ T5800] ffff88802f133f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 87.277608][ T5800] >ffff88802f134000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 87.285669][ T5800] ^
[ 87.290260][ T5800] ffff88802f134080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 87.298326][ T5800] ffff88802f134100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 87.306412][ T5800] ==================================================================
[ 87.396323][ T5800] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 87.403748][ T5800] CPU: 0 UID: 0 PID: 5800 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller-00090-gdd83757f6e68 #0
[ 87.414639][ T5800] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
[ 87.424743][ T5800] Call Trace:
[ 87.428102][ T5800]
[ 87.431105][ T5800] dump_stack_lvl+0x23d/0x360
[ 87.435838][ T5800] ? __pfx_dump_stack_lvl+0x10/0x10
[ 87.441063][ T5800] ? __pfx__printk+0x10/0x10
[ 87.445680][ T5800] ? preempt_schedule+0xdd/0xf0
[ 87.450554][ T5800] ? vscnprintf+0x59/0x80
[ 87.454911][ T5800] panic+0x345/0x880
[ 87.458821][ T5800] ? asm_sysvec_apic_timer_interrupt+0x16/0x20
[ 87.465011][ T5800] ? check_panic_on_warn+0x1d/0xa0
[ 87.470250][ T5800] ? __pfx_panic+0x10/0x10
[ 87.474687][ T5800] ? _raw_spin_unlock_irqrestore+0x12c/0x140
[ 87.480700][ T5800] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10
[ 87.487046][ T5800] ? print_report+0x515/0x5b0
[ 87.491829][ T5800] check_panic_on_warn+0x82/0xa0
[ 87.496881][ T5800] ? binder_add_device+0x5b/0xa0
[ 87.501966][ T5800] end_report+0x77/0x150
[ 87.506229][ T5800] kasan_report+0x150/0x180
[ 87.511354][ T5800] ? binder_add_device+0x5b/0xa0
[ 87.516360][ T5800] binder_add_device+0x5b/0xa0
[ 87.521163][ T5800] binderfs_binder_device_create+0x878/0xab0
[ 87.527362][ T5800] binderfs_fill_super+0x96a/0xe60
[ 87.532687][ T5800] ? __pfx_binderfs_fill_super+0x10/0x10
[ 87.538344][ T5800] ? shrinker_register+0x15c/0x220
[ 87.543474][ T5800] ? sget_fc+0x95c/0xa50
[ 87.547733][ T5800] ? __pfx_set_anon_super_fc+0x10/0x10
[ 87.553252][ T5800] ? __pfx_binderfs_fill_super+0x10/0x10
[ 87.559095][ T5800] get_tree_nodev+0xb3/0x140
[ 87.563765][ T5800] vfs_get_tree+0x8c/0x280
[ 87.568297][ T5800] do_new_mount+0x2ba/0xb40
[ 87.572865][ T5800] ? __pfx_do_new_mount+0x10/0x10
[ 87.577918][ T5800] __se_sys_mount+0x2d2/0x3c0
[ 87.582630][ T5800] ? lockdep_hardirqs_on_prepare+0x439/0x7a0
[ 87.588805][ T5800] ? __pfx___se_sys_mount+0x10/0x10
[ 87.594014][ T5800] ? __x64_sys_mount+0x1c/0xc0
[ 87.598884][ T5800] do_syscall_64+0x7e/0x180
[ 87.603416][ T5800] ? clear_bhb_loop+0x45/0xa0
[ 87.608112][ T5800] ? clear_bhb_loop+0x45/0xa0
[ 87.612802][ T5800] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 87.618804][ T5800] RIP: 0033:0x7fc63a98e90a
[ 87.623228][ T5800] 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
[ 87.643426][ T5800] RSP: 002b:00007ffe5566cea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 87.651975][ T5800] RAX: ffffffffffffffda RBX: 00007fc63aa0e663 RCX: 00007fc63a98e90a
[ 87.659959][ T5800] RDX: 00007fc63aa1dda7 RSI: 00007fc63aa0e663 RDI: 00007fc63aa1dda7
[ 87.668111][ T5800] RBP: 00007fc63aa0e8ac R08: 0000000000000000 R09: 00000000000001ff
[ 87.676129][ T5800] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc63a9eb1a8
[ 87.684201][ T5800] R13: 00007fc63a9eb180 R14: 0000000000000009 R15: 0000000000000000
[ 87.692211][ T5800]
[ 87.695641][ T5800] Kernel Offset: disabled
[ 87.699975][ T5800] 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-build1892954318=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at 6a8fcbc4a6
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=6a8fcbc4a6172c831c89c507007f59fba13408aa -X 'github.com/google/syzkaller/prog.gitRevisionDate=20250226-150939'" -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=\"6a8fcbc4a6172c831c89c507007f59fba13408aa\"
/usr/bin/ld: /tmp/cccm4gyb.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