From nobody Fri Aug 12 19:30:38 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M4DKp5Pjsz4YsBh; Fri, 12 Aug 2022 19:30:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M4DKp50KWz3jHt; Fri, 12 Aug 2022 19:30:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660332638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3ODFy7zOsanzn1EBbppfIY8D6XlUcBBO472sx0JdYzw=; b=aTGK+7ND2wM8TKpaFxK2ucMDRrxagPv/vd1fS3xjXdA/P+ZMyxoDXfIWmAL43WeE7bhv6M CFrxFuXLaR05SCtywLfM4WhubAMeHa9HJ57YMttep9fNPGAeH6GmjzXpr1oUcGdwVlUxO3 FIuvyXVtPJ2ggel89VXViB0JmMY/s5xQvwP79xEwqXmwpRsQajdv44+07MtfAxLq0grr2p 20XWE6CUOcEL9gA/3BnxnE7uqoghExI8EMybEblhZGPG8lcdN1wuXpeTO4t9WBMvRIqKBu EBU1plgC/Tw9x+XH8WIrLv93X7OSiDq63V67uejBxvCyUUt4ln+vQtklJUMCmQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M4DKp3yb1zjtK; Fri, 12 Aug 2022 19:30:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27CJUc5u064451; Fri, 12 Aug 2022 19:30:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27CJUcoo064450; Fri, 12 Aug 2022 19:30:38 GMT (envelope-from git) Date: Fri, 12 Aug 2022 19:30:38 GMT Message-Id: <202208121930.27CJUcoo064450@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: b7bf3cb07fcf - main - keysock: explicitly initialized LIST_HEAD List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b7bf3cb07fcf633c5500171b43c1ef68b5208139 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660332638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3ODFy7zOsanzn1EBbppfIY8D6XlUcBBO472sx0JdYzw=; b=B8nJibajzeRNnwCBZGdtrj7j+6Dk5w1PEd/thI0EUdEc2XSnXrsyRstCEPIeA5Aw7GJwW/ nBGaVxKVWP91Bdbz40bQHTNc2/vOi9AamPU+aNvLP1oc3TI+EWWoGK34pAqj3bj0TSNv0i gLk1SUXX4CPuc4QSOkJnJ0HmoEfXCGnWbf1pvsEs8FkAD86w+6LSi6gBXZVvfy0rpkPizc dMl6u6kPAF7jBei9hQ3Mnrz1KJWJcI39ggW7sUS6VEg3a2rdpPcupNHl7gwZEPZRkS4eGB 4J+qMLdjKfvk84/vuT2euU0ILzYbqUV8BKvoOIeM5zbEO2AbytpWHJPI82BAZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660332638; a=rsa-sha256; cv=none; b=EOBH9dghUAynXs4uhuEUGSGcxyMko7LYA1R5a1KzIzB27zK1ru1wqLIw8oqg821m+Ysg2z bdLyKneBziK+TcKMCxjdxyyzJsNpIdbVpmrC09IXn0P5fquilJI4IYyWGGYcke1ZsL0H3T zhvxQRiSk5Bry83CIwGIQSSnrSHIkwnAJKiWT1mXXQI/1ZYbGQ7/w/xKNeDgWIdPF3r6/J 8KcDGaRWtX/GewpwhEoL3eCzsJ5HNsV37rIqq39OeO7l+w5YqAb14QKKDtIdNqVM38pu7V cO1uzG2aHZy9KyOeQHft3H0H7MbVBw2teZw2/Gxl7MmXefNMGRhrVgWTXN7eoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=b7bf3cb07fcf633c5500171b43c1ef68b5208139 commit b7bf3cb07fcf633c5500171b43c1ef68b5208139 Author: Gleb Smirnoff AuthorDate: 2022-08-12 19:29:26 +0000 Commit: Gleb Smirnoff CommitDate: 2022-08-12 19:29:26 +0000 keysock: explicitly initialized LIST_HEAD This is supposed to fix syzcaller report. Reported by: syzbot+1e08b5f9f7f00383ddea@syzkaller.appspotmail.com Fixes: ea7be1293b48385f27b97c5f112e4cad93cbd33b --- sys/netipsec/keysock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c index 148a67a1775e..8c95bc775c73 100644 --- a/sys/netipsec/keysock.c +++ b/sys/netipsec/keysock.c @@ -72,7 +72,8 @@ MTX_SYSINIT(keysock, &keysock_mtx, "key socket pcb list", MTX_DEF); #define KEYSOCK_LOCK() mtx_lock(&keysock_mtx) #define KEYSOCK_UNLOCK() mtx_unlock(&keysock_mtx) -VNET_DEFINE_STATIC(LIST_HEAD(, keycb), keycb_list); +VNET_DEFINE_STATIC(LIST_HEAD(, keycb), keycb_list) = + LIST_HEAD_INITIALIZER(keycb_list); #define V_keycb_list VNET(keycb_list) static struct sockaddr key_src = { 2, PF_KEY, };