From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C51703FDBFB for ; Mon, 15 Jun 2026 14:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781535258; cv=none; b=WalAJOF7sU7HmUlePiL/Y3uQwAWAxu6H91oD2hdoUsNrH9eWMRRlkDLikCBAUdlrQ4lG+TgKw/RwJrpARlBhcw1dvmXoX1FsYMfPwgmdfAtuO21IzWKNAwfP/1yXAAv0Ca9BT5jCTvYunROdsWGuolGKC/0oqxJ2zgivx3cDUjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781535258; c=relaxed/simple; bh=KYBcS7h0pNuUxhCatDx8FkyldB1WhenoX3VwO+hlFKw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Vtk1zUQfAvoTxUzaxa0bOLvpoYvbN0z6Ox7fypuaatda1vMZcuMp2lpse1U1uuSt/L8HrOg6SdML5fLrHPazPAA8Pev0vmkvajHuQMUqbXgRMGbYyCBs+LVAGJq4eQAv4s/OyII3PruR9wRDdxjakvctf/o/bPmsz0qFUnSV9/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=I6U+fGUn; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="I6U+fGUn" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-490c0c92cffso22104155e9.2 for ; Mon, 15 Jun 2026 07:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1781535254; x=1782140054; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=EmZs6H9aAPAvXyfQHo8A/76oZU6GrjxGn5dT6papBg4=; b=I6U+fGUnmTPvxmxzjRlkS4MQ94VqKcEw6ZFKest3+ZNQ/qFrhhGWthehbgGfdsXVuj tRjelmrXjtBcM1OYa6stoULIsKvm0rLypq7qOF/MGA8NdhSHiRJUGxLi+iXc+zkPxZih 9TYdPjPtas5SPwLMiveei6UrWs2cg8URlsBPPxU3BlNFFhWRU550t2Rn/+aANy4fuwb+ fi3gzTzFSnywHuaJ8gP/55Je2uLRWfOImeu9OxI2NERhv/efAqnuW7c3IFsTNZyGOm/U V7ChYZnuLe3aIg/oPfCCVQerFyliwEqahsL26rhjUY1xHrSyrOqgXFjObCSoIyQN6ST6 6ppQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781535254; x=1782140054; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EmZs6H9aAPAvXyfQHo8A/76oZU6GrjxGn5dT6papBg4=; b=Tpo5JYKKwbqunVyPNvGEi8VbC+6yqbmnJHkSXMkrUkJRdgcjHAxGxFjr6g8c7F9xX/ gKSyUPB5cjN0tivdu9fXFk0JtkSWToaBK2cE4SHb21ONYQHWKtCpMBlalr5Wtcgut/7o XMjnNnlH2QZRwfnWTimiaoqy7a8Mm9li9I9teHGA0N000DC91Kf16Hgj1fziF8KanZFa uuPAgcd+Ue9HTvkGzjx9eXIJYWmv4M/mt7t/kI3S6jC3uc79uSwaHBij2Wy9ZhQoiewe ofSrCwm5FO2lTfh6rKFpNDyZTA1FZrm0Xuw9Acwto82PwirHszRj1SK1dUS6cSTnwx4h AzZw== X-Forwarded-Encrypted: i=1; AFNElJ8ZpV+/avKSlE2FG/8fzytamYAGLHqztYfZIxK6YjkLLyVw+fLIXpYX7KOmjbSJmkMcVS/2zBxIgq8KMsQ=@vger.kernel.org X-Gm-Message-State: AOJu0Ywd1g6HY2acap4r96B7FlvhDU8sS0XNhTXWFvb14H2ka+4s0VZz sY3AgW7lRPkairWGVgMFGcaQEj9HSL9YEyVBvW2dUsSPZarOIKbVgX86RrnPvby3E7M= X-Gm-Gg: Acq92OGZ65WTWQOlY46AKx2MFgeDVwSZeI+MpnZzu/9WzJ1g0suPaIFRQ710v0/iVLF T2xl/xvL0nCA9yCkiym0m+7pFycIT2hWS+Pbn6AXSOsAWvsHnL4o7slekl5jaT3qdCYAwv1CaGP LlYhtoPavgxx2C6WwGSctWsdGMKhiOhNGj8OQQPRMuI0WmV9yGXR6lV92fPn+7+ojRJJHAgg+fH gP0j6L8xm8lQ/6tiw2fYeKrpuKN+MgFSOux23H+NlGhKXqtbWh4e3dNX+MpH49iojJAR9/C/lRp TZhv69PigIgbGtzWvxbIC56FFZvfg299N9lNJO+oGEmLmY+71yBGvJzQw24oXbUUIeWouVSqHCe yxVV1PZqOCpJWNQILmqJIHgZzdUCJwz393wbM+bGLLhL4vaR1EjwU31waRTtIqnFkexfS/r1GTg HI6NJyWejwYhI87A== X-Received: by 2002:a05:600c:3512:b0:490:bb45:79da with SMTP id 5b1f17b1804b1-490ec4d650amr196478285e9.13.1781535254039; Mon, 15 Jun 2026 07:54:14 -0700 (PDT) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3081e5d0849sm16670216eec.7.2026.06.15.07.54.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2026 07:54:12 -0700 (PDT) Date: Mon, 15 Jun 2026 22:54:06 +0800 From: joeyli To: Lorenzo Stoakes Cc: Chun-Yi Lee , "Rafael J . Wysocki" , David Howells , Andy Shevchenko , Thomas Gleixner , Matthew Garrett , Greg Kroah-Hartman , Danilo Krummrich , driver-core@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] debugfs: Fix lockdown check for mmap_prepare Message-ID: <20260615145406.GQ11413@linux-l9pv.suse> References: <20260615104750.1000-1-jlee@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) On Mon, Jun 15, 2026 at 12:18:29PM +0100, Lorenzo Stoakes wrote: > On Mon, Jun 15, 2026 at 06:47:50PM +0800, Chun-Yi Lee wrote: > > From: Chun-Yi Lee > > > > Commit 651fdda8406d ("relay: update relay to use mmap_prepare") > > changed the `mmap` file operation to `mmap_prepare` for relayfs, but > > the lockdown check in debugfs was not updated accordingly. > > > > This prevents debugfs from being locked down when the kernel is in > > integrity mode if a file uses `mmap_prepare` but not `mmap`. > > > > Since the conversion to `mmap_prepare` across the kernel is not yet > > complete, update the lockdown check to look for both `mmap` and > > `mmap_prepare` to ensure comprehensive coverage. > > > > Fixes: 651fdda8406d ("relay: update relay to use mmap_prepare") > > Signed-off-by: Chun-Yi Lee > > LGTM so: > > Reviewed-by: Lorenzo Stoakes > Thanks for Lorenzo's review! Joey Lee