Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp942304lqg; Sat, 2 Mar 2024 08:01:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV6L3q5XRpbYut/UbAWBQAJ6A414PM25kVyTwoeS3StpdjI7BkzqqJES6vAKSYGbGet7EPbXl/6McVv9+IGKKh5qWRtn5vGse/5Q1xA7A== X-Google-Smtp-Source: AGHT+IHobd0X4K3VV08flb2LFSxdXivgf+3uX2p4lb8FescxniNZnnFHsj1aME4SgC8rSMBagf1r X-Received: by 2002:a05:6402:308e:b0:567:26ba:d207 with SMTP id de14-20020a056402308e00b0056726bad207mr24526edb.18.1709395305379; Sat, 02 Mar 2024 08:01:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709395305; cv=pass; d=google.com; s=arc-20160816; b=yRFQ/wMAmypOtYx+8IcindLta539a+rtpoI2oP7L29BAktf6ynrO0Y3ko2xWreybLS G/fXH/F6DOdQEBOPeSwCf6uBzTPT4LRHBfT9bmuexwVUIfoOu0a4doKBY/VJcH8fYrw2 hw1yZL5E3VTieB1hYG9IGJLghBbeDZmx6v7/a1gtBY7C4+lc4x5lIbZ3DtAUluoWDdzw 9Mpd0oF+uK+M7fNtYbgi67RC6o1lbX6NrH9YRJZFa8lcAnI/Ds1K9icByk7YFgDn1nWh 3EAi8K+hqjM4aPtUcO1McURi/lwkxfx9UY2OBCNi74PKA/kKxwrBaTfHJZJNjEQiT7cO eCSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=XenCVyPUGE/ocH2LizUOZPuh6vZd/WYCNYixpMDiLyI=; fh=ey8dEnxDTimKIsYnj8AG6nh3Vebeb4u/dYeV2xpI3k0=; b=vLEjUInGAY7NO4bTEZsvvvGBhAntqr13/nhqZQGstL0hS2++bAYBVP9wKdwoRZe5np ZyfoS3OtpZXpihmTsFh+REsaAEIv2re04wwtSMDb5h2gWh8/svCfkh6/8dpAuA/80e23 O1htU2cmSWo/UsPSki1YrD/WLoNV+BLLezdOXE0H2KxKoMKIhnCtSbWOyaV5DtAN1rq5 WVHbpUUWZN269FiuoY3z3ZEbg3u/sv3VF7uiQTTL0NqGXblR0TclcOP92NQWDjxLyX74 6p9nnAKRyFPzy7Z15TanCxOV0xe6ZEt8i3kLqJDMvgs1haWnS0GW/IzA3xywzmf78HNL ydKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-89490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n3-20020aa7db43000000b0056571ee608csi2520041edt.353.2024.03.02.08.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 08:01:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-89490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EFCA91F2170C for ; Sat, 2 Mar 2024 16:01:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F05071B7F5; Sat, 2 Mar 2024 16:01:32 +0000 (UTC) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 2CFA3182CA for ; Sat, 2 Mar 2024 16:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709395292; cv=none; b=BCZ83fTw2f1H/Abv5j010sBC3XfF7hwvPzdoX1vdf38lkYZH7Ryb435vlQvcMnGG6huSXPxveU7gak0EdfhyL5Q9t5muSG0TkuKaOBh2EFuC34IhkEu4kjK7Yn1TcaWNPDAsYFXf+A24+/WMmehPDilF+xnE28xI/RpLWPXssPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709395292; c=relaxed/simple; bh=LFiAtGjubDWpNLUQxtbJ/E7SHByKNPAdC4jbSr77kCI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sy/jBDQYpgPjeDe1h7I/ElNJJE8rMjvCuLYrJqUiFij3lkf7XDn/T4JBPHIDc8yLpeXY0+X/00MiNC2+DTSRB+ScVxW39oEqkPdrCtuaGavvyyFS8NYCcaqdVajzcj9BA8EUa2gTMRsMzuBzABuntQjTc4ZhMPSzQ5xa4cy5sJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=redhat.com; arc=none smtp.client-ip=209.85.219.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-68f9e399c91so24601946d6.2 for ; Sat, 02 Mar 2024 08:01:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709395288; x=1710000088; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XenCVyPUGE/ocH2LizUOZPuh6vZd/WYCNYixpMDiLyI=; b=CESI4J3F7KyzG4UXEacilssf05o9mxTufEktsKp7fq5GIL3K6qnUEudRzNWCStxRSl 66ALsJIA3lJowu201ApONYMIAaAqSPJwChGztum10yiiIDgSBVgqW+k1fW0dOpn5UK2u pjG+QilUk5JaevYBepVJ6026lYVVapvgcLUkx62iV2KubmfJjD+o3Q9uKvcc9TKWuEb/ NI1Lt+mwY5UBor5bQYDtlwyQLBjocYd8/U+V41/Fwbeabipv7SK7aoCn0qChU5/tpoRC uzcZR3Zddo2HteqPzjqjc8gZDWSLAFxyFzuxDtpOpijRjBbrvl2N1SFtrMAozXNxJMPY /j1A== X-Forwarded-Encrypted: i=1; AJvYcCXjRSrtC8ppQ3JirZ40Y32Q2U35K7Csb0mWWeWu0b+proZgdGZTB9OWLvegxP9FgvneLYYpmuqeMMLo0xVJF9ai1+oJymN8cryDZv9O X-Gm-Message-State: AOJu0YxLZEi7jaqOF+4B5zd3re6ikk2egFfAUzOfwTeEatkb/EXQpK0s bEZGIcx8FyhDWbiAgVTKknk4H9kmlDIBTLYuzh6zo5MGjEPg2nUsLdA8lhIk5eCfYpGH8kOr/08 = X-Received: by 2002:a05:6214:57cc:b0:690:6b94:67fb with SMTP id lw12-20020a05621457cc00b006906b9467fbmr9186qvb.21.1709395288340; Sat, 02 Mar 2024 08:01:28 -0800 (PST) Received: from localhost (pool-68-160-141-91.bstnma.fios.verizon.net. [68.160.141.91]) by smtp.gmail.com with ESMTPSA id me19-20020a0562145d1300b0068f85706ecfsm3064940qvb.104.2024.03.02.08.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 08:01:27 -0800 (PST) Date: Sat, 2 Mar 2024 11:01:25 -0500 From: Mike Snitzer To: Fan Wu Cc: corbet@lwn.net, zohar@linux.ibm.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, ebiggers@kernel.org, axboe@kernel.dk, agk@redhat.com, eparis@redhat.com, paul@paul-moore.com, linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-block@vger.kernel.org, dm-devel@lists.linux.dev, audit@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v13 12/20] dm verity: set DM_TARGET_SINGLETON feature flag Message-ID: References: <1709168102-7677-1-git-send-email-wufan@linux.microsoft.com> <1709168102-7677-13-git-send-email-wufan@linux.microsoft.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: <1709168102-7677-13-git-send-email-wufan@linux.microsoft.com> On Wed, Feb 28 2024 at 7:54P -0500, Fan Wu wrote: > The device-mapper has a flag to mark targets as singleton, which is a > required flag for immutable targets. Without this flag, multiple > dm-verity targets can be added to a mapped device, which has no > practical use cases. Also from dm_table_get_immutable_target(), > it documented that "Immutable target is implicitly a singleton". > > This patch adds the missing flag, restricting only one > dm-verity target per mapped device. > > Signed-off-by: Fan Wu FYI, I have picked this one up and staged it in dm-6.9 and linux-next: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-6.9&id=9356fcfe0ac4a8545f9fc32f2e404524e1115ee6 Mike