From nobody Sat Jul 1 18:40:13 2023 X-Original-To: dev-commits-src-main@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 4QtgwY4ZV5z4kjPw; Sat, 1 Jul 2023 18:40:13 +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 4QtgwY47rXz4JKN; Sat, 1 Jul 2023 18:40:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688236813; 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=AGhaIKUFJD43BbzrabW4k4nRYLNSDjS3QlC3rtAR+dQ=; b=olDVP4MN/cEH7fR696v4wy6HZE8GgCzQFwoIoT/WDAsBJDBbP9BmnCdn38bgNN/wHnMAPo ePVUSw1Mox/EjvdEjL0MDjBirIiRCHGd6AlP+XIzQIIGVC7H1O5yh9+ieKYjpGObaSydKA 3JpsLZlw/eZ/u0vaDvLqq97pobVntCEkc2LPH6HSfLmbrTJwcMEahzbq7VPQHDayA3+jBa NLkeUoksVdJ6WoQMxOxWU+kxkU7dXH4kIz3/BeMtwn83LTuRjgJ+h6uoAHY9s69f/A/37L q9ZBnSxStFUZB++UhDkLPnAkqz1fT0gp7Rkoq2DJv0t4PzVGkBK7Bk6bBo6kjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688236813; 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=AGhaIKUFJD43BbzrabW4k4nRYLNSDjS3QlC3rtAR+dQ=; b=qnnJT0t+3YB25kMDKjWMJ0FvEN5kejdSfvtpNELZWxQikXhHLdCm1KG7Ao0GLBs7qn0B1P b5jaoLUxDcO2tj3c5KB2Z/Z+T/WLAYnSRbHgkLW1CKBCEZeDFjnAx6a+DKJBUpD2ehN9Pz qAIdlpghFHu6MG1MGHzd+kCCw79TVoGEumKr4h2oLAI5fKL66f4kljGlyisoIYE3IbYAut KGdALn9SG4MA1YcqbDfAXOdSUB2FFfOu5TeEPsuoo4TBLJlMDmdzw5amYUOXQdtoxsHwgW V0C1L3ER90HXlqIrc+3tHis22kpKfaeqBYmGfy8UlDTPLCVvYlh23n+XfW41Kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688236813; a=rsa-sha256; cv=none; b=IxXp8QrBItpMgZ/dsFuUIsSTTk5C9WGGmO77FBBkH7VwEz6OJqjYdcStbiFwCAAUQ9UF+F 88M9IQ1e2lK24FNkIhW1R4RrvVCTGtfYCofJBqOJYsQUlsPxf5HZBXFHUeM1bOaRo/4B3r /I2Ypx5qnJsNPIkRkQ4VWNfFFswx+kuRHye2vMQc8TR5ejrq1vTBB0luJ+4ioAcEf/VVZm 5B9ZrCIu9qfurvdpzdh3Z9cjAcvxBr3ChQIAU9A0t/ZSVLrQKETpj93B9WE3cTynPb9fT5 PozaWyNgKTflfxG4FtD/zhdejQ/4FG6tNttrTtFw0rFOYq5RGKI6ljY4OPQkWA== 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 4QtgwY3DRbzbvb; Sat, 1 Jul 2023 18:40:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 361IeDLq093919; Sat, 1 Jul 2023 18:40:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 361IeDFQ093910; Sat, 1 Jul 2023 18:40:13 GMT (envelope-from git) Date: Sat, 1 Jul 2023 18:40:13 GMT Message-Id: <202307011840.361IeDFQ093910@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ka Ho Ng Subject: git: 2cab2d43b83b - main - syscalls: fix modspecific_t stack content leak List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: khng X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2cab2d43b83bddd44ecc1f267afb5e2725975ac7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=2cab2d43b83bddd44ecc1f267afb5e2725975ac7 commit 2cab2d43b83bddd44ecc1f267afb5e2725975ac7 Author: Ka Ho Ng AuthorDate: 2023-06-27 19:33:46 +0000 Commit: Ka Ho Ng CommitDate: 2023-07-01 18:38:11 +0000 syscalls: fix modspecific_t stack content leak Zero-initialize the whole modspecific_t so that there would not be kernel stack content leak in the unused part. Sponsored by: Juniper Networks, Inc. MFC after: 1 days Differential Revision: https://reviews.freebsd.org/D40815 --- sys/kern/kern_syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c index a6e515fc0ce8..234e51cfd280 100644 --- a/sys/kern/kern_syscalls.c +++ b/sys/kern/kern_syscalls.c @@ -173,7 +173,7 @@ kern_syscall_module_handler(struct sysent *sysents, struct module *mod, int what, void *arg) { struct syscall_module_data *data = arg; - modspecific_t ms; + modspecific_t ms = { 0 }; int error; switch (what) {