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 ffff8881063cc108 by task syz-executor/336
CPU: 1 UID: 0 PID: 336 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+0x184/0x200 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x163/0x550 mm/kasan/report.c:489
kasan_report+0x15f/0x190 mm/kasan/report.c:602
__asan_report_store8_noabort+0x17/0x20 mm/kasan/report_generic.c:386
hlist_add_head include/linux/list.h:1026 [inline]
binder_add_device+0x5f/0xa0 drivers/android/binder.c:6932
binderfs_binder_device_create+0x841/0xaa0 drivers/android/binderfs.c:210
binderfs_fill_super+0x8fb/0xdd0 drivers/android/binderfs.c:729
vfs_get_super fs/super.c:1280 [inline]
get_tree_nodev+0xb9/0x160 fs/super.c:1299
binderfs_fs_context_get_tree+0x1c/0x30 drivers/android/binderfs.c:749
vfs_get_tree+0x8c/0x2c0 fs/super.c:1814
do_new_mount+0x2ba/0xb40 fs/namespace.c:3560
path_mount+0x67c/0x1000 fs/namespace.c:3887
do_mount fs/namespace.c:3900 [inline]
__do_sys_mount fs/namespace.c:4111 [inline]
__se_sys_mount+0x2c1/0x3b0 fs/namespace.c:4088
__x64_sys_mount+0xbf/0xe0 fs/namespace.c:4088
x64_sys_call+0x2c9e/0x2df0 arch/x86/include/generated/asm/syscalls_64.h:166
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x50/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f9b3ed8e58a
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:00007ffd3ef158e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f9b3ee0e663 RCX: 00007f9b3ed8e58a
RDX: 00007f9b3ee1dda7 RSI: 00007f9b3ee0e663 RDI: 00007f9b3ee1dda7
RBP: 00007f9b3ee0e8ac R08: 0000000000000000 R09: 00000000000001ff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9b3edeb1a8
R13: 00007f9b3edeb180 R14: 0000000000000009 R15: 0000000000000000
Allocated by task 316:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3b/0x70 mm/kasan/common.c:68
kasan_save_alloc_info+0x38/0x50 mm/kasan/generic.c:562
poison_kmalloc_redzone mm/kasan/common.c:377 [inline]
__kasan_kmalloc+0x99/0xb0 mm/kasan/common.c:394
kasan_kmalloc include/linux/kasan.h:260 [inline]
__kmalloc_cache_noprof+0x15f/0x2d0 mm/slub.c:4325
kmalloc_noprof include/linux/slab.h:901 [inline]
kzalloc_noprof include/linux/slab.h:1037 [inline]
binderfs_binder_device_create+0x159/0xaa0 drivers/android/binderfs.c:147
binderfs_fill_super+0x8fb/0xdd0 drivers/android/binderfs.c:729
vfs_get_super fs/super.c:1280 [inline]
get_tree_nodev+0xb9/0x160 fs/super.c:1299
binderfs_fs_context_get_tree+0x1c/0x30 drivers/android/binderfs.c:749
vfs_get_tree+0x8c/0x2c0 fs/super.c:1814
do_new_mount+0x2ba/0xb40 fs/namespace.c:3560
path_mount+0x67c/0x1000 fs/namespace.c:3887
do_mount fs/namespace.c:3900 [inline]
__do_sys_mount fs/namespace.c:4111 [inline]
__se_sys_mount+0x2c1/0x3b0 fs/namespace.c:4088
__x64_sys_mount+0xbf/0xe0 fs/namespace.c:4088
x64_sys_call+0x2c9e/0x2df0 arch/x86/include/generated/asm/syscalls_64.h:166
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x50/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x76/0x7e
Freed by task 316:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3b/0x70 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+0x53/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+0x13b/0x350 mm/slub.c:4757
binderfs_evict_inode+0x187/0x220 drivers/android/binderfs.c:278
evict+0x4a7/0x930 fs/inode.c:796
iput_final fs/inode.c:1946 [inline]
iput+0x5ff/0x920 fs/inode.c:1972
dentry_unlink_inode+0x389/0x460 fs/dcache.c:440
__dentry_kill+0x207/0x640 fs/dcache.c:643
shrink_kill fs/dcache.c:1088 [inline]
shrink_dentry_list+0x315/0x510 fs/dcache.c:1115
shrink_dcache_parent+0xce/0x340
do_one_tree+0x27/0xf0 fs/dcache.c:1578
shrink_dcache_for_umount+0xa3/0x140 fs/dcache.c:1595
generic_shutdown_super+0x69/0x300 fs/super.c:620
kill_anon_super+0x46/0x1e0 fs/super.c:1237
kill_litter_super+0x56/0x60 fs/super.c:1247
binderfs_kill_super+0x41/0x60 drivers/android/binderfs.c:791
deactivate_locked_super+0xd8/0x290 fs/super.c:473
deactivate_super+0xc6/0xf0 fs/super.c:506
cleanup_mnt+0x42d/0x4d0 fs/namespace.c:1413
__cleanup_mnt+0x19/0x20 fs/namespace.c:1420
task_work_run+0x252/0x2e0 kernel/task_work.c:227
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0xb39/0x2ab0 kernel/exit.c:938
do_group_exit+0x21b/0x2d0 kernel/exit.c:1087
__do_sys_exit_group kernel/exit.c:1098 [inline]
__se_sys_exit_group kernel/exit.c:1096 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
x64_sys_call+0x2def/0x2df0 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x50/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x76/0x7e
The buggy address belongs to the object at ffff8881063cc100
which belongs to the cache kmalloc-192 of size 192
The buggy address is located 8 bytes inside of
freed 192-byte region [ffff8881063cc100, ffff8881063cc1c0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063cc
flags: 0x4000000000000000(zone=1)
page_type: f5(slab)
raw: 4000000000000000 ffff8881000413c0 ffffea000416c980 0000000000000006
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 3761886677, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1db/0x200 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0x47ee/0x4880 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x3c3/0x7d0 mm/page_alloc.c:4739
allocate_slab+0x76/0x420 mm/slub.c:2587
new_slab mm/slub.c:2640 [inline]
___slab_alloc+0x767/0xc00 mm/slub.c:3826
__slab_alloc+0x5d/0xb0 mm/slub.c:3916
__slab_alloc_node mm/slub.c:3991 [inline]
slab_alloc_node mm/slub.c:4152 [inline]
__do_kmalloc_node mm/slub.c:4293 [inline]
__kmalloc_node_track_caller_noprof+0x210/0x3f0 mm/slub.c:4313
__do_krealloc mm/slub.c:4820 [inline]
krealloc_noprof+0x104/0x2d0 mm/slub.c:4873
add_sysfs_param+0xcd/0x7e0 kernel/params.c:654
kernel_add_sysfs_param+0xb2/0x140 kernel/params.c:817
param_sysfs_builtin+0x1d3/0x290 kernel/params.c:856
param_sysfs_builtin_init+0x32/0x40 kernel/params.c:990
do_one_initcall+0x18a/0x730 init/main.c:1257
do_initcall_level+0x186/0x310 init/main.c:1319
do_initcalls+0x76/0xe0 init/main.c:1335
do_basic_setup+0x87/0xa0 init/main.c:1354
page_owner free stack trace missing
Memory state around the buggy address:
ffff8881063cc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8881063cc080: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
>ffff8881063cc100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8881063cc180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff8881063cc200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
dit: type=1400 audit(1739026989.927:62): avc: denied { noatsecure } for pid=279 comm="sshd" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[ 22.137422][ T30] audit: type=1400 audit(1739026989.927:63): avc: denied { write } for pid=279 comm="sh" path="pipe:[2337]" dev="pipefs" ino=2337 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1
[ 22.150365][ T30] audit: type=1400 audit(1739026989.927:64): avc: denied { rlimitinh } for pid=279 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[ 22.169198][ T30] audit: type=1400 audit(1739026989.927:65): avc: denied { siginh } for pid=279 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[ 23.918377][ T282] sftp-server (282) used greatest stack depth: 22544 bytes left
[ 23.927961][ T280] sshd (280) used greatest stack depth: 21584 bytes left
Warning: Permanently added '10.128.10.5' (ED25519) to the list of known hosts.
2025/02/08 15:03:18 ignoring optional flag "sandboxArg"="0"
2025/02/08 15:03:19 parsed 1 programs
[ 31.618241][ T30] audit: type=1400 audit(1739026999.417:66): avc: denied { node_bind } for pid=299 comm="syz-execprog" saddr=::1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:node_t tclass=tcp_socket permissive=1
[ 32.820892][ T30] audit: type=1400 audit(1739027000.627:67): avc: denied { mounton } for pid=307 comm="syz-executor" path="/syzcgroup/unified" dev="sda1" ino=1926 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:root_t tclass=dir permissive=1
[ 32.822129][ T307] cgroup: Unknown subsys name 'net'
[ 32.843578][ T30] audit: type=1400 audit(1739027000.627:68): avc: denied { mount } for pid=307 comm="syz-executor" name="/" dev="cgroup2" ino=1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:cgroup_t tclass=filesystem permissive=1
[ 32.870771][ T30] audit: type=1400 audit(1739027000.647:69): avc: denied { unmount } for pid=307 comm="syz-executor" scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:cgroup_t tclass=filesystem permissive=1
[ 32.870978][ T307] cgroup: Unknown subsys name 'devices'
[ 33.011890][ T307] cgroup: Unknown subsys name 'cpuset'
[ 33.017877][ T307] cgroup: Unknown subsys name 'hugetlb'
[ 33.023442][ T307] cgroup: Unknown subsys name 'rlimit'
[ 33.028885][ T307] cgroup: Unknown subsys name 'memory'
[ 33.143679][ T30] audit: type=1400 audit(1739027000.947:70): avc: denied { setattr } for pid=307 comm="syz-executor" name="raw-gadget" dev="devtmpfs" ino=254 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:device_t tclass=chr_file permissive=1
[ 33.167220][ T30] audit: type=1400 audit(1739027000.947:71): avc: denied { create } for pid=307 comm="syz-executor" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_generic_socket permissive=1
[ 33.187800][ T30] audit: type=1400 audit(1739027000.947:72): avc: denied { write } for pid=307 comm="syz-executor" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_generic_socket permissive=1
[ 33.196444][ T312] SELinux: Context root:object_r:swapfile_t is not valid (left unmapped).
[ 33.208304][ T30] audit: type=1400 audit(1739027000.947:73): avc: denied { read } for pid=307 comm="syz-executor" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_generic_socket permissive=1
[ 33.236933][ T30] audit: type=1400 audit(1739027000.947:74): avc: denied { module_request } for pid=307 comm="syz-executor" kmod="netdev-wpan0" scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:kernel_t tclass=system permissive=1
[ 33.258803][ T30] audit: type=1400 audit(1739027000.947:75): avc: denied { mounton } for pid=307 comm="syz-executor" path="/proc/sys/fs/binfmt_misc" dev="binfmt_misc" ino=1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:binfmt_misc_fs_t tclass=dir permissive=1
[ 33.282120][ T307] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 34.150670][ T321] request_module fs-gadgetfs succeeded, but still no fs?
[ 34.331428][ T322] bridge0: port 1(bridge_slave_0) entered blocking state
[ 34.352240][ T322] bridge0: port 1(bridge_slave_0) entered disabled state
[ 34.359253][ T322] bridge_slave_0: entered allmulticast mode
[ 34.365993][ T322] bridge_slave_0: entered promiscuous mode
[ 34.386645][ T322] bridge0: port 2(bridge_slave_1) entered blocking state
[ 34.393701][ T322] bridge0: port 2(bridge_slave_1) entered disabled state
[ 34.400947][ T322] bridge_slave_1: entered allmulticast mode
[ 34.406984][ T322] bridge_slave_1: entered promiscuous mode
[ 34.453622][ T336] ==================================================================
[ 34.461533][ T336] BUG: KASAN: slab-use-after-free in binder_add_device+0x5f/0xa0
[ 34.469251][ T336] Write of size 8 at addr ffff8881063cc108 by task syz-executor/336
[ 34.477068][ T336]
[ 34.479239][ T336] CPU: 1 UID: 0 PID: 336 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-00187-g8f6629c004b1 #0
[ 34.479256][ T336] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
[ 34.479269][ T336] Call Trace:
[ 34.479278][ T336]
[ 34.479284][ T336] dump_stack_lvl+0x184/0x200
[ 34.479304][ T336] ? __pfx_dump_stack_lvl+0x10/0x10
[ 34.479318][ T336] ? vprintk+0x1d/0x30
[ 34.479335][ T336] ? _printk+0xd1/0x120
[ 34.479352][ T336] print_report+0x163/0x550
[ 34.479366][ T336] ? __virt_addr_valid+0x2a4/0x380
[ 34.479387][ T336] ? kasan_complete_mode_report_info+0x71/0x210
[ 34.479407][ T336] kasan_report+0x15f/0x190
[ 34.479421][ T336] ? binder_add_device+0x5f/0xa0
[ 34.479441][ T336] ? binder_add_device+0x5f/0xa0
[ 34.479460][ T336] __asan_report_store8_noabort+0x17/0x20
[ 34.479480][ T336] binder_add_device+0x5f/0xa0
[ 34.479499][ T336] binderfs_binder_device_create+0x841/0xaa0
[ 34.479519][ T336] binderfs_fill_super+0x8fb/0xdd0
[ 34.479538][ T336] ? __pfx_binderfs_fill_super+0x10/0x10
[ 34.479560][ T336] ? shrinker_register+0x166/0x220
[ 34.479575][ T336] ? sget_fc+0x95b/0xa50
[ 34.479600][ T336] ? __pfx_set_anon_super_fc+0x10/0x10
[ 34.479623][ T336] get_tree_nodev+0xb9/0x160
[ 34.479644][ T336] ? __pfx_binderfs_fill_super+0x10/0x10
[ 34.479662][ T336] binderfs_fs_context_get_tree+0x1c/0x30
[ 34.479680][ T336] vfs_get_tree+0x8c/0x2c0
[ 34.479694][ T336] do_new_mount+0x2ba/0xb40
[ 34.479710][ T336] ? __pfx_do_new_mount+0x10/0x10
[ 34.479724][ T336] ? security_capable+0x7c/0x90
[ 34.479739][ T336] ? ns_capable+0x8a/0xf0
[ 34.479760][ T336] path_mount+0x67c/0x1000
[ 34.479775][ T336] __se_sys_mount+0x2c1/0x3b0
[ 34.479792][ T336] ? __pfx___se_sys_mount+0x10/0x10
[ 34.479809][ T336] __x64_sys_mount+0xbf/0xe0
[ 34.479824][ T336] x64_sys_call+0x2c9e/0x2df0
[ 34.479840][ T336] do_syscall_64+0x50/0x110
[ 34.479854][ T336] ? clear_bhb_loop+0x35/0x90
[ 34.479873][ T336] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 34.479890][ T336] RIP: 0033:0x7f9b3ed8e58a
[ 34.479907][ T336] 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
[ 34.479919][ T336] RSP: 002b:00007ffd3ef158e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 34.479940][ T336] RAX: ffffffffffffffda RBX: 00007f9b3ee0e663 RCX: 00007f9b3ed8e58a
[ 34.479951][ T336] RDX: 00007f9b3ee1dda7 RSI: 00007f9b3ee0e663 RDI: 00007f9b3ee1dda7
[ 34.479961][ T336] RBP: 00007f9b3ee0e8ac R08: 0000000000000000 R09: 00000000000001ff
[ 34.479971][ T336] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9b3edeb1a8
[ 34.479980][ T336] R13: 00007f9b3edeb180 R14: 0000000000000009 R15: 0000000000000000
[ 34.479992][ T336]
[ 34.480000][ T336]
[ 34.750396][ T336] Allocated by task 316:
[ 34.754515][ T336] kasan_save_track+0x3b/0x70
[ 34.759108][ T336] kasan_save_alloc_info+0x38/0x50
[ 34.764173][ T336] __kasan_kmalloc+0x99/0xb0
[ 34.768573][ T336] __kmalloc_cache_noprof+0x15f/0x2d0
[ 34.774015][ T336] binderfs_binder_device_create+0x159/0xaa0
[ 34.780009][ T336] binderfs_fill_super+0x8fb/0xdd0
[ 34.785048][ T336] get_tree_nodev+0xb9/0x160
[ 34.789881][ T336] binderfs_fs_context_get_tree+0x1c/0x30
[ 34.795575][ T336] vfs_get_tree+0x8c/0x2c0
[ 34.799926][ T336] do_new_mount+0x2ba/0xb40
[ 34.804237][ T336] path_mount+0x67c/0x1000
[ 34.808490][ T336] __se_sys_mount+0x2c1/0x3b0
[ 34.812999][ T336] __x64_sys_mount+0xbf/0xe0
[ 34.817432][ T336] x64_sys_call+0x2c9e/0x2df0
[ 34.821962][ T336] do_syscall_64+0x50/0x110
[ 34.826504][ T336] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 34.832198][ T336]
[ 34.834362][ T336] Freed by task 316:
[ 34.838105][ T336] kasan_save_track+0x3b/0x70
[ 34.842610][ T336] kasan_save_free_info+0x40/0x50
[ 34.847556][ T336] __kasan_slab_free+0x53/0x70
[ 34.852158][ T336] kfree+0x13b/0x350
[ 34.856077][ T336] binderfs_evict_inode+0x187/0x220
[ 34.861184][ T336] evict+0x4a7/0x930
[ 34.864944][ T336] iput+0x5ff/0x920
[ 34.868560][ T336] dentry_unlink_inode+0x389/0x460
[ 34.873507][ T336] __dentry_kill+0x207/0x640
[ 34.878170][ T336] shrink_dentry_list+0x315/0x510
[ 34.883026][ T336] shrink_dcache_parent+0xce/0x340
[ 34.888013][ T336] do_one_tree+0x27/0xf0
[ 34.892053][ T336] shrink_dcache_for_umount+0xa3/0x140
[ 34.897461][ T336] generic_shutdown_super+0x69/0x300
[ 34.902667][ T336] kill_anon_super+0x46/0x1e0
[ 34.907184][ T336] kill_litter_super+0x56/0x60
[ 34.911774][ T336] binderfs_kill_super+0x41/0x60
[ 34.916643][ T336] deactivate_locked_super+0xd8/0x290
[ 34.921849][ T336] deactivate_super+0xc6/0xf0
[ 34.926371][ T336] cleanup_mnt+0x42d/0x4d0
[ 34.930652][ T336] __cleanup_mnt+0x19/0x20
[ 34.934957][ T336] task_work_run+0x252/0x2e0
[ 34.939644][ T336] do_exit+0xb39/0x2ab0
[ 34.943771][ T336] do_group_exit+0x21b/0x2d0
[ 34.948179][ T336] __x64_sys_exit_group+0x3f/0x40
[ 34.953125][ T336] x64_sys_call+0x2def/0x2df0
[ 34.957746][ T336] do_syscall_64+0x50/0x110
[ 34.962080][ T336] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 34.967816][ T336]
[ 34.969990][ T336] The buggy address belongs to the object at ffff8881063cc100
[ 34.969990][ T336] which belongs to the cache kmalloc-192 of size 192
[ 34.983877][ T336] The buggy address is located 8 bytes inside of
[ 34.983877][ T336] freed 192-byte region [ffff8881063cc100, ffff8881063cc1c0)
[ 34.997355][ T336]
[ 34.999577][ T336] The buggy address belongs to the physical page:
[ 35.006027][ T336] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063cc
[ 35.014708][ T336] flags: 0x4000000000000000(zone=1)
[ 35.019742][ T336] page_type: f5(slab)
[ 35.023555][ T336] raw: 4000000000000000 ffff8881000413c0 ffffea000416c980 0000000000000006
[ 35.031975][ T336] raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
[ 35.040393][ T336] page dumped because: kasan: bad access detected
[ 35.046643][ T336] page_owner tracks the page as allocated
[ 35.052187][ T336] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 3761886677, free_ts 0
[ 35.069561][ T336] post_alloc_hook+0x1db/0x200
[ 35.074142][ T336] get_page_from_freelist+0x47ee/0x4880
[ 35.079535][ T336] __alloc_frozen_pages_noprof+0x3c3/0x7d0
[ 35.085166][ T336] allocate_slab+0x76/0x420
[ 35.089505][ T336] ___slab_alloc+0x767/0xc00
[ 35.094101][ T336] __slab_alloc+0x5d/0xb0
[ 35.098272][ T336] __kmalloc_node_track_caller_noprof+0x210/0x3f0
[ 35.104744][ T336] krealloc_noprof+0x104/0x2d0
[ 35.109349][ T336] add_sysfs_param+0xcd/0x7e0
[ 35.113940][ T336] kernel_add_sysfs_param+0xb2/0x140
[ 35.119056][ T336] param_sysfs_builtin+0x1d3/0x290
[ 35.124004][ T336] param_sysfs_builtin_init+0x32/0x40
[ 35.129443][ T336] do_one_initcall+0x18a/0x730
[ 35.134510][ T336] do_initcall_level+0x186/0x310
[ 35.139301][ T336] do_initcalls+0x76/0xe0
[ 35.143529][ T336] do_basic_setup+0x87/0xa0
[ 35.147866][ T336] page_owner free stack trace missing
[ 35.153073][ T336]
[ 35.155258][ T336] Memory state around the buggy address:
[ 35.160944][ T336] ffff8881063cc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 35.168832][ T336] ffff8881063cc080: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
[ 35.176897][ T336] >ffff8881063cc100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 35.184997][ T336] ^
[ 35.189255][ T336] ffff8881063cc180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[ 35.197347][ T336] ffff8881063cc200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 35.205272][ T336] ==================================================================
[ 35.214086][ T336] Disabling lock debugging due to kernel taint
[ 35.657443][ T200] bridge0: port 1(bridge_slave_0) entered blocking state
[ 35.664453][ T200] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 35.692561][ T200] bridge0: port 2(bridge_slave_1) entered blocking state
[ 35.699567][ T200] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 35.785173][ T322] veth0_vlan: entered promiscuous mode
[ 35.798728][ T322] veth1_macvtap: entered promiscuous mode
2025/02/08 15:03:23 executed programs: 0
[ 36.021011][ T379] bridge0: port 1(bridge_slave_0) entered blocking state
[ 36.027973][ T379] bridge0: port 1(bridge_slave_0) entered disabled state
[ 36.034996][ T379] bridge_slave_0: entered allmulticast mode
[ 36.041104][ T379] bridge_slave_0: entered promiscuous mode
[ 36.047390][ T379] bridge0: port 2(bridge_slave_1) entered blocking state
[ 36.054737][ T379] bridge0: port 2(bridge_slave_1) entered disabled state
[ 36.061776][ T379] bridge_slave_1: entered allmulticast mode
[ 36.067942][ T379] bridge_slave_1: entered promiscuous mode
[ 36.123062][ T379] bridge0: port 2(bridge_slave_1) entered blocking state
[ 36.132787][ T379] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 36.139868][ T379] bridge0: port 1(bridge_slave_0) entered blocking state
[ 36.146784][ T379] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 36.169640][ T12] bridge0: port 1(bridge_slave_0) entered disabled state
[ 36.176767][ T12] bridge0: port 2(bridge_slave_1) entered disabled state
[ 36.186130][ T200] bridge0: port 1(bridge_slave_0) entered blocking state
[ 36.193020][ T200] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 36.202470][ T200] bridge0: port 2(bridge_slave_1) entered blocking state
[ 36.209351][ T200] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 36.236111][ T379] veth0_vlan: entered promiscuous mode
[ 36.247772][ T379] veth1_macvtap: entered promiscuous mode
[ 36.309828][ T379] syz-executor (379) used greatest stack depth: 21360 bytes left
[ 36.318476][ T322] syz-executor (322) used greatest stack depth: 20600 bytes left
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-build4017805769=/tmp/go-build -gno-record-gcc-switches'
git status (err=)
HEAD detached at ef44b750e8
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=ef44b750e8fab8d6d5cb84920680581b13e0d470 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20250207-152458'" -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
mkdir -p ./bin/linux_amd64
g++ -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -std=c++17 -I. -Iexecutor/_include -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"ef44b750e8fab8d6d5cb84920680581b13e0d470\"
/usr/bin/ld: /tmp/cccuIMVT.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