KASAN: slab-use-after-free Write in binder_add_device netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 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 ffff88807db6e408 by task syz-executor/5106 CPU: 0 UID: 0 PID: 5106 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller #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+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/0x290 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+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7ff2e4d7899a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 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:00007fff40425988 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff2e4de4e88 RCX: 00007ff2e4d7899a RDX: 00007ff2e4def488 RSI: 00007ff2e4de4e88 RDI: 00007ff2e4def488 RBP: 00007fff404259c0 R08: 0000000000000000 R09: 00007fff404259c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff404259c0 R13: 00007fff404259c8 R14: 0000000000000009 R15: 0000000000000009 Allocated by task 5100: 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+0x7d/0x90 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x23e/0x360 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/0x290 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+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 5100: 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+0x36/0x50 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+0x181/0x430 mm/slub.c:4757 evict+0x4e8/0x9a0 fs/inode.c:796 __dentry_kill+0x200/0x610 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/0x120 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/0x28d0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16a6/0x1740 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x830 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+0xcd/0x330 kernel/entry/common.c:218 do_syscall_64+0x8e/0x160 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff88807db6e400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff88807db6e400, ffff88807db6e600) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7db6c 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 ffff888014c41c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff888014c41c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0001f6db01 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 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4607, tgid 4607 (udevd), ts 31942991723, free_ts 31769572786 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1ec/0x220 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3607/0x3750 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x256/0x690 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+0xc35/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+0x276/0x360 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] tomoyo_find_next_domain+0x11b/0x1dd0 security/tomoyo/domain.c:710 tomoyo_bprm_check_security+0x117/0x180 security/tomoyo/tomoyo.c:102 security_bprm_check+0x86/0x250 security/security.c:1302 search_binary_handler fs/exec.c:1765 [inline] exec_binprm fs/exec.c:1807 [inline] bprm_execve+0x8d3/0x1430 fs/exec.c:1859 do_execveat_common+0x57f/0x710 fs/exec.c:1966 do_execve fs/exec.c:2040 [inline] __do_sys_execve fs/exec.c:2116 [inline] __se_sys_execve fs/exec.c:2111 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2111 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 4601 tgid 4601 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xdf5/0x10b0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2684 [inline] __put_partials+0x15e/0x1b0 mm/slub.c:3153 put_cpu_partial+0x17c/0x250 mm/slub.c:3228 __slab_free+0x290/0x380 mm/slub.c:4479 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x60 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] kmem_cache_alloc_noprof+0x1d4/0x340 mm/slub.c:4171 getname_flags+0xb7/0x540 fs/namei.c:139 __do_sys_execve fs/exec.c:2116 [inline] __se_sys_execve fs/exec.c:2111 [inline] __x64_sys_execve+0x78/0xb0 fs/exec.c:2111 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88807db6e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807db6e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807db6e400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807db6e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807db6e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Warning: Permanently added '10.128.10.56' (ED25519) to the list of known hosts. 2025/02/17 05:32:09 ignoring optional flag "sandboxArg"="0" 2025/02/17 05:32:09 ignoring optional flag "type"="gce" 2025/02/17 05:32:09 parsed 1 programs syzkaller login: [ 66.669192][ T5090] cgroup: Unknown subsys name 'net' [ 66.821688][ T5090] cgroup: Unknown subsys name 'cpuset' [ 66.831605][ T5090] cgroup: Unknown subsys name 'rlimit' [ 66.837485][ T5090] cgroup: Unknown subsys name 'memory' [ 68.380571][ T5090] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 71.512992][ T5106] chnl_net:caif_netlink_parms(): no params data found [ 71.624662][ T5106] bridge0: port 1(bridge_slave_0) entered blocking state [ 71.636657][ T5106] bridge0: port 1(bridge_slave_0) entered disabled state [ 71.650228][ T5106] bridge_slave_0: entered allmulticast mode [ 71.664224][ T5106] bridge_slave_0: entered promiscuous mode [ 71.680530][ T5106] bridge0: port 2(bridge_slave_1) entered blocking state [ 71.696230][ T5106] bridge0: port 2(bridge_slave_1) entered disabled state [ 71.706375][ T5106] bridge_slave_1: entered allmulticast mode [ 71.717512][ T5106] bridge_slave_1: entered promiscuous mode [ 71.755617][ T5106] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 71.771666][ T5106] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 71.804002][ T5106] team0: Port device team_slave_0 added [ 71.812783][ T5106] team0: Port device team_slave_1 added [ 71.843483][ T5106] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 71.857675][ T5106] 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. [ 71.901426][ T5106] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 71.901885][ T1248] ieee802154 phy0 wpan0: encryption failed: -22 [ 71.924212][ T5106] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 71.931865][ T1248] ieee802154 phy1 wpan1: encryption failed: -22 [ 71.942050][ T5106] 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. [ 71.993240][ T5106] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 72.045077][ T5106] hsr_slave_0: entered promiscuous mode [ 72.054479][ T5106] hsr_slave_1: entered promiscuous mode [ 72.189391][ T5106] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 72.206316][ T5106] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 72.223378][ T5106] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 72.242235][ T5106] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 72.285509][ T5106] bridge0: port 2(bridge_slave_1) entered blocking state [ 72.297820][ T5106] bridge0: port 2(bridge_slave_1) entered forwarding state [ 72.310486][ T5106] bridge0: port 1(bridge_slave_0) entered blocking state [ 72.322933][ T5106] bridge0: port 1(bridge_slave_0) entered forwarding state [ 72.406022][ T5106] 8021q: adding VLAN 0 to HW filter on device bond0 [ 72.441811][ T1086] bridge0: port 1(bridge_slave_0) entered disabled state [ 72.456906][ T1086] bridge0: port 2(bridge_slave_1) entered disabled state [ 72.486213][ T5106] 8021q: adding VLAN 0 to HW filter on device team0 [ 72.506216][ T79] bridge0: port 1(bridge_slave_0) entered blocking state [ 72.515230][ T79] bridge0: port 1(bridge_slave_0) entered forwarding state [ 72.541131][ T79] bridge0: port 2(bridge_slave_1) entered blocking state [ 72.553429][ T79] bridge0: port 2(bridge_slave_1) entered forwarding state [ 72.611743][ T5106] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network [ 72.629366][ T5106] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 72.768331][ T5106] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 72.813066][ T5106] veth0_vlan: entered promiscuous mode [ 72.830292][ T5106] veth1_vlan: entered promiscuous mode [ 72.871409][ T5106] veth0_macvtap: entered promiscuous mode [ 72.886466][ T5106] veth1_macvtap: entered promiscuous mode [ 72.910193][ T5106] batman_adv: batadv0: Interface activated: batadv_slave_0 [ 72.930877][ T5106] batman_adv: batadv0: Interface activated: batadv_slave_1 [ 72.947986][ T5106] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 72.969104][ T5106] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 72.984203][ T5106] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 72.997753][ T5106] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 73.073229][ T5106] ================================================================== [ 73.086396][ T5106] BUG: KASAN: slab-use-after-free in binder_add_device+0x5f/0xa0 [ 73.097917][ T5106] Write of size 8 at addr ffff88807db6e408 by task syz-executor/5106 [ 73.109769][ T5106] [ 73.112690][ T5106] CPU: 0 UID: 0 PID: 5106 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller #0 [ 73.112714][ T5106] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 73.112729][ T5106] Call Trace: [ 73.112739][ T5106] [ 73.112748][ T5106] dump_stack_lvl+0x241/0x360 [ 73.112769][ T5106] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.112786][ T5106] ? __pfx__printk+0x10/0x10 [ 73.112810][ T5106] ? _printk+0xd5/0x120 [ 73.112831][ T5106] ? __virt_addr_valid+0x183/0x530 [ 73.112848][ T5106] ? __virt_addr_valid+0x183/0x530 [ 73.112864][ T5106] print_report+0x169/0x550 [ 73.112884][ T5106] ? __virt_addr_valid+0x183/0x530 [ 73.112899][ T5106] ? __virt_addr_valid+0x183/0x530 [ 73.112914][ T5106] ? __virt_addr_valid+0x45f/0x530 [ 73.112929][ T5106] ? __phys_addr+0xba/0x170 [ 73.112945][ T5106] ? binder_add_device+0x5f/0xa0 [ 73.112964][ T5106] kasan_report+0x143/0x180 [ 73.112983][ T5106] ? binder_add_device+0x5f/0xa0 [ 73.113004][ T5106] binder_add_device+0x5f/0xa0 [ 73.113023][ T5106] binderfs_binder_device_create+0x7bf/0x9c0 [ 73.113045][ T5106] binderfs_fill_super+0x944/0xd90 [ 73.113065][ T5106] ? __pfx_binderfs_fill_super+0x10/0x10 [ 73.113091][ T5106] ? shrinker_register+0x160/0x230 [ 73.113107][ T5106] ? sget_fc+0x909/0x9c0 [ 73.113128][ T5106] ? __pfx_set_anon_super_fc+0x10/0x10 [ 73.113150][ T5106] ? __pfx_binderfs_fill_super+0x10/0x10 [ 73.113169][ T5106] get_tree_nodev+0xb7/0x140 [ 73.113192][ T5106] vfs_get_tree+0x90/0x290 [ 73.113207][ T5106] do_new_mount+0x2be/0xb40 [ 73.113224][ T5106] ? __pfx_do_new_mount+0x10/0x10 [ 73.113245][ T5106] __se_sys_mount+0x2d6/0x3c0 [ 73.113261][ T5106] ? lockdep_hardirqs_on_prepare+0x43d/0x7a0 [ 73.113279][ T5106] ? __pfx___se_sys_mount+0x10/0x10 [ 73.113297][ T5106] ? __x64_sys_mount+0x20/0xc0 [ 73.113313][ T5106] do_syscall_64+0x82/0x160 [ 73.113331][ T5106] ? clear_bhb_loop+0x25/0x80 [ 73.113352][ T5106] ? clear_bhb_loop+0x25/0x80 [ 73.113459][ T5106] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 73.113508][ T5106] RIP: 0033:0x7ff2e4d7899a [ 73.114050][ T5106] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 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 [ 73.114063][ T5106] RSP: 002b:00007fff40425988 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 73.114080][ T5106] RAX: ffffffffffffffda RBX: 00007ff2e4de4e88 RCX: 00007ff2e4d7899a [ 73.114483][ T5106] RDX: 00007ff2e4def488 RSI: 00007ff2e4de4e88 RDI: 00007ff2e4def488 [ 73.114498][ T5106] RBP: 00007fff404259c0 R08: 0000000000000000 R09: 00007fff404259c0 [ 73.114509][ T5106] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff404259c0 [ 73.114518][ T5106] R13: 00007fff404259c8 R14: 0000000000000009 R15: 0000000000000009 [ 73.114535][ T5106] [ 73.114540][ T5106] [ 73.442979][ T5106] Allocated by task 5100: [ 73.447407][ T5106] kasan_save_track+0x3f/0x80 [ 73.452100][ T5106] __kasan_kmalloc+0x7d/0x90 [ 73.456704][ T5106] __kmalloc_cache_noprof+0x23e/0x360 [ 73.462096][ T5106] binderfs_binder_device_create+0x16c/0x9c0 [ 73.468484][ T5106] binderfs_fill_super+0x944/0xd90 [ 73.473876][ T5106] get_tree_nodev+0xb7/0x140 [ 73.478679][ T5106] vfs_get_tree+0x90/0x290 [ 73.483303][ T5106] do_new_mount+0x2be/0xb40 [ 73.488110][ T5106] __se_sys_mount+0x2d6/0x3c0 [ 73.492895][ T5106] do_syscall_64+0x82/0x160 [ 73.497579][ T5106] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 73.503580][ T5106] [ 73.506115][ T5106] Freed by task 5100: [ 73.510475][ T5106] kasan_save_track+0x3f/0x80 [ 73.515323][ T5106] kasan_save_free_info+0x40/0x50 [ 73.520451][ T5106] __kasan_slab_free+0x36/0x50 [ 73.525599][ T5106] kfree+0x181/0x430 [ 73.529727][ T5106] evict+0x4e8/0x9a0 [ 73.533681][ T5106] __dentry_kill+0x200/0x610 [ 73.538330][ T5106] shrink_kill+0xa9/0x2c0 [ 73.542885][ T5106] shrink_dentry_list+0x2c0/0x5b0 [ 73.548039][ T5106] shrink_dcache_parent+0xcb/0x3b0 [ 73.553525][ T5106] do_one_tree+0x23/0xe0 [ 73.557969][ T5106] shrink_dcache_for_umount+0xb4/0x180 [ 73.563460][ T5106] generic_shutdown_super+0x6a/0x2d0 [ 73.568872][ T5106] kill_litter_super+0x76/0xb0 [ 73.573857][ T5106] binderfs_kill_super+0x44/0x90 [ 73.578908][ T5106] deactivate_locked_super+0xc4/0x120 [ 73.584423][ T5106] cleanup_mnt+0x41f/0x4b0 [ 73.589032][ T5106] task_work_run+0x24f/0x310 [ 73.593779][ T5106] do_exit+0xa2a/0x28d0 [ 73.597967][ T5106] do_group_exit+0x207/0x2c0 [ 73.602589][ T5106] get_signal+0x16a6/0x1740 [ 73.607341][ T5106] arch_do_signal_or_restart+0x96/0x830 [ 73.612921][ T5106] syscall_exit_to_user_mode+0xcd/0x330 [ 73.618671][ T5106] do_syscall_64+0x8e/0x160 [ 73.623342][ T5106] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 73.629367][ T5106] [ 73.631780][ T5106] The buggy address belongs to the object at ffff88807db6e400 [ 73.631780][ T5106] which belongs to the cache kmalloc-512 of size 512 [ 73.646024][ T5106] The buggy address is located 8 bytes inside of [ 73.646024][ T5106] freed 512-byte region [ffff88807db6e400, ffff88807db6e600) [ 73.659922][ T5106] [ 73.662352][ T5106] The buggy address belongs to the physical page: [ 73.668973][ T5106] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7db6c [ 73.678013][ T5106] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 73.687068][ T5106] flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) [ 73.694709][ T5106] page_type: f5(slab) [ 73.698787][ T5106] raw: 00fff00000000040 ffff888014c41c80 dead000000000100 dead000000000122 [ 73.707377][ T5106] raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 [ 73.716157][ T5106] head: 00fff00000000040 ffff888014c41c80 dead000000000100 dead000000000122 [ 73.725044][ T5106] head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 [ 73.733814][ T5106] head: 00fff00000000002 ffffea0001f6db01 ffffffffffffffff 0000000000000000 [ 73.742577][ T5106] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 73.751550][ T5106] page dumped because: kasan: bad access detected [ 73.757992][ T5106] page_owner tracks the page as allocated [ 73.763895][ T5106] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4607, tgid 4607 (udevd), ts 31942991723, free_ts 31769572786 [ 73.783977][ T5106] post_alloc_hook+0x1ec/0x220 [ 73.788764][ T5106] get_page_from_freelist+0x3607/0x3750 [ 73.794511][ T5106] __alloc_frozen_pages_noprof+0x256/0x690 [ 73.800352][ T5106] alloc_pages_mpol+0x311/0x660 [ 73.805423][ T5106] allocate_slab+0x8f/0x3a0 [ 73.810029][ T5106] ___slab_alloc+0xc35/0x14a0 [ 73.815181][ T5106] __slab_alloc+0x58/0xa0 [ 73.821010][ T5106] __kmalloc_cache_noprof+0x276/0x360 [ 73.826681][ T5106] tomoyo_find_next_domain+0x11b/0x1dd0 [ 73.832845][ T5106] tomoyo_bprm_check_security+0x117/0x180 [ 73.838915][ T5106] security_bprm_check+0x86/0x250 [ 73.845202][ T5106] bprm_execve+0x8d3/0x1430 [ 73.850660][ T5106] do_execveat_common+0x57f/0x710 [ 73.856320][ T5106] __x64_sys_execve+0x92/0xb0 [ 73.861273][ T5106] do_syscall_64+0x82/0x160 [ 73.866039][ T5106] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 73.872082][ T5106] page last free pid 4601 tgid 4601 stack trace: [ 73.878598][ T5106] free_frozen_pages+0xdf5/0x10b0 [ 73.883821][ T5106] __put_partials+0x15e/0x1b0 [ 73.888622][ T5106] put_cpu_partial+0x17c/0x250 [ 73.893578][ T5106] __slab_free+0x290/0x380 [ 73.898116][ T5106] qlist_free_all+0x9a/0x140 [ 73.902828][ T5106] kasan_quarantine_reduce+0x14f/0x170 [ 73.908314][ T5106] __kasan_slab_alloc+0x23/0x60 [ 73.913270][ T5106] kmem_cache_alloc_noprof+0x1d4/0x340 [ 73.918935][ T5106] getname_flags+0xb7/0x540 [ 73.923483][ T5106] __x64_sys_execve+0x78/0xb0 [ 73.928304][ T5106] do_syscall_64+0x82/0x160 [ 73.932924][ T5106] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 73.939089][ T5106] [ 73.941670][ T5106] Memory state around the buggy address: [ 73.948470][ T5106] ffff88807db6e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 73.956809][ T5106] ffff88807db6e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 73.965247][ T5106] >ffff88807db6e400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 73.973893][ T5106] ^ [ 73.978599][ T5106] ffff88807db6e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 73.987497][ T5106] ffff88807db6e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 73.996151][ T5106] ================================================================== [ 74.011249][ T5106] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 74.018618][ T5106] CPU: 0 UID: 0 PID: 5106 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller #0 [ 74.027991][ T5106] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 74.038418][ T5106] Call Trace: [ 74.041699][ T5106] [ 74.044716][ T5106] dump_stack_lvl+0x241/0x360 [ 74.049429][ T5106] ? __pfx_dump_stack_lvl+0x10/0x10 [ 74.054765][ T5106] ? __pfx__printk+0x10/0x10 [ 74.059565][ T5106] ? preempt_schedule+0xe1/0xf0 [ 74.064427][ T5106] ? vscnprintf+0x5d/0x90 [ 74.068781][ T5106] panic+0x349/0x880 [ 74.072723][ T5106] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 74.079371][ T5106] ? check_panic_on_warn+0x21/0xb0 [ 74.084602][ T5106] ? __pfx_panic+0x10/0x10 [ 74.089168][ T5106] ? _raw_spin_unlock_irqrestore+0x130/0x140 [ 74.095170][ T5106] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 74.101595][ T5106] ? print_report+0x502/0x550 [ 74.106316][ T5106] check_panic_on_warn+0x86/0xb0 [ 74.111478][ T5106] ? binder_add_device+0x5f/0xa0 [ 74.116453][ T5106] end_report+0x77/0x150 [ 74.120840][ T5106] kasan_report+0x154/0x180 [ 74.125383][ T5106] ? binder_add_device+0x5f/0xa0 [ 74.130430][ T5106] binder_add_device+0x5f/0xa0 [ 74.135314][ T5106] binderfs_binder_device_create+0x7bf/0x9c0 [ 74.141388][ T5106] binderfs_fill_super+0x944/0xd90 [ 74.146829][ T5106] ? __pfx_binderfs_fill_super+0x10/0x10 [ 74.152605][ T5106] ? shrinker_register+0x160/0x230 [ 74.157909][ T5106] ? sget_fc+0x909/0x9c0 [ 74.162395][ T5106] ? __pfx_set_anon_super_fc+0x10/0x10 [ 74.168339][ T5106] ? __pfx_binderfs_fill_super+0x10/0x10 [ 74.174014][ T5106] get_tree_nodev+0xb7/0x140 [ 74.178715][ T5106] vfs_get_tree+0x90/0x290 [ 74.183233][ T5106] do_new_mount+0x2be/0xb40 [ 74.187931][ T5106] ? __pfx_do_new_mount+0x10/0x10 [ 74.193282][ T5106] __se_sys_mount+0x2d6/0x3c0 [ 74.198139][ T5106] ? lockdep_hardirqs_on_prepare+0x43d/0x7a0 [ 74.204459][ T5106] ? __pfx___se_sys_mount+0x10/0x10 [ 74.209814][ T5106] ? __x64_sys_mount+0x20/0xc0 [ 74.215148][ T5106] do_syscall_64+0x82/0x160 [ 74.220137][ T5106] ? clear_bhb_loop+0x25/0x80 [ 74.224876][ T5106] ? clear_bhb_loop+0x25/0x80 [ 74.229701][ T5106] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 74.235802][ T5106] RIP: 0033:0x7ff2e4d7899a [ 74.240326][ T5106] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 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 [ 74.260836][ T5106] RSP: 002b:00007fff40425988 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 74.269473][ T5106] RAX: ffffffffffffffda RBX: 00007ff2e4de4e88 RCX: 00007ff2e4d7899a [ 74.277754][ T5106] RDX: 00007ff2e4def488 RSI: 00007ff2e4de4e88 RDI: 00007ff2e4def488 [ 74.286099][ T5106] RBP: 00007fff404259c0 R08: 0000000000000000 R09: 00007fff404259c0 [ 74.294886][ T5106] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff404259c0 [ 74.304185][ T5106] R13: 00007fff404259c8 R14: 0000000000000009 R15: 0000000000000009 [ 74.312794][ T5106] [ 74.316280][ T5106] Kernel Offset: disabled [ 74.320788][ T5106] 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-build565076882=/tmp/go-build -gno-record-gcc-switches' git status (err=) HEAD detached at 46eb10b79c 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=46eb10b79c61c4032281212d862c913683ab32a0 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240726-134819'" "-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=\"46eb10b79c61c4032281212d862c913683ab32a0\" /usr/bin/ld: /tmp/ccYmXHtT.o: in function `test_cover_filter()': executor.cc:(.text+0x13e3b): warning: the use of `tempnam' is dangerous, better use `mkstemp' /usr/bin/ld: /tmp/ccYmXHtT.o: in function `Connection::Connect(char const*, char const*)': executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x2e6): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking