From nobody Thu Aug 01 22:27:31 2024 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 4WZk9b4Zrcz5RZWx; Thu, 01 Aug 2024 22:27:31 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZk9b1lXTz4Yl9; Thu, 1 Aug 2024 22:27:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551251; 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=5PxQtsBb5DoaozlDhCUt61dpGKknVRO+6F3A4KGlpaQ=; b=I6S+UB/oICnPSVyeOu3pNdGWfidMEFXcVvWCDRZm4PnVceur+JmbZZKRWnGEVx2IOKFp7/ qEUBJ/XjWnCIT850yOdPjD7PllD8lc5uUurxq3YFK/5JA4uNV8FRbxLt3eXiMcrPlISIv6 JsGWPwXwKSL2aCSPtEknf3ucAE6xCbq4rAul4vL6qDj4NxGmGWK5bOACCJs+yEPLFnu3QE 49ELBEq38rMF5pJqxgRCsfURCEOnLV2R+PJ3t8hNXB8WOwDx+9HiYjFrYrYVx11OrDxZVr cz6Nl44YwsQ4q55kTQZCQiczmAFbLqWH2CDcC3/yYK8VAKg27B5C2BHgqYWj/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551251; a=rsa-sha256; cv=none; b=i3OPUFwT5Ot1KMfYoCoR35kSCFwHHRI/qDlkjHa2FuFNmXaqLc7XCm+8nie+U2SGcbTLEL GMQRG2WV8ScMRRH/OF44Hod+UF3NfuGNxr90RMWMlpw2hhxNcHbZ/rVmbYFVVupsmrWcNk gn5/9NZVp4H9RuD02m3zj8FS7/azFDjPwOTd8VIQ8fHlkUQBb1xytSUnbdxvj0MqKCAs75 KB1lwfcYiELNvlQZlalAmDNcReme7EENORK19dRmxsmVovroC6VLrS1z3jMxmQbXBYhw2m yvFHADxGrAvMat7oJFX56Mfj1EW/Bn9OYXZR9Au7CJ92hZuo/wbH2HHvjClIjQ== 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=1722551251; 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=5PxQtsBb5DoaozlDhCUt61dpGKknVRO+6F3A4KGlpaQ=; b=kfjB08fFKOVjacQ3Z4JcvKJAqxxVM56a6/VVvqZgcYhqMOfAHuIJdeVtXqcmQomBa4W8Vt nqglweHm/pa5HWj2pWPglxaoYImW8FmI5flJ8ecuTiTjfCkusSgKyfIDhg5i9Z4dqnY07M YhrMwiYlRUnXt9u88zSMcnAzZxryKSOWjvCo6ZzxeOjt2bZo7bzZPpCTlqihYoCg/Za9jU kj+PxCbOJdRm1lblFOlMJJhqPY3Fc48FzZRfcWM/IJFl9hKbcWIAcmkxXUZUK6u1raJ5yt 74/osbicflSdVPlmghDkj67SAWHyHwYGLAQOrvO66TUDl00LtfZrrx5KhuJjxw== 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 4WZk9b1KMdz12tH; Thu, 1 Aug 2024 22:27:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRVer027230; Thu, 1 Aug 2024 22:27:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRVsk027227; Thu, 1 Aug 2024 22:27:31 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:31 GMT Message-Id: <202408012227.471MRVsk027227@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 1a045267a3e5 - stable/14 - LinuxKPI: Add want_init_on_free to linux/mm.h 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1a045267a3e5fa3c6aba879cde5a860d1e467421 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1a045267a3e5fa3c6aba879cde5a860d1e467421 commit 1a045267a3e5fa3c6aba879cde5a860d1e467421 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:43 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:39 +0000 LinuxKPI: Add want_init_on_free to linux/mm.h want_init_on_free returns if heap memory zeroing on free is enabled. FreeBSD does not zeroes heap memory on free(). Sponsored by: Serenity Cyber Security Reviewed by: emaste MFC after: 1 week (cherry picked from commit 56041ee817fff844e5b2de7eedc447e388ab988e) --- sys/compat/linuxkpi/common/include/linux/mm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h index 0030cc6fb7a9..109bfffe7d6a 100644 --- a/sys/compat/linuxkpi/common/include/linux/mm.h +++ b/sys/compat/linuxkpi/common/include/linux/mm.h @@ -382,4 +382,10 @@ might_alloc(gfp_t gfp_mask __unused) #define is_cow_mapping(flags) (false) +static inline bool +want_init_on_free(void) +{ + return (false); +} + #endif /* _LINUXKPI_LINUX_MM_H_ */