KASAN: slab-use-after-free Write in binder_add_device
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
==================================================================
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 ffff8880443fbc08 by task syz-executor/5326
CPU: 0 UID: 0 PID: 5326 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-gbb066fe812d6 #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:0x7f801cb874ca
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:00007ffdb7c9eeb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f801cc01ecb RCX: 00007f801cb874ca
RDX: 00007f801cc0ec27 RSI: 00007f801cc01ecb RDI: 00007f801cc0ec27
RBP: 00007f801cc020c3 R08: 0000000000000000 R09: 00007ffdb7c9ef60
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f801cbe41c8
R13: 00007f801cbe41a8 R14: 0000000000000009 R15: 0000000000000000
Allocated by task 5320:
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 5320:
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 ffff8880443fbc00
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes inside of
freed 512-byte region [ffff8880443fbc00, ffff8880443fbe00)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x443fa
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 ffffea000110fe81 ffffffffffffffff 0000000000000000
head: 0000000000000002 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 5310, tgid 5310 (syz-executor), ts 72255915855, free_ts 67343520969
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]
kernfs_fop_open+0x3e0/0xd10 fs/kernfs/file.c:623
do_dentry_open+0xdec/0x1960 fs/open.c:955
vfs_open+0x3b/0x370 fs/open.c:1085
do_open fs/namei.c:3830 [inline]
path_openat+0x2c81/0x3590 fs/namei.c:3989
do_filp_open+0x27f/0x4e0 fs/namei.c:4016
do_sys_openat2+0x13e/0x1d0 fs/open.c:1427
do_sys_open fs/open.c:1442 [inline]
__do_sys_openat fs/open.c:1458 [inline]
__se_sys_openat fs/open.c:1453 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1453
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
page last free pid 5298 tgid 5298 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
__folio_put+0x2b3/0x360 mm/swap.c:112
skb_page_unref include/linux/skbuff_ref.h:43 [inline]
__skb_frag_unref include/linux/skbuff_ref.h:56 [inline]
skb_release_data+0x483/0x8a0 net/core/skbuff.c:1119
skb_release_all net/core/skbuff.c:1190 [inline]
kfree_skb_add_bulk net/core/skbuff.c:1263 [inline]
kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1285
skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1123
skb_release_all net/core/skbuff.c:1190 [inline]
__napi_kfree_skb net/core/skbuff.c:1480 [inline]
kfree_skb_napi_cache net/core/skbuff.c:7115 [inline]
skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7137
tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline]
tcp_recvmsg_locked+0x2995/0x3c80 net/ipv4/tcp.c:2806
tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2852
inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883
sock_recvmsg_nosec net/socket.c:1018 [inline]
sock_recvmsg+0x1ae/0x280 net/socket.c:1040
sock_read_iter+0x2c4/0x3d0 net/socket.c:1110
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0x975/0xb40 fs/read_write.c:565
ksys_read+0x18f/0x2b0 fs/read_write.c:708
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:
ffff8880443fbb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8880443fbb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880443fbc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880443fbc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880443fbd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Warning: Permanently added '[localhost]:39932' (ED25519) to the list of known hosts.
2025/02/07 09:18:33 ignoring optional flag "sandboxArg"="0"
2025/02/07 09:18:33 parsed 1 programs
[ 72.290645][ T5310] cgroup: Unknown subsys name 'net'
[ 72.355749][ T5310] cgroup: Unknown subsys name 'cpuset'
[ 72.360570][ T5310] cgroup: Unknown subsys name 'rlimit'
[ 73.841030][ T5310] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 76.385174][ T1308] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.387816][ T1308] ieee802154 phy1 wpan1: encryption failed: -22
[ 79.039359][ T5320] 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.556223][ T5326] chnl_net:caif_netlink_parms(): no params data found
[ 79.636938][ T5326] bridge0: port 1(bridge_slave_0) entered blocking state
[ 79.641013][ T5326] bridge0: port 1(bridge_slave_0) entered disabled state
[ 79.652700][ T5326] bridge_slave_0: entered allmulticast mode
[ 79.655727][ T5326] bridge_slave_0: entered promiscuous mode
[ 79.661491][ T5326] bridge0: port 2(bridge_slave_1) entered blocking state
[ 79.672508][ T5326] bridge0: port 2(bridge_slave_1) entered disabled state
[ 79.675519][ T5326] bridge_slave_1: entered allmulticast mode
[ 79.678461][ T5326] bridge_slave_1: entered promiscuous mode
[ 79.717048][ T5326] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 79.722036][ T5326] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 79.763754][ T5326] team0: Port device team_slave_0 added
[ 79.774374][ T5326] team0: Port device team_slave_1 added
[ 79.804605][ T5326] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 79.807353][ T5326] batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 79.832678][ T5326] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 79.843572][ T5326] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 79.846236][ T5326] batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 79.872539][ T5326] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 79.917505][ T5326] hsr_slave_0: entered promiscuous mode
[ 79.933084][ T5326] hsr_slave_1: entered promiscuous mode
[ 80.127165][ T5326] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 80.143572][ T5326] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 80.154365][ T5326] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 80.163913][ T5326] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 80.214443][ T5326] bridge0: port 2(bridge_slave_1) entered blocking state
[ 80.217472][ T5326] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 80.220847][ T5326] bridge0: port 1(bridge_slave_0) entered blocking state
[ 80.223692][ T5326] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 80.334531][ T5326] 8021q: adding VLAN 0 to HW filter on device bond0
[ 80.364803][ T1042] bridge0: port 1(bridge_slave_0) entered disabled state
[ 80.368828][ T1042] bridge0: port 2(bridge_slave_1) entered disabled state
[ 80.387265][ T5326] 8021q: adding VLAN 0 to HW filter on device team0
[ 80.409317][ T1042] bridge0: port 1(bridge_slave_0) entered blocking state
[ 80.412305][ T1042] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 80.424121][ T1042] bridge0: port 2(bridge_slave_1) entered blocking state
[ 80.426977][ T1042] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 80.469211][ T5326] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
[ 80.493294][ T5326] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
[ 80.778271][ T5326] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 80.831308][ T5326] veth0_vlan: entered promiscuous mode
[ 80.848475][ T5326] veth1_vlan: entered promiscuous mode
[ 80.887591][ T5326] veth0_macvtap: entered promiscuous mode
[ 80.903835][ T5326] veth1_macvtap: entered promiscuous mode
[ 80.924276][ T5326] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 80.946467][ T5326] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 80.957289][ T5326] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 80.960941][ T5326] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 80.973139][ T5326] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 80.976515][ T5326] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 81.038663][ T5326] ==================================================================
[ 81.041857][ T5326] BUG: KASAN: slab-use-after-free in binder_add_device+0x5f/0xa0
[ 81.045069][ T5326] Write of size 8 at addr ffff8880443fbc08 by task syz-executor/5326
[ 81.049168][ T5326]
[ 81.050157][ T5326] CPU: 0 UID: 0 PID: 5326 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-gbb066fe812d6 #0
[ 81.050170][ T5326] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
[ 81.050178][ T5326] Call Trace:
[ 81.050184][ T5326]
[ 81.050190][ T5326] dump_stack_lvl+0x241/0x360
[ 81.050206][ T5326] ? __pfx_dump_stack_lvl+0x10/0x10
[ 81.050217][ T5326] ? __pfx__printk+0x10/0x10
[ 81.050228][ T5326] ? _printk+0xd5/0x120
[ 81.050237][ T5326] ? __virt_addr_valid+0x183/0x530
[ 81.050252][ T5326] ? __virt_addr_valid+0x183/0x530
[ 81.050268][ T5326] print_report+0x169/0x550
[ 81.050279][ T5326] ? __virt_addr_valid+0x183/0x530
[ 81.050294][ T5326] ? __virt_addr_valid+0x183/0x530
[ 81.050309][ T5326] ? __virt_addr_valid+0x45f/0x530
[ 81.050323][ T5326] ? __phys_addr+0xba/0x170
[ 81.050338][ T5326] ? binder_add_device+0x5f/0xa0
[ 81.050354][ T5326] kasan_report+0x143/0x180
[ 81.050364][ T5326] ? binder_add_device+0x5f/0xa0
[ 81.050380][ T5326] binder_add_device+0x5f/0xa0
[ 81.050395][ T5326] binderfs_binder_device_create+0x7bf/0x9c0
[ 81.050413][ T5326] binderfs_fill_super+0x944/0xd90
[ 81.050429][ T5326] ? __pfx_binderfs_fill_super+0x10/0x10
[ 81.050449][ T5326] ? shrinker_register+0x160/0x230
[ 81.050463][ T5326] ? sget_fc+0x909/0x9c0
[ 81.050477][ T5326] ? __pfx_set_anon_super_fc+0x10/0x10
[ 81.050490][ T5326] ? __pfx_binderfs_fill_super+0x10/0x10
[ 81.050511][ T5326] get_tree_nodev+0xb7/0x140
[ 81.050526][ T5326] vfs_get_tree+0x90/0x2b0
[ 81.050541][ T5326] do_new_mount+0x2be/0xb40
[ 81.050553][ T5326] ? __pfx_do_new_mount+0x10/0x10
[ 81.050566][ T5326] __se_sys_mount+0x2d6/0x3c0
[ 81.050577][ T5326] ? lockdep_hardirqs_on_prepare+0x43d/0x780
[ 81.050593][ T5326] ? __pfx___se_sys_mount+0x10/0x10
[ 81.050604][ T5326] ? do_syscall_64+0x100/0x230
[ 81.050617][ T5326] ? __x64_sys_mount+0x20/0xc0
[ 81.050628][ T5326] do_syscall_64+0xf3/0x230
[ 81.050639][ T5326] ? clear_bhb_loop+0x35/0x90
[ 81.050654][ T5326] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 81.050668][ T5326] RIP: 0033:0x7f801cb874ca
[ 81.050679][ T5326] 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
[ 81.050688][ T5326] RSP: 002b:00007ffdb7c9eeb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 81.050702][ T5326] RAX: ffffffffffffffda RBX: 00007f801cc01ecb RCX: 00007f801cb874ca
[ 81.050710][ T5326] RDX: 00007f801cc0ec27 RSI: 00007f801cc01ecb RDI: 00007f801cc0ec27
[ 81.050718][ T5326] RBP: 00007f801cc020c3 R08: 0000000000000000 R09: 00007ffdb7c9ef60
[ 81.050725][ T5326] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f801cbe41c8
[ 81.050732][ T5326] R13: 00007f801cbe41a8 R14: 0000000000000009 R15: 0000000000000000
[ 81.050743][ T5326]
[ 81.050747][ T5326]
[ 81.157422][ T5326] Allocated by task 5320:
[ 81.159087][ T5326] kasan_save_track+0x3f/0x80
[ 81.160935][ T5326] __kasan_kmalloc+0x98/0xb0
[ 81.162716][ T5326] __kmalloc_cache_noprof+0x243/0x390
[ 81.164792][ T5326] binderfs_binder_device_create+0x16c/0x9c0
[ 81.167097][ T5326] binderfs_fill_super+0x944/0xd90
[ 81.169123][ T5326] get_tree_nodev+0xb7/0x140
[ 81.170959][ T5326] vfs_get_tree+0x90/0x2b0
[ 81.172836][ T5326] do_new_mount+0x2be/0xb40
[ 81.174607][ T5326] __se_sys_mount+0x2d6/0x3c0
[ 81.176511][ T5326] do_syscall_64+0xf3/0x230
[ 81.178270][ T5326] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 81.180615][ T5326]
[ 81.181625][ T5326] Freed by task 5320:
[ 81.183183][ T5326] kasan_save_track+0x3f/0x80
[ 81.185027][ T5326] kasan_save_free_info+0x40/0x50
[ 81.187044][ T5326] __kasan_slab_free+0x59/0x70
[ 81.188925][ T5326] kfree+0x196/0x430
[ 81.190424][ T5326] evict+0x4e8/0x9a0
[ 81.191951][ T5326] __dentry_kill+0x20d/0x630
[ 81.193774][ T5326] shrink_kill+0xa9/0x2c0
[ 81.195439][ T5326] shrink_dentry_list+0x2c0/0x5b0
[ 81.197402][ T5326] shrink_dcache_parent+0xcb/0x3b0
[ 81.199336][ T5326] do_one_tree+0x23/0xe0
[ 81.200953][ T5326] shrink_dcache_for_umount+0xb4/0x180
[ 81.203010][ T5326] generic_shutdown_super+0x6a/0x2d0
[ 81.205036][ T5326] kill_litter_super+0x76/0xb0
[ 81.206874][ T5326] binderfs_kill_super+0x44/0x90
[ 81.208770][ T5326] deactivate_locked_super+0xc4/0x130
[ 81.210795][ T5326] cleanup_mnt+0x41f/0x4b0
[ 81.212490][ T5326] task_work_run+0x24f/0x310
[ 81.214255][ T5326] do_exit+0xa2a/0x28e0
[ 81.215852][ T5326] do_group_exit+0x207/0x2c0
[ 81.217625][ T5326] get_signal+0x16b2/0x1750
[ 81.219416][ T5326] arch_do_signal_or_restart+0x96/0x860
[ 81.221524][ T5326] syscall_exit_to_user_mode+0xce/0x340
[ 81.223619][ T5326] do_syscall_64+0x100/0x230
[ 81.225369][ T5326] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 81.227645][ T5326]
[ 81.228573][ T5326] The buggy address belongs to the object at ffff8880443fbc00
[ 81.228573][ T5326] which belongs to the cache kmalloc-512 of size 512
[ 81.233770][ T5326] The buggy address is located 8 bytes inside of
[ 81.233770][ T5326] freed 512-byte region [ffff8880443fbc00, ffff8880443fbe00)
[ 81.238799][ T5326]
[ 81.239720][ T5326] The buggy address belongs to the physical page:
[ 81.242167][ T5326] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x443fa
[ 81.245405][ T5326] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 81.248909][ T5326] flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff)
[ 81.251799][ T5326] page_type: f5(slab)
[ 81.253371][ T5326] raw: 04fff00000000040 ffff88801ac41c80 dead000000000100 dead000000000122
[ 81.256923][ T5326] raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
[ 81.260085][ T5326] head: 04fff00000000040 ffff88801ac41c80 dead000000000100 dead000000000122
[ 81.263291][ T5326] head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
[ 81.266657][ T5326] head: 04fff00000000001 ffffea000110fe81 ffffffffffffffff 0000000000000000
[ 81.269910][ T5326] head: 0000000000000002 0000000000000000 00000000ffffffff 0000000000000000
[ 81.273367][ T5326] page dumped because: kasan: bad access detected
[ 81.276001][ T5326] page_owner tracks the page as allocated
[ 81.278153][ T5326] page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5310, tgid 5310 (syz-executor), ts 72255915855, free_ts 67343520969
[ 81.286286][ T5326] post_alloc_hook+0x1f4/0x240
[ 81.288164][ T5326] get_page_from_freelist+0x365c/0x37a0
[ 81.290318][ T5326] __alloc_frozen_pages_noprof+0x292/0x710
[ 81.292982][ T5326] alloc_pages_mpol+0x311/0x660
[ 81.295073][ T5326] allocate_slab+0x8f/0x3a0
[ 81.296854][ T5326] ___slab_alloc+0xc27/0x14a0
[ 81.298819][ T5326] __slab_alloc+0x58/0xa0
[ 81.300488][ T5326] __kmalloc_cache_noprof+0x27b/0x390
[ 81.302822][ T5326] kernfs_fop_open+0x3e0/0xd10
[ 81.304648][ T5326] do_dentry_open+0xdec/0x1960
[ 81.306650][ T5326] vfs_open+0x3b/0x370
[ 81.308174][ T5326] path_openat+0x2c81/0x3590
[ 81.310095][ T5326] do_filp_open+0x27f/0x4e0
[ 81.312069][ T5326] do_sys_openat2+0x13e/0x1d0
[ 81.313987][ T5326] __x64_sys_openat+0x247/0x2a0
[ 81.315939][ T5326] do_syscall_64+0xf3/0x230
[ 81.317842][ T5326] page last free pid 5298 tgid 5298 stack trace:
[ 81.320235][ T5326] free_frozen_pages+0xe0d/0x10e0
[ 81.322030][ T5326] __folio_put+0x2b3/0x360
[ 81.324109][ T5326] skb_release_data+0x483/0x8a0
[ 81.326193][ T5326] kfree_skb_list_reason+0x2ee/0x750
[ 81.328204][ T5326] skb_release_data+0x5cc/0x8a0
[ 81.330079][ T5326] skb_attempt_defer_free+0x42f/0x5c0
[ 81.332122][ T5326] tcp_recvmsg_locked+0x2995/0x3c80
[ 81.334107][ T5326] tcp_recvmsg+0x25d/0x920
[ 81.335868][ T5326] inet_recvmsg+0x150/0x2d0
[ 81.337682][ T5326] sock_recvmsg+0x1ae/0x280
[ 81.339507][ T5326] sock_read_iter+0x2c4/0x3d0
[ 81.341359][ T5326] vfs_read+0x975/0xb40
[ 81.343001][ T5326] ksys_read+0x18f/0x2b0
[ 81.344888][ T5326] do_syscall_64+0xf3/0x230
[ 81.347017][ T5326] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 81.349330][ T5326]
[ 81.350287][ T5326] Memory state around the buggy address:
[ 81.352441][ T5326] ffff8880443fbb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 81.355492][ T5326] ffff8880443fbb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 81.358705][ T5326] >ffff8880443fbc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 81.361893][ T5326] ^
[ 81.363738][ T5326] ffff8880443fbc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 81.366983][ T5326] ffff8880443fbd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 81.370046][ T5326] ==================================================================
[ 81.395838][ T5326] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 81.398644][ T5326] CPU: 0 UID: 0 PID: 5326 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-gbb066fe812d6 #0
[ 81.402623][ T5326] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
[ 81.407388][ T5326] Call Trace:
[ 81.408679][ T5326]
[ 81.409841][ T5326] dump_stack_lvl+0x241/0x360
[ 81.411669][ T5326] ? __pfx_dump_stack_lvl+0x10/0x10
[ 81.413704][ T5326] ? __pfx__printk+0x10/0x10
[ 81.415504][ T5326] ? preempt_schedule+0xe1/0xf0
[ 81.417393][ T5326] ? vscnprintf+0x5d/0x90
[ 81.419033][ T5326] panic+0x349/0x880
[ 81.420597][ T5326] ? check_panic_on_warn+0x21/0xb0
[ 81.422592][ T5326] ? __pfx_panic+0x10/0x10
[ 81.424317][ T5326] ? _raw_spin_unlock_irqrestore+0x130/0x140
[ 81.426801][ T5326] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10
[ 81.429593][ T5326] ? print_report+0x502/0x550
[ 81.431435][ T5326] check_panic_on_warn+0x86/0xb0
[ 81.433388][ T5326] ? binder_add_device+0x5f/0xa0
[ 81.435336][ T5326] end_report+0x77/0x160
[ 81.437188][ T5326] kasan_report+0x154/0x180
[ 81.439110][ T5326] ? binder_add_device+0x5f/0xa0
[ 81.441037][ T5326] binder_add_device+0x5f/0xa0
[ 81.442967][ T5326] binderfs_binder_device_create+0x7bf/0x9c0
[ 81.445251][ T5326] binderfs_fill_super+0x944/0xd90
[ 81.447621][ T5326] ? __pfx_binderfs_fill_super+0x10/0x10
[ 81.449881][ T5326] ? shrinker_register+0x160/0x230
[ 81.452073][ T5326] ? sget_fc+0x909/0x9c0
[ 81.453782][ T5326] ? __pfx_set_anon_super_fc+0x10/0x10
[ 81.455923][ T5326] ? __pfx_binderfs_fill_super+0x10/0x10
[ 81.458126][ T5326] get_tree_nodev+0xb7/0x140
[ 81.460111][ T5326] vfs_get_tree+0x90/0x2b0
[ 81.461839][ T5326] do_new_mount+0x2be/0xb40
[ 81.463627][ T5326] ? __pfx_do_new_mount+0x10/0x10
[ 81.465696][ T5326] __se_sys_mount+0x2d6/0x3c0
[ 81.467568][ T5326] ? lockdep_hardirqs_on_prepare+0x43d/0x780
[ 81.469913][ T5326] ? __pfx___se_sys_mount+0x10/0x10
[ 81.472013][ T5326] ? do_syscall_64+0x100/0x230
[ 81.473912][ T5326] ? __x64_sys_mount+0x20/0xc0
[ 81.475745][ T5326] do_syscall_64+0xf3/0x230
[ 81.477470][ T5326] ? clear_bhb_loop+0x35/0x90
[ 81.479351][ T5326] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 81.481640][ T5326] RIP: 0033:0x7f801cb874ca
[ 81.483375][ T5326] 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
[ 81.490519][ T5326] RSP: 002b:00007ffdb7c9eeb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 81.493591][ T5326] RAX: ffffffffffffffda RBX: 00007f801cc01ecb RCX: 00007f801cb874ca
[ 81.496519][ T5326] RDX: 00007f801cc0ec27 RSI: 00007f801cc01ecb RDI: 00007f801cc0ec27
[ 81.499512][ T5326] RBP: 00007f801cc020c3 R08: 0000000000000000 R09: 00007ffdb7c9ef60
[ 81.502494][ T5326] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f801cbe41c8
[ 81.505558][ T5326] R13: 00007f801cbe41a8 R14: 0000000000000009 R15: 0000000000000000
[ 81.508768][ T5326]
[ 81.510278][ T5326] Kernel Offset: disabled
[ 81.511988][ T5326] Rebooting in 86400 seconds..
VM DIAGNOSIS:
09:18:45 Registers:
info registers vcpu 0
CPU#0
RAX=0000000000000065 RBX=ffffffff9a74c120 RCX=0000000000000000 RDX=00000000000003f8
RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000d3071d0
R8 =ffffffff85777deb R9 =1ffff11003d67046 R10=dffffc0000000000 R11=ffffffff85777da0
R12=dffffc0000000000 R13=0000000000000065 R14=0000000000000065 R15=00000000000003f8
RIP=ffffffff85777e1e 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 000055557c0fa500 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=00007f44e24ec440 CR3=0000000036224000 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=00000000c0c0c0c0 Opmask01=0000000000000fff 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 00007ffdb7c9eed0 0000003000000010
ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02a6f
ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02a67
ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02a9a
ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02aa7
ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02aa1
ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02ab5
ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02b3b
ZMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f801cc02c19
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-build1687608650=/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/ccIxRtF6.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