Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp527836imn; Wed, 3 Aug 2022 14:15:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6HH4yq3Emx4HnQYcyLY/leYTqykmYyC/srhz4Ei+W5emf/YYB8RLg4kGnbeENLF1RE3Lj X-Received: by 2002:a05:6a00:1307:b0:52c:62a6:686e with SMTP id j7-20020a056a00130700b0052c62a6686emr27069327pfu.24.1659561344726; Wed, 03 Aug 2022 14:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659561344; cv=none; d=google.com; s=arc-20160816; b=ORgL/bFaN23PjRCVb5w2A+CZDMB6ZuD/7W6uZPzq6DRNl6ueCiOZi7GAO6BnAU52wx xmeTBU4cjf58/V8R9HhB9b4YVkRGh5cfpyALIB6pX69hdDeLfarrsfM0/o6y8h/y1b+J etSRbSRDeqDPu1rMc23CaoVhLEq9+ARcil+2lYjjV6w8Hw+wCOkf+CJgaWha0l82FOgi x6uad+ZRmW+6ZTEZPcsyarrF3LyAH3vhpwrg7K9x2B7hl0D5BvM1xTxjL1eD0l2JV+cK eDuwIVXI5WM/6SWdMrHzx8/ds6DwerZp6cWP8/Ui5gy1CQEC6jILuAT1b/9lnPoXdqTt AENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8Gy0vda4fEjaHYG8Mhy2G1yyPlIluCCBrlRGzTB0g14=; b=Ochcz4Zej4d31kHjokGWpuP3xKCHRbuhAQRid+gYUoeRNkrFW2Ze1en9ZaJ1FwIy5z +wwlbWI5UFHWP/bbOH0w4ODi++cljtCPtHwEqHxAsJybfh3LUSEU3Lm9+VOF93yzkV+O aNQS5kU/LxGUDfi9HbOxmvrpN8mPDMT7oH8l6khN2xiO8fIMnAlJuqFtjHws6ELJm8S0 rNP/1HP9uZM9SnqKzOikk7rMxuxlty56SP5T/pTj+ltnoSQwQYGrQ0x8xUfH4PFapGzy fU6g81Hh5qicyBmdOd/GubPhm9rbyQVbEj0XahruuL2Ug0VBPfo3DeQm+e4PVdYVsDrP dvxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=laFGVFAL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb4-20020a170903258400b0016d5fcd3f51si2983338plb.442.2022.08.03.14.15.31; Wed, 03 Aug 2022 14:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=laFGVFAL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238752AbiHCUtp (ORCPT + 99 others); Wed, 3 Aug 2022 16:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238776AbiHCUtk (ORCPT ); Wed, 3 Aug 2022 16:49:40 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9975C5C976 for ; Wed, 3 Aug 2022 13:49:38 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id o15so30044962yba.10 for ; Wed, 03 Aug 2022 13:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Gy0vda4fEjaHYG8Mhy2G1yyPlIluCCBrlRGzTB0g14=; b=laFGVFAL3xhRLfkMa/LhVhutxUhcjnrwA4WrIgp/3QjtwtJSkWhvug/i0g0Zn5ilbh LYbpue7DspLK1Cnx74t+K7pcTRX25LeQsxSydS1aX5OzCqIIGbmZy8FZOzFCwkidIsWd jXwygMEWB8M65lc1xWWbh8iHi9iWN2/W1G++E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8Gy0vda4fEjaHYG8Mhy2G1yyPlIluCCBrlRGzTB0g14=; b=3dAfiNX0gYaweAeYd90Y0mcm42iFjE9uOpqNl0E0TlT/1Qy7vf+dycLL9hSvHRF0cI zhK+SJTcX9fAUCNErEMxNeJk58f4GNkBmJuSjCmq+j/cc//r97wy7oin/OtvQueF9Wnt zpwNhuwFT3WeBq647GGgQrnsN+ZajLEhfdFHtxHX8R6y9MRb36M5cyGUOvigPdo4e3MU 7+bDYTPEQZul8NSp8D5KJGufAsc3ECxWBQ09+bL4L0+GV4OPpGWWuBSxr0+ITausUQO2 2/ZHA2p/tJ21bwl1GqRaLVNVQLfYuG7FhNg1/0zaWQi/8JdM3jIrJWRLs5u6kWz7Cd4q c1+g== X-Gm-Message-State: ACgBeo3kQVwIWoQqKC24WAd6O87Cl7NApxWvnbSkGcGx4mWtQTfOxnIJ NZnAidrvQrI5VDvfqdhuOq2GaCpfVTnLeUPnQRpQ9g== X-Received: by 2002:a25:6908:0:b0:67a:6cf9:52e0 with SMTP id e8-20020a256908000000b0067a6cf952e0mr3893457ybc.62.1659559777815; Wed, 03 Aug 2022 13:49:37 -0700 (PDT) MIME-Version: 1.0 References: <20220704000225.345536-1-dlunev@chromium.org> <20220704100221.1.I15b3f7a84ba5a97fde9276648e391b54957103ff@changeid> In-Reply-To: From: Daniil Lunev Date: Thu, 4 Aug 2022 06:49:27 +1000 Message-ID: Subject: Re: [PATCH 1/1] dm: add message command to disallow device open To: Mike Snitzer Cc: Eric Biggers , Brian Geffon , Mike Snitzer , linux-kernel@vger.kernel.org, Zdenek Kabelac , dm-devel@redhat.com, Mikulas Patocka , Alasdair Kergon Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I'm not going to take this patch. It isn't the proper way to handle > preventing use of a DM device. Can you suggest a better mechanism that would be acceptable from your perspective? > In addition, the patch's header doesn't speak to a proper > review/audit of implications this change would have > on all aspects of a DM device's capabilities. I would gladly clarify the commit message, and I am sorry for making it terse in the beginning. Can you please clarify, what capabilities are you concerned about? The change shouldn't change any existing semantics if the mechanism is never used on a specific system, and only alters "open" behaviour in the cases where the specific message was issued, but I am happy to cover any additional aspects you are concerned about Thanks, Daniil