./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor85023238 <...> Warning: Permanently added '10.128.1.111' (ED25519) to the list of known hosts. execve("./syz-executor85023238", ["./syz-executor85023238"], 0x7fffa5147010 /* 10 vars */) = 0 brk(NULL) = 0x555568a16000 brk(0x555568a16d00) = 0x555568a16d00 arch_prctl(ARCH_SET_FS, 0x555568a16380) = 0 set_tid_address(0x555568a16650) = 361 set_robust_list(0x555568a16660, 24) = 0 rseq(0x555568a16ca0, 0x20, 0, 0x53053053) = -1 ENOSYS (Function not implemented) prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor85023238", 4096) = 26 getrandom("\xa8\x20\x86\x32\xab\xe0\x3a\x21", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555568a16d00 brk(0x555568a37d00) = 0x555568a37d00 brk(0x555568a38000) = 0x555568a38000 mprotect(0x7f7eec76c000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 write(1, "executing program\n", 18executing program ) = 18 socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3 setsockopt(3, SOL_IPV6, IPV6_XFRM_POLICY, "\xac\x14\x14\xbb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 232) = 0 socket(AF_KEY, SOCK_RAW, 2) = 4 setsockopt(4, SOL_SOCKET, SO_RCVBUF, [0], 4) = 0 sendmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\x02\x0b\x00\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", iov_len=16}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 16 sendmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\x02\x12\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", iov_len=16}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 16 socket(AF_NETLINK, SOCK_RAW, NETLINK_XFRM) = 5 socket(AF_NETLINK, SOCK_RAW, NETLINK_XFRM) = 6 sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\xb8\x00\x00\x00\x13\x00\xe9\x99\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xac\x1e\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=184}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 184 socket(AF_NETLINK, SOCK_RAW, NETLINK_XFRM) = 7 sendmsg(7, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\xb8\x00\x00\x00\x13\x00\xe9\x99\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xac\x1e\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xee\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=184}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_EOR}, 0) = 184 [ 27.676462][ T23] audit: type=1400 audit(1738788972.190:66): avc: denied { execmem } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 27.694898][ T361] ================================================================== [ 27.695680][ T23] audit: type=1400 audit(1738788972.200:67): avc: denied { create } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=key_socket permissive=1 [ 27.703536][ T361] BUG: KASAN: slab-out-of-bounds in xfrm_policy_inexact_list_reinsert+0x599/0x650 [ 27.703543][ T361] Read of size 1 at addr ffff8881ef2c93d8 by task syz-executor850/361 [ 27.703545][ T361] [ 27.703560][ T361] CPU: 1 PID: 361 Comm: syz-executor850 Not tainted 5.4.289-syzkaller-00030-gcb850525fc3e #0 [ 27.703564][ T361] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 27.703567][ T361] Call Trace: [ 27.703577][ T361] dump_stack+0x1d8/0x241 [ 27.703587][ T361] ? nf_ct_l4proto_log_invalid+0x258/0x258 [ 27.703595][ T361] ? printk+0xd1/0x111 [ 27.703602][ T361] ? xfrm_policy_inexact_list_reinsert+0x599/0x650 [ 27.703611][ T361] ? wake_up_klogd+0xb2/0xf0 [ 27.703619][ T361] ? xfrm_policy_inexact_list_reinsert+0x599/0x650 [ 27.703628][ T361] print_address_description+0x8c/0x600 [ 27.703635][ T361] ? panic+0x89d/0x89d [ 27.703646][ T361] ? xfrm_policy_inexact_list_reinsert+0x599/0x650 [ 27.703653][ T361] __kasan_report+0xf3/0x120 [ 27.703662][ T361] ? xfrm_policy_inexact_list_reinsert+0x599/0x650 [ 27.703670][ T361] kasan_report+0x30/0x60 [ 27.703679][ T361] xfrm_policy_inexact_list_reinsert+0x599/0x650 [ 27.703688][ T361] ? xfrm_policy_addr_delta+0x234/0x340 [ 27.703697][ T361] xfrm_policy_inexact_insert_node+0x8f3/0xb00 [ 27.703708][ T361] ? xfrm_policy_inexact_alloc_bin+0x5b2/0x1440 [ 27.703716][ T361] xfrm_policy_inexact_alloc_chain+0x4f9/0xb10 [ 27.703729][ T361] xfrm_policy_inexact_insert+0x69/0x10e0 [ 27.703739][ T361] ? _raw_spin_lock_bh+0xa4/0x1b0 [ 27.703748][ T361] ? _raw_spin_lock_irq+0x1b0/0x1b0 [ 27.703757][ T361] ? policy_hash_bysel+0x12c/0x6f0 [ 27.703764][ T361] ? memcpy+0x38/0x50 [ 27.703773][ T361] xfrm_policy_insert+0xe1/0x8a0 [ 27.703784][ T361] xfrm_add_policy+0x4f2/0x980 [ 27.703793][ T361] ? __nla_validate+0x50/0x50 [ 27.703802][ T361] ? xfrm_dump_sa_done+0xc0/0xc0 [ 27.703811][ T361] ? __nla_parse+0x3a/0x50 [ 27.703820][ T361] xfrm_user_rcv_msg+0x689/0x9b0 [ 27.703831][ T361] ? xfrm_netlink_rcv+0x80/0x80 [ 27.703846][ T361] ? avc_has_perm+0xd2/0x260 [ 27.703859][ T361] ? avc_has_perm+0x16f/0x260 [ 27.703869][ T361] ? avc_has_perm_noaudit+0x3d0/0x3d0 [ 27.703878][ T361] netlink_rcv_skb+0x1d5/0x420 [ 27.703887][ T361] ? xfrm_netlink_rcv+0x80/0x80 [ 27.703895][ T361] ? nla_put_string+0x30/0x30 [ 27.703909][ T361] ? mutex_trylock+0xa0/0xa0 [ 27.723230][ T23] audit: type=1400 audit(1738788972.200:68): avc: denied { setopt } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=key_socket permissive=1 [ 27.732235][ T361] ? __netlink_lookup+0x369/0x390 [ 27.732248][ T361] xfrm_netlink_rcv+0x6e/0x80 [ 27.740233][ T23] audit: type=1400 audit(1738788972.200:69): avc: denied { write } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=key_socket permissive=1 [ 27.742392][ T361] netlink_unicast+0x936/0xb20 [ 27.752390][ T23] audit: type=1400 audit(1738788972.200:70): avc: denied { create } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_xfrm_socket permissive=1 [ 27.762263][ T361] ? netlink_detachskb+0x90/0x90 [ 27.762277][ T361] ? __virt_addr_valid+0x20e/0x2a0 [ 27.765395][ T23] audit: type=1400 audit(1738788972.200:71): avc: denied { write } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_xfrm_socket permissive=1 [ 27.769556][ T361] netlink_sendmsg+0xa18/0xcf0 [ 27.769569][ T361] ? netlink_getsockopt+0x550/0x550 [ 27.775200][ T23] audit: type=1400 audit(1738788972.200:72): avc: denied { nlmsg_write } for pid=361 comm="syz-executor850" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_xfrm_socket permissive=1 [ 27.779099][ T361] ? import_iovec+0x1bb/0x380 [ 27.779115][ T361] ? security_socket_sendmsg+0x7d/0xa0 [ 28.087832][ T361] ? netlink_getsockopt+0x550/0x550 [ 28.092854][ T361] ____sys_sendmsg+0x5ac/0x8f0 [ 28.097455][ T361] ? __sys_sendmsg_sock+0x2b0/0x2b0 [ 28.102491][ T361] __sys_sendmsg+0x28b/0x380 [ 28.106911][ T361] ? ____sys_sendmsg+0x8f0/0x8f0 [ 28.111686][ T361] ? ptrace_notify+0x24c/0x350 [ 28.116292][ T361] do_syscall_64+0xca/0x1c0 [ 28.120631][ T361] entry_SYSCALL_64_after_hwframe+0x5c/0xc1 [ 28.126369][ T361] RIP: 0033:0x7f7eec6f8ae9 [ 28.130607][ T361] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 28.150044][ T361] RSP: 002b:00007ffed0393358 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 28.158289][ T361] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7eec6f8ae9 [ 28.166103][ T361] RDX: 0000000000004000 RSI: 0000200000000580 RDI: 0000000000000005 [ 28.173911][ T361] RBP: 0000200000000580 R08: 0000200000000017 R09: 0000000000000000 [ 28.181724][ T361] R10: 0000200000000012 R11: 0000000000000246 R12: 0000000000000000 [ 28.189536][ T361] R13: 0000000000000000 R14: 0000000000000000 R15: 000000000000000a [ 28.197347][ T361] [ 28.199517][ T361] Allocated by task 361: [ 28.203600][ T361] __kasan_kmalloc+0x171/0x210 [ 28.208197][ T361] sk_prot_alloc+0xbd/0x3e0 [ 28.212537][ T361] sk_alloc+0x35/0x2f0 [ 28.216443][ T361] pfkey_create+0x122/0x670 [ 28.220783][ T361] __sock_create+0x3cb/0x7a0 [ 28.225208][ T361] __sys_socket+0x132/0x370 [ 28.229553][ T361] __x64_sys_socket+0x76/0x80 [ 28.234060][ T361] do_syscall_64+0xca/0x1c0 [ 28.238400][ T361] entry_SYSCALL_64_after_hwframe+0x5c/0xc1 [ 28.244124][ T361] [ 28.246297][ T361] Freed by task 7: [ 28.249861][ T361] __kasan_slab_free+0x1b5/0x270 [ 28.254633][ T361] kfree+0x123/0x370 [ 28.258362][ T361] rcu_do_batch+0x492/0xa00 [ 28.262787][ T361] rcu_core+0x4c8/0xcb0 [ 28.266780][ T361] __do_softirq+0x23b/0x6b7 [ 28.271116][ T361] [ 28.273289][ T361] The buggy address belongs to the object at ffff8881ef2c9000 [ 28.273289][ T361] which belongs to the cache kmalloc-1k of size 1024 [ 28.287178][ T361] The buggy address is located 984 bytes inside of [ 28.287178][ T361] 1024-byte region [ffff8881ef2c9000, ffff8881ef2c9400) [ 28.300365][ T361] The buggy address belongs to the page: [ 28.305887][ T361] page:ffffea0007bcb200 refcount:1 mapcount:0 mapping:ffff8881f5c02280 index:0x0 compound_mapcount: 0 [ 28.316598][ T361] flags: 0x8000000000010200(slab|head) [ 28.321899][ T361] raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881f5c02280 [ 28.330322][ T361] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 28.338727][ T361] page dumped because: kasan: bad access detected [ 28.344984][ T361] page_owner tracks the page as allocated [ 28.350545][ T361] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC) [ 28.363826][ T361] prep_new_page+0x18f/0x370 [ 28.368242][ T361] get_page_from_freelist+0x2d13/0x2d90 [ 28.373622][ T361] __alloc_pages_nodemask+0x393/0x840 [ 28.378833][ T361] alloc_slab_page+0x39/0x3c0 [ 28.383344][ T361] new_slab+0x97/0x440 [ 28.387248][ T361] ___slab_alloc+0x2fe/0x490 [ 28.391678][ T361] __slab_alloc+0x62/0xa0 [ 28.395928][ T361] __kmalloc+0x19b/0x2e0 [ 28.400009][ T361] blk_mq_realloc_hw_ctxs+0x303/0x13b0 [ 28.405301][ T361] blk_mq_init_allocated_queue+0x52d/0x1990 [ 28.411029][ T361] blk_mq_init_queue+0x49/0xa0 [ 28.415630][ T361] scsi_mq_alloc_queue+0x40/0x110 [ 28.420490][ T361] scsi_alloc_sdev+0x654/0x960 [ 28.425089][ T361] scsi_probe_and_add_lun+0x1aa/0x4010 [ 28.430388][ T361] __scsi_scan_target+0x1fb/0xe80 [ 28.435245][ T361] scsi_scan_host_selected+0x349/0x620 [ 28.440535][ T361] page_owner free stack trace missing [ 28.445741][ T361] [ 28.447911][ T361] Memory state around the buggy address: [ 28.453386][ T361] ffff8881ef2c9280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.461282][ T361] ffff8881ef2c9300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.469185][ T361] >ffff8881ef2c9380: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc sendmsg(5, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\xb8\x00\x00\x00\x13\x00\xe9\x99\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xac\x1e\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xee\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=184}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 184 exit_group(0) = ? +++ exited with 0 +++ [ 28.477075][ T361]