From nobody Tue Oct 17 13:37:03 2023 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 4S8w4w09GGz4xWhg; Tue, 17 Oct 2023 13:37:04 +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 4S8w4v6m7Dz3FMK; Tue, 17 Oct 2023 13:37:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697549823; 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=/PeX+Ph75PjUS0S/l2vFsgkCfjD+6CeQAaFZvFI4kzE=; b=Sie367JI0Mm2XpbR51AyXmXAVCyik7MCkMeidlxqhRsyGBfO/d/zb+30J6B9zmmru6NktO pguRKUfXzH+9Hy6EL5lD8FKyNCBI+wNi7aj1utkp4h2CP+rU/Vjt2SbDWHrI9u5kl5ohwD VzH6Y2SUW7qLmTSYek7jO5akyIu5yS+YrDj4pPoCreHNuIZMBIQSUjx2hZRnOK6ejOhvcx afAcbwCRS2QAUQ2jt8LN6VFv4jGX9/t0t2giFVqLO10pYMmgx3t5Oh5n//XaXI2EYPWUA8 xiZ/I7lFLe6nlThHvq3pTv37yhrDC6WPkMajCNMYMvbg8sJCdlhZBwotP8EQbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697549823; a=rsa-sha256; cv=none; b=YDOc7PQBOl2eIGMeWggv2owBlkX96v0r9QB0eAmzo5+mXhsFxfro+AXyOim4oU3+JBYk7I WREZwHDOf1x9VsGtYmqEa3Y1fSbqd7PAev7CypCOD1yWn94Twtvk3enuB4WIOqgytbZrxn fm4UxvBDthxNM8OJoIpsInke4TvEM0YVK3tCaHd0/BUzWHtZr4GXpTP0u3x3CFHgnDZAbx L07v2FKO6A2ijhEilfbEJzCTxtBsHYc+2n/l+nBvcrAFWJsvfu8sd3rWig3JcVkUgqPqak JIr0pmuMOOZ6VMhN9qX9YJjcZThJ+mbVEnmh9FMnwzoEo3ZK5FrhqYgQLJerxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697549823; 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=/PeX+Ph75PjUS0S/l2vFsgkCfjD+6CeQAaFZvFI4kzE=; b=I3uHvlM+bMChOMgDFc0wBX2ncnsnYfO26+ncY2cZmhoGcf5uevacQvVkDsKrHxNdqzVjH3 Z0YUGiul/SXLHOhhprlGcHd5gzUimuZwXs0BhxF6FN2Kszuz3lrKqlMIT1k1qJaJ1zSbFE lcKu48HKSnW5DF25MCltGAqOpi0wYnadpyeykcdMi3fsX5cXLOVTtYbR3vcXw2WHPgCKm7 YsdB4e/ZLotT226yA8zDJrqRF4jeutnJHiA8p6mjwtVaxHM7JLUJ4ON3t34Ud6uWR+5+Bq jcdoKO1QsdZX9HgsZkR7TjoNoZ2vhV/htD1fXUY37PsiiQKJB9Ikq9HaolOgEQ== 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 4S8w4v5sy2z9hn; Tue, 17 Oct 2023 13:37:03 +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 39HDb3q5095647; Tue, 17 Oct 2023 13:37:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39HDb35s095644; Tue, 17 Oct 2023 13:37:03 GMT (envelope-from git) Date: Tue, 17 Oct 2023 13:37:03 GMT Message-Id: <202310171337.39HDb35s095644@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: e5caed14067b - main - kmsan: Use __builtin_memset to initialize per-thread state 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e5caed14067b40f1454d74e99789a28508d0eea3 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e5caed14067b40f1454d74e99789a28508d0eea3 commit e5caed14067b40f1454d74e99789a28508d0eea3 Author: Mark Johnston AuthorDate: 2023-10-16 19:37:19 +0000 Commit: Mark Johnston CommitDate: 2023-10-17 13:05:45 +0000 kmsan: Use __builtin_memset to initialize per-thread state Accesses to KMSAN's TLS block are not instrumented, so there's no need to use kmsan_memset(). No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc. --- sys/kern/subr_msan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_msan.c b/sys/kern/subr_msan.c index 54948370a14a..f8fdcf478b79 100644 --- a/sys/kern/subr_msan.c +++ b/sys/kern/subr_msan.c @@ -452,7 +452,7 @@ kmsan_thread_alloc(struct thread *td) sizeof(int)); mtd = malloc(sizeof(*mtd), M_KMSAN, M_WAITOK); } - kmsan_memset(mtd, 0, sizeof(*mtd)); + __builtin_memset(mtd, 0, sizeof(*mtd)); mtd->ctx = 0; if (td->td_kstack != 0)