From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A99B3E9F96 for ; Thu, 22 Jan 2026 15:18:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769095138; cv=none; b=XVmbAkZJRLh1OyBgYVswDQ5cOopRdBXcqAqQOMm1IPCJcxKtYluu3H7kpQn2cqYhEycsxIZY+/5r7LKk9jESQgPp1B3CbxZy3kKakm45qhWyZtzv/gAYlT3Ls2Ui17PqPIDB6E2IXwhUOwcPCkoEpsBSgPg0ForGnXJ5fLL5Kc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769095138; c=relaxed/simple; bh=YWtRqEQX746dBC046hHOHXXVAXgaUJFRqU1AQ+gWZrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d2sEQ2SZLIWSD3e1qSpqLp0rNf5a2NmhHJocyjKdk1Vtb/K77WzetcGtmxMrM/5kZJPDdaCAoO+Xwl3UW0gLQrIYNFSN2KrDogf/DPRQOzBeqOXc1g4sSzNzJNzt1CPwR5jbPbgq1ybj8uKKoK1BNCp24aL7ho+Q5t0v2F9Qmyk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m3j50Q62; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m3j50Q62" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 552C7C19422; Thu, 22 Jan 2026 15:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769095137; bh=YWtRqEQX746dBC046hHOHXXVAXgaUJFRqU1AQ+gWZrE=; h=From:To:Cc:Subject:Date:From; b=m3j50Q62tM8nbh1mizsCGhX6uttEW4qp9B+nt8Vw9EI11WwosDlBeDMECQE9lJ79f +zO82adThlJuxHL+LKXf+jr/A54aEjo/0RTe5rx3lZ7y8Puhb7o3ac4qNtXLa/9pUK qdY87KXtNy4DLO2jjaoyOkLKqvFNL3ETXFjykduNmFXySjVhWjv2YTRArBuQ90j+Ot eXGVQeoPZ0BZCKQZ35+cxuV7hEqXAqx2ZeKH7dftF7wUfK94XlBOy4Rt25gnM8Ysai q8NE96mm/9DaxyauHHeVkSp8Wvk0B90eHZi2DehbSPW6qHnQRctjmjoO6Sohch68qa c4QyZ9LfRGI+Q== From: Pratyush Yadav To: Hugh Dickins , Baolin Wang , Andrew Morton , Pasha Tatashin , Mike Rapoport , Pratyush Yadav Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] mm: memfd_luo hotfixes Date: Thu, 22 Jan 2026 16:18:38 +0100 Message-ID: <20260122151842.4069702-1-pratyush@kernel.org> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Pratyush Yadav (Google)" Hi, This series contains a couple of fixes for memfd preservation using LUO. Patch 1 is a preparatory patch for patch 2. Patch 2 sets up the right flags on the file and makes sure security hooks are called. Patch 3 fixes a small memory leak in the error path. Andrew, it would be great if we can land these in v6.19, especially patches 1 and 2 since they fix a usability and a security problem. Patch 3 can wait, but then it is pretty simple too. Anyway, since it is pretty late in the cycle, I'll leave it to your judgement. Regards, Pratyush Yadav Pratyush Yadav (Google) (3): memfd: export alloc_file() mm: memfd_luo: use memfd_alloc_file() instead of shmem_file_setup() mm: memfd_luo: restore and free memfd_luo_ser on failure include/linux/memfd.h | 6 ++++++ mm/memfd.c | 4 ++-- mm/memfd_luo.c | 10 ++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) base-commit: 1ac8a55c76e78fc4fc406fd7bd872d0127d04feb -- 2.52.0.457.g6b5491de43-goog