From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: Demi Marie Obenour <demi@invisiblethingslab.com>,
Joe Thornber <thornber@redhat.com>
Cc: "Alasdair Kergon" <agk@redhat.com>,
"Mike Snitzer" <snitzer@kernel.org>,
dm-devel@redhat.com,
"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
linux-kernel@vger.kernel.org
Subject: Re: [dm-devel] [PATCH 1/2] Fail I/O to thin pool devices
Date: Tue, 7 Feb 2023 18:50:41 +0100 [thread overview]
Message-ID: <6a8e356c-cdb8-c535-b91f-4f5e2c793666@gmail.com> (raw)
In-Reply-To: <Y+J6CgDVnBlW3pO+@itl-email>
Dne 07. 02. 23 v 17:19 Demi Marie Obenour napsal(a):
> On Tue, Feb 07, 2023 at 03:02:51PM +0000, Joe Thornber wrote:
>> Nack.
>>
>> I don't see the security issue; how is this any different from running the
>> thin tools on any incorrect device? Or even the data device that the pool
>> is mirroring.
>
> I special-cased the pool device for two reasons:
>
> 1. I have run the thin tools on the pool device myself before realising
> that they needed to be run on the metadata device. It took me a
> while to realize that I was using the wrong device. I have not made
> that mistake with other devices, which is why I special-cased the
> pool device in this patch.
>
> 2. Doing I/O to the pool device is pointless. The pool device is
> strictly slower than the data device and exposes the exact same
> contents, so accessing the pool device directly is never what one
> wants.
>
> If there are backwards compatibility concerns, I could make this be
> controlled by a Kconfig option, module parameter, or both.
>
>> In general the thin tools don't modify the metadata they're
>> running on. If you know of a security issue with the thin tools please let
>> me know.
>
> I am not aware of a concrete security problem, but in general I prefer
> not to expose unnecessary attack surface.
lvm2 introduced 'protection' layer device - which keeps -tpool opened and
thus avoid possibility to use i.e. mkfs on thin-pool itself (as it requires
exclusive open)
Zdenek
prev parent reply other threads:[~2023-02-07 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-07 1:18 Demi Marie Obenour
2023-02-07 1:18 ` [PATCH 2/2] dm-thin: Allow specifying an offset Demi Marie Obenour
[not found] ` <CAJ0trDZ88Tcaf9Y75S-vB1vWXPN9UEsqPV1bTrkAtSYFfUngAQ@mail.gmail.com>
2023-02-07 16:24 ` [dm-devel] " Demi Marie Obenour
[not found] ` <CAJ0trDZsTcD43s3GQ7aKR_3eABWv0rREMrajw8xBQiu96X+B8w@mail.gmail.com>
2023-02-07 16:19 ` [dm-devel] [PATCH 1/2] Fail I/O to thin pool devices Demi Marie Obenour
2023-02-07 17:50 ` Zdenek Kabelac [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a8e356c-cdb8-c535-b91f-4f5e2c793666@gmail.com \
--to=zdenek.kabelac@gmail.com \
--cc=agk@redhat.com \
--cc=demi@invisiblethingslab.com \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marmarek@invisiblethingslab.com \
--cc=snitzer@kernel.org \
--cc=thornber@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®