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 836D41A3157 for ; Fri, 23 Jan 2026 09:59:07 +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=1769162347; cv=none; b=agC3y4HMGkZyZDQIUByRbgLt7Z6UB/0A6UI57JL4iRlHD+gqOaH4886TYEuX8i8KUkldH8JH3F2n8X+zWe2lLnCnIhXmOqAXdVb+Fls2QyR+jLCaekgnLi7FT/+DihNgbTiwg526EJRGv4ojdIiJaNleTHJtuV7SuLYrwe7064c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769162347; c=relaxed/simple; bh=lJjM8x7dS3YIgG0GBsn8XGVAYDTLZLKZZO6yMQTePbI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FrpIGsLgEQnci9oumi7WadwCT3CW558LDqgUM988vXU1GWuPawA4eUmYER4B2WF0joHDu20edaH8bpBatcrCgki4zblrLxfK6YhkBOJKueQX3DiYi79bXE7YAOeGpKRzHgjsEPG822N3uYramDy2fZqnAylSuEGkEdMelFS1+vI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SJ7og4ho; 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="SJ7og4ho" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5B91C116D0; Fri, 23 Jan 2026 09:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769162346; bh=lJjM8x7dS3YIgG0GBsn8XGVAYDTLZLKZZO6yMQTePbI=; h=From:To:Cc:Subject:Date:From; b=SJ7og4hoGhYtUQuzu2z/K8eaIIthucOHysug8uhYPPd+WLGayt1UyIKBjy24YV13P idAlxjMzQXTC4m1HbSEm9j6H0MECzsdPtWn/v26vXmncrJ1Hsf/fSuAeOx+BP3rgk4 ljpK5ICNBbyh3QCUlo4s4le4L+rZSzZ2VV42UhQcJdrPerdzXwmJuZGgqI2Sv9STgi RGVk15w1XwZnqhbDvNwFQ/ybch7b+vLHcmQKG/pSA5PlRN8P9Ic+/32IkL+43CyLnk ExwEiRTn3JFyNdBKgX0pAjlRAsXNZX25kKXUjiSOLA0KXF+mtfllcQ4kHdR9hDZ0Rr v10Ii6a+dHEJg== From: Pratyush Yadav To: Alexander Graf , Mike Rapoport , Pasha Tatashin , Pratyush Yadav , Hugh Dickins , Baolin Wang , Andrew Morton Cc: Jason Gunthorpe , Samiullah Khawaja , kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] mm: memfd_luo: preserve file seals Date: Fri, 23 Jan 2026 10:58:49 +0100 Message-ID: <20260123095854.535058-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 adds support for preserving file seals when preserving a memfd using LUO. Patch 1 exports some memfd seal manipulation functions and patch 2 adds support for preserving them. Since it makes changes to the serialized data structure for memfd, it also bumps the version number. I also plan to add some tests for this. I quickly hacked together something to test this series, but I am working on some patches that would add multiple selftests for memfd preservation. It might take me a couple weeks to get to it, so sending the main support now in the hopes of making it into the upcoming merge window. Regards, Pratyush Yadav Pratyush Yadav (Google) (2): memfd: export memfd_{add,get}_seals() mm: memfd_luo: preserve file seals include/linux/kho/abi/memfd.h | 9 ++++++++- include/linux/memfd.h | 12 ++++++++++++ mm/memfd.c | 4 ++-- mm/memfd_luo.c | 23 +++++++++++++++++++++-- 4 files changed, 43 insertions(+), 5 deletions(-) -- 2.52.0.457.g6b5491de43-goog