From nobody Mon Apr 08 06:49:20 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 4VCfp91ZFLz5GKy3; Mon, 8 Apr 2024 06:49:21 +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 4VCfp84mCmz4mSP; Mon, 8 Apr 2024 06:49:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712558960; 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=PReE473UtV1Wx1IQMz+dHAkHdbwybkp3JvCXSVs5xYw=; b=K+v71lJL5GXWCJ+CQI5gxydbRhSEIjC3FecHz8cM5T70AxENRnsaiRS1eoVRzqTPsvVGq6 FfHqES9x+j7QKY73pLWWYF5oNwkyrWAm5Y3NdTTVlGSbMwHXzqh/vwHv4FQiCEWhhgy7eY U+y+jwC9lDSUebDJWWGprY4r+pDNvsqBI1JTLLHVMIimYNW6/IResGRheCDiXy9GldvNsT 4zDbtdxes8352jTpbCuvF+79NoulS0XO+t7lBJ7OgZ4dOXsXjcU4tsXApYn9Rwsz6Zn93b crPPZHggIKsq8LKxjRRwJLKqmUThCnI9g35Dd7TWMoNLVPYiiuinaa0r8oRomA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712558960; a=rsa-sha256; cv=none; b=aKAK/1hYY+ag+4Vj8DkbOcJuLVItZ8k338nsbYl44t+KK4+WlfZj58FAzjdRtUortId1j4 M3vregdiPJ/6Pzk8IbgbBvE68FDFzk/x2AmrI/Si1zLt8iMVjQmWZrzKSMbvv8ZtYdTigu srBGl3J+9bK27/v5l18/Z3kBdGH0D2GbjSo3mO0ncKCj+5001NNVbQphSmlkXlxomKF6++ YLPaCa35tBi9xAOsuQz/sEudDa8HNWpd9sRHpwUZx8ZB87cFtvzaAfp0navIFNC0PIORZS UeAd1XCBmc6Zu2KpJcnD3kbAyjrE2tpDlLqkXSNtJsR1kWLz9EMZm2BStplCZQ== 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=1712558960; 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=PReE473UtV1Wx1IQMz+dHAkHdbwybkp3JvCXSVs5xYw=; b=M26JmEwghyzUCNRMNKPcK2+q7x5O5go5oH8u+EyULeYw/dPwa10mpNnZlyxxUQ+cuYYDqR VDhV0DRxIxHjd6CitSP/kEQfO9LywVbwslO3Y0axsHUU6C2PizykdxnukrC3HO6ry+Ceyc PpoeXkzFj97Spi7246eFhiEi0DYC9D+Hey8sg6jb7iHqpTAXRFDF33uIN+EtG42ax0NXbF gaqTZeUDMrXCQ6JmFpV9h7gzHn9MWGXFYmIocDe+thHRTw8bOO9ESyGzUvCbopIqnNRLVG DCWbEiCbu8q74TzSXex/VaKK67tcF1oRGdVm0RNJ/bis8BIvNOG23tKweFbDOw== 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 4VCfp84MDwz115M; Mon, 8 Apr 2024 06:49:20 +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 4386nKDn033110; Mon, 8 Apr 2024 06:49:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4386nK7B033107; Mon, 8 Apr 2024 06:49:20 GMT (envelope-from git) Date: Mon, 8 Apr 2024 06:49:20 GMT Message-Id: <202404080649.4386nK7B033107@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 56041ee817ff - main - 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: 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56041ee817fff844e5b2de7eedc447e388ab988e Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=56041ee817fff844e5b2de7eedc447e388ab988e commit 56041ee817fff844e5b2de7eedc447e388ab988e Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:43 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-04-08 06:47:43 +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 --- 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_ */