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 ffff888028b71408 by task syz-executor/5782
CPU: 0 UID: 0 PID: 5782 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #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:0x7fd58117feba
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:00007ffe6c8b7858 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fd5811f16f1 RCX: 00007fd58117feba
RDX: 00007fd5811fcaf7 RSI: 00007fd5811f16f1 RDI: 00007fd5811fcaf7
RBP: 00007fd5811f1900 R08: 0000000000000000 R09: 00000000000001ff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd5811dc068
R13: 00007fd5811dc048 R14: 0000000000000009 R15: 0000000000000000
Allocated by task 5775:
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 5775:
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 ffff888028b71400
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes inside of
freed 512-byte region [ffff888028b71400, ffff888028b71600)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x28b70
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801a041c80 0000000000000000 dead000000000001
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88801a041c80 0000000000000000 dead000000000001
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000a2dc01 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 5146, tgid 5146 (udevd), ts 33441503255, free_ts 33425612641
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 5148 tgid 5148 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
__slab_free+0x2be/0x370 mm/slub.c:4520
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]
__do_kmalloc_node mm/slub.c:4293 [inline]
__kmalloc_noprof+0x22e/0x4a0 mm/slub.c:4306
kmalloc_noprof include/linux/slab.h:905 [inline]
tomoyo_realpath_from_path+0xcb/0x5e0 security/tomoyo/realpath.c:251
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path2_perm+0x3c8/0xba0 security/tomoyo/file.c:923
tomoyo_path_rename+0x194/0x1e0 security/tomoyo/tomoyo.c:300
security_path_rename+0x25a/0x4c0 security/security.c:2026
do_renameat2+0x946/0x13f0 fs/namei.c:5213
__do_sys_rename fs/namei.c:5273 [inline]
__se_sys_rename fs/namei.c:5271 [inline]
__x64_sys_rename+0x7e/0x90 fs/namei.c:5271
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:
ffff888028b71300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888028b71380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888028b71400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888028b71480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888028b71500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Warning: Permanently added '10.128.1.124' (ED25519) to the list of known hosts.
2025/02/18 11:17:45 ignoring optional flag "sandboxArg"="0"
2025/02/18 11:17:46 parsed 1 programs
[ 79.387050][ T5765] cgroup: Unknown subsys name 'net'
[ 79.498177][ T5765] cgroup: Unknown subsys name 'cpuset'
[ 79.506568][ T5765] cgroup: Unknown subsys name 'rlimit'
[ 79.512222][ T5765] cgroup: Unknown subsys name 'memory'
[ 81.013328][ T5765] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 84.029859][ T5782] ==================================================================
[ 84.037966][ T5782] BUG: KASAN: slab-use-after-free in binder_add_device+0x5b/0xa0
[ 84.045745][ T5782] Write of size 8 at addr ffff888028b71408 by task syz-executor/5782
[ 84.053809][ T5782]
[ 84.056156][ T5782] CPU: 0 UID: 0 PID: 5782 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0
[ 84.056176][ T5782] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
[ 84.056190][ T5782] Call Trace:
[ 84.056198][ T5782]
[ 84.056206][ T5782] dump_stack_lvl+0x23d/0x360
[ 84.056232][ T5782] ? __pfx_dump_stack_lvl+0x10/0x10
[ 84.056255][ T5782] ? __pfx__printk+0x10/0x10
[ 84.056276][ T5782] ? _printk+0xd1/0x120
[ 84.056295][ T5782] ? __virt_addr_valid+0x17f/0x530
[ 84.056325][ T5782] ? __virt_addr_valid+0x17f/0x530
[ 84.056352][ T5782] print_report+0x165/0x540
[ 84.056377][ T5782] ? __virt_addr_valid+0x17f/0x530
[ 84.056402][ T5782] ? __virt_addr_valid+0x17f/0x530
[ 84.056428][ T5782] ? __virt_addr_valid+0x45b/0x530
[ 84.056453][ T5782] ? __phys_addr+0xb6/0x170
[ 84.056478][ T5782] ? binder_add_device+0x5b/0xa0
[ 84.056504][ T5782] kasan_report+0x13f/0x180
[ 84.056529][ T5782] ? binder_add_device+0x5b/0xa0
[ 84.056553][ T5782] binder_add_device+0x5b/0xa0
[ 84.056574][ T5782] binderfs_binder_device_create+0x7bf/0x9c0
[ 84.056599][ T5782] binderfs_fill_super+0x940/0xd90
[ 84.056623][ T5782] ? __pfx_binderfs_fill_super+0x10/0x10
[ 84.056652][ T5782] ? shrinker_register+0x15c/0x220
[ 84.056673][ T5782] ? sget_fc+0x905/0x9c0
[ 84.056696][ T5782] ? __pfx_set_anon_super_fc+0x10/0x10
[ 84.056722][ T5782] ? __pfx_binderfs_fill_super+0x10/0x10
[ 84.056742][ T5782] get_tree_nodev+0xb3/0x140
[ 84.056768][ T5782] vfs_get_tree+0x8c/0x280
[ 84.056784][ T5782] do_new_mount+0x2ba/0xb40
[ 84.056805][ T5782] ? __pfx_do_new_mount+0x10/0x10
[ 84.056832][ T5782] __se_sys_mount+0x2d2/0x3c0
[ 84.056852][ T5782] ? lockdep_hardirqs_on_prepare+0x439/0x7a0
[ 84.056877][ T5782] ? __pfx___se_sys_mount+0x10/0x10
[ 84.056898][ T5782] ? __x64_sys_mount+0x1c/0xc0
[ 84.056918][ T5782] do_syscall_64+0x7e/0x180
[ 84.056935][ T5782] ? clear_bhb_loop+0x45/0xa0
[ 84.056959][ T5782] ? clear_bhb_loop+0x45/0xa0
[ 84.056983][ T5782] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 84.057011][ T5782] RIP: 0033:0x7fd58117feba
[ 84.057029][ T5782] 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
[ 84.057043][ T5782] RSP: 002b:00007ffe6c8b7858 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 84.057062][ T5782] RAX: ffffffffffffffda RBX: 00007fd5811f16f1 RCX: 00007fd58117feba
[ 84.057074][ T5782] RDX: 00007fd5811fcaf7 RSI: 00007fd5811f16f1 RDI: 00007fd5811fcaf7
[ 84.057086][ T5782] RBP: 00007fd5811f1900 R08: 0000000000000000 R09: 00000000000001ff
[ 84.057097][ T5782] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd5811dc068
[ 84.057108][ T5782] R13: 00007fd5811dc048 R14: 0000000000000009 R15: 0000000000000000
[ 84.057124][ T5782]
[ 84.057129][ T5782]
[ 84.330185][ T5782] Allocated by task 5775:
[ 84.334513][ T5782] kasan_save_track+0x3b/0x70
[ 84.339204][ T5782] __kasan_kmalloc+0x94/0xb0
[ 84.343800][ T5782] __kmalloc_cache_noprof+0x237/0x370
[ 84.349173][ T5782] binderfs_binder_device_create+0x16c/0x9c0
[ 84.355338][ T5782] binderfs_fill_super+0x940/0xd90
[ 84.360456][ T5782] get_tree_nodev+0xb3/0x140
[ 84.365118][ T5782] vfs_get_tree+0x8c/0x280
[ 84.369535][ T5782] do_new_mount+0x2ba/0xb40
[ 84.374042][ T5782] __se_sys_mount+0x2d2/0x3c0
[ 84.378724][ T5782] do_syscall_64+0x7e/0x180
[ 84.383228][ T5782] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 84.389157][ T5782]
[ 84.391479][ T5782] Freed by task 5775:
[ 84.395456][ T5782] kasan_save_track+0x3b/0x70
[ 84.400142][ T5782] kasan_save_free_info+0x3c/0x50
[ 84.405168][ T5782] __kasan_slab_free+0x55/0x70
[ 84.409938][ T5782] kfree+0x18e/0x410
[ 84.414018][ T5782] evict+0x4e4/0x990
[ 84.417926][ T5782] __dentry_kill+0x200/0x610
[ 84.422525][ T5782] shrink_kill+0xa9/0x2c0
[ 84.426858][ T5782] shrink_dentry_list+0x2bc/0x5b0
[ 84.431896][ T5782] shrink_dcache_parent+0xc7/0x3b0
[ 84.437032][ T5782] do_one_tree+0x23/0xe0
[ 84.441285][ T5782] shrink_dcache_for_umount+0xb0/0x170
[ 84.446754][ T5782] generic_shutdown_super+0x66/0x2d0
[ 84.452048][ T5782] kill_litter_super+0x72/0xa0
[ 84.456823][ T5782] binderfs_kill_super+0x40/0x90
[ 84.461765][ T5782] deactivate_locked_super+0xc0/0x120
[ 84.467167][ T5782] cleanup_mnt+0x41f/0x4b0
[ 84.471590][ T5782] task_work_run+0x24b/0x310
[ 84.476191][ T5782] do_exit+0xa26/0x28d0
[ 84.480355][ T5782] do_group_exit+0x203/0x2b0
[ 84.484963][ T5782] get_signal+0x16ae/0x1740
[ 84.489492][ T5782] arch_do_signal_or_restart+0x92/0x860
[ 84.495049][ T5782] syscall_exit_to_user_mode+0xc9/0x320
[ 84.500608][ T5782] do_syscall_64+0x8a/0x180
[ 84.505122][ T5782] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 84.511026][ T5782]
[ 84.513354][ T5782] The buggy address belongs to the object at ffff888028b71400
[ 84.513354][ T5782] which belongs to the cache kmalloc-512 of size 512
[ 84.527410][ T5782] The buggy address is located 8 bytes inside of
[ 84.527410][ T5782] freed 512-byte region [ffff888028b71400, ffff888028b71600)
[ 84.541208][ T5782]
[ 84.543533][ T5782] The buggy address belongs to the physical page:
[ 84.549938][ T5782] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x28b70
[ 84.558711][ T5782] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 84.567273][ T5782] anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
[ 84.575264][ T5782] page_type: f5(slab)
[ 84.579274][ T5782] raw: 00fff00000000040 ffff88801a041c80 0000000000000000 dead000000000001
[ 84.587857][ T5782] raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
[ 84.596457][ T5782] head: 00fff00000000040 ffff88801a041c80 0000000000000000 dead000000000001
[ 84.605131][ T5782] head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
[ 84.613800][ T5782] head: 00fff00000000002 ffffea0000a2dc01 ffffffffffffffff 0000000000000000
[ 84.622472][ T5782] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[ 84.631136][ T5782] page dumped because: kasan: bad access detected
[ 84.637648][ T5782] page_owner tracks the page as allocated
[ 84.643357][ T5782] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5146, tgid 5146 (udevd), ts 33441503255, free_ts 33425612641
[ 84.664212][ T5782] post_alloc_hook+0x1e0/0x220
[ 84.668993][ T5782] get_page_from_freelist+0x35e2/0x3720
[ 84.674635][ T5782] __alloc_frozen_pages_noprof+0x252/0x680
[ 84.680461][ T5782] alloc_pages_mpol+0x30d/0x660
[ 84.685326][ T5782] allocate_slab+0x8f/0x390
[ 84.689951][ T5782] ___slab_alloc+0xc35/0x1490
[ 84.694635][ T5782] __slab_alloc+0x58/0xa0
[ 84.698995][ T5782] __kmalloc_cache_noprof+0x26f/0x370
[ 84.704370][ T5782] kernfs_fop_open+0x3dc/0xd00
[ 84.709139][ T5782] do_dentry_open+0xdea/0x1960
[ 84.713906][ T5782] vfs_open+0x37/0x360
[ 84.717988][ T5782] path_openat+0x2c79/0x3580
[ 84.722608][ T5782] do_filp_open+0x27b/0x4d0
[ 84.727120][ T5782] do_sys_openat2+0x13a/0x1d0
[ 84.731800][ T5782] __x64_sys_openat+0x243/0x290
[ 84.736662][ T5782] do_syscall_64+0x7e/0x180
[ 84.741257][ T5782] page last free pid 5148 tgid 5148 stack trace:
[ 84.747586][ T5782] free_frozen_pages+0xddf/0x10a0
[ 84.752615][ T5782] __slab_free+0x2be/0x370
[ 84.757045][ T5782] qlist_free_all+0x9a/0x130
[ 84.761729][ T5782] kasan_quarantine_reduce+0x14b/0x160
[ 84.767200][ T5782] __kasan_slab_alloc+0x1f/0x70
[ 84.772066][ T5782] __kmalloc_noprof+0x22e/0x4a0
[ 84.776918][ T5782] tomoyo_realpath_from_path+0xcb/0x5e0
[ 84.782478][ T5782] tomoyo_path2_perm+0x3c8/0xba0
[ 84.787421][ T5782] tomoyo_path_rename+0x194/0x1e0
[ 84.792474][ T5782] security_path_rename+0x25a/0x4c0
[ 84.797770][ T5782] do_renameat2+0x946/0x13f0
[ 84.802360][ T5782] __x64_sys_rename+0x7e/0x90
[ 84.807088][ T5782] do_syscall_64+0x7e/0x180
[ 84.811592][ T5782] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 84.817494][ T5782]
[ 84.819815][ T5782] Memory state around the buggy address:
[ 84.825445][ T5782] ffff888028b71300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 84.833514][ T5782] ffff888028b71380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 84.841755][ T5782] >ffff888028b71400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 84.849816][ T5782] ^
[ 84.854150][ T5782] ffff888028b71480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 84.862212][ T5782] ffff888028b71500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 84.870270][ T5782] ==================================================================
[ 84.880396][ T5782] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 84.887644][ T5782] CPU: 0 UID: 0 PID: 5782 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0
[ 84.898504][ T5782] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
[ 84.908570][ T5782] Call Trace:
[ 84.911855][ T5782]
[ 84.914791][ T5782] dump_stack_lvl+0x23d/0x360
[ 84.919512][ T5782] ? __pfx_dump_stack_lvl+0x10/0x10
[ 84.924808][ T5782] ? __pfx__printk+0x10/0x10
[ 84.929403][ T5782] ? preempt_schedule+0xdd/0xf0
[ 84.934267][ T5782] ? vscnprintf+0x59/0x80
[ 84.938608][ T5782] panic+0x345/0x880
[ 84.942508][ T5782] ? asm_sysvec_apic_timer_interrupt+0x16/0x20
[ 84.948675][ T5782] ? check_panic_on_warn+0x1d/0xa0
[ 84.953797][ T5782] ? __pfx_panic+0x10/0x10
[ 84.958257][ T5782] ? _raw_spin_unlock_irqrestore+0x12c/0x140
[ 84.964251][ T5782] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10
[ 84.970589][ T5782] ? print_report+0x4fe/0x540
[ 84.975286][ T5782] check_panic_on_warn+0x82/0xa0
[ 84.980238][ T5782] ? binder_add_device+0x5b/0xa0
[ 84.985190][ T5782] end_report+0x77/0x150
[ 84.989447][ T5782] kasan_report+0x150/0x180
[ 84.993962][ T5782] ? binder_add_device+0x5b/0xa0
[ 84.999117][ T5782] binder_add_device+0x5b/0xa0
[ 85.003888][ T5782] binderfs_binder_device_create+0x7bf/0x9c0
[ 85.009879][ T5782] binderfs_fill_super+0x940/0xd90
[ 85.014999][ T5782] ? __pfx_binderfs_fill_super+0x10/0x10
[ 85.020647][ T5782] ? shrinker_register+0x15c/0x220
[ 85.025765][ T5782] ? sget_fc+0x905/0x9c0
[ 85.030021][ T5782] ? __pfx_set_anon_super_fc+0x10/0x10
[ 85.035493][ T5782] ? __pfx_binderfs_fill_super+0x10/0x10
[ 85.041136][ T5782] get_tree_nodev+0xb3/0x140
[ 85.045744][ T5782] vfs_get_tree+0x8c/0x280
[ 85.050172][ T5782] do_new_mount+0x2ba/0xb40
[ 85.054691][ T5782] ? __pfx_do_new_mount+0x10/0x10
[ 85.059725][ T5782] __se_sys_mount+0x2d2/0x3c0
[ 85.064407][ T5782] ? lockdep_hardirqs_on_prepare+0x439/0x7a0
[ 85.070573][ T5782] ? __pfx___se_sys_mount+0x10/0x10
[ 85.075777][ T5782] ? __x64_sys_mount+0x1c/0xc0
[ 85.080545][ T5782] do_syscall_64+0x7e/0x180
[ 85.085051][ T5782] ? clear_bhb_loop+0x45/0xa0
[ 85.089739][ T5782] ? clear_bhb_loop+0x45/0xa0
[ 85.094452][ T5782] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 85.100356][ T5782] RIP: 0033:0x7fd58117feba
[ 85.104772][ T5782] 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.124382][ T5782] RSP: 002b:00007ffe6c8b7858 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 85.132801][ T5782] RAX: ffffffffffffffda RBX: 00007fd5811f16f1 RCX: 00007fd58117feba
[ 85.140777][ T5782] RDX: 00007fd5811fcaf7 RSI: 00007fd5811f16f1 RDI: 00007fd5811fcaf7
[ 85.148757][ T5782] RBP: 00007fd5811f1900 R08: 0000000000000000 R09: 00000000000001ff
[ 85.156879][ T5782] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd5811dc068
[ 85.164854][ T5782] R13: 00007fd5811dc048 R14: 0000000000000009 R15: 0000000000000000
[ 85.172832][ T5782]
[ 85.176157][ T5782] Kernel Offset: disabled
[ 85.180580][ T5782] 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-build4224298177=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at f00eed24f2
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=f00eed24f2a1332b07fef1a353a439133978d97b -X 'github.com/google/syzkaller/prog.gitRevisionDate=20241101-132521'" "-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=\"f00eed24f2a1332b07fef1a353a439133978d97b\"
/usr/bin/ld: /tmp/ccvN9OzW.o: in function `test_cover_filter()':
executor.cc:(.text+0x1426b): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/bin/ld: /tmp/ccvN9OzW.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