Re: [dm-devel] [PATCH v4 00/13] support non power of 2 zoned devices

2022-05-18 Thread Luis Chamberlain
On Thu, May 19, 2022 at 12:08:26PM +0900, Damien Le Moal wrote: > On 5/18/22 00:34, Theodore Ts'o wrote: > > On Tue, May 17, 2022 at 10:10:48AM +0200, Christoph Hellwig wrote: > >> I'm a little surprised about all this activity. > >> > >> I though the conclusion at LSF/MM was that for Linux itself

[dm-devel] [PATCH v5 3/3] dm: verity-loadpin: Use CONFIG_SECURITY_LOADPIN_VERITY for conditional compilation

2022-05-18 Thread Matthias Kaehlcke
The verity glue for LoadPin is only needed when CONFIG_SECURITY_LOADPIN_VERITY is set, use this option for conditional compilation instead of the combo of CONFIG_DM_VERITY and CONFIG_SECURITY_LOADPIN. Signed-off-by: Matthias Kaehlcke Acked-by: Kees Cook --- Changes in v5: - added 'Acked-by' tag

[dm-devel] [PATCH v5 2/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread Matthias Kaehlcke
Extend LoadPin to allow loading of kernel files from trusted dm-verity [1] devices. This change adds the concept of trusted verity devices to LoadPin. LoadPin maintains a list of root digests of verity devices it considers trusted. Userspace can populate this list through an ioctl on the new LoadP

[dm-devel] [PATCH v5 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Matthias Kaehlcke
LoadPin limits loading of kernel modules, firmware and certain other files to a 'pinned' file system (typically a read-only rootfs). To provide more flexibility LoadPin is being extended to also allow loading these files from trusted dm-verity devices. For that purpose LoadPin can be provided with

[dm-devel] [PATCH v5 0/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread Matthias Kaehlcke
As of now LoadPin restricts loading of kernel files to a single pinned filesystem, typically the rootfs. This works for many systems, however it can result in a bloated rootfs (and OTA updates) on platforms where multiple boards with different hardware configurations use the same rootfs image. Espe

Re: [dm-devel] [PATCH v4 00/13] support non power of 2 zoned devices

2022-05-18 Thread Luis Chamberlain
On Tue, May 17, 2022 at 11:34:54AM -0400, Theodore Ts'o wrote: > On Tue, May 17, 2022 at 10:10:48AM +0200, Christoph Hellwig wrote: > > I'm a little surprised about all this activity. > > > > I though the conclusion at LSF/MM was that for Linux itself there > > is very little benefit in supporting

Re: [dm-devel] [PATCH v4 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Matthias Kaehlcke
On Wed, May 18, 2022 at 03:52:21PM -0400, Mike Snitzer wrote: > On Tue, May 17 2022 at 7:34P -0400, > Matthias Kaehlcke wrote: > > > LoadPin limits loading of kernel modules, firmware and certain > > other files to a 'pinned' file system (typically a read-only > > rootfs). To provide more flexib

Re: [dm-devel] [PATCH v4 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Matthias Kaehlcke
On Wed, May 18, 2022 at 04:03:44PM -0400, Mike Snitzer wrote: > On Wed, May 18 2022 at 11:13P -0400, > Matthias Kaehlcke wrote: > > > Hi Milan, > > > > On Wed, May 18, 2022 at 09:57:43AM +0200, Milan Broz wrote: > > > On 18/05/2022 01:34, Matthias Kaehlcke wrote: > > > > LoadPin limits loading o

Re: [dm-devel] [PATCH v4 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Mike Snitzer
On Wed, May 18 2022 at 11:13P -0400, Matthias Kaehlcke wrote: > Hi Milan, > > On Wed, May 18, 2022 at 09:57:43AM +0200, Milan Broz wrote: > > On 18/05/2022 01:34, Matthias Kaehlcke wrote: > > > LoadPin limits loading of kernel modules, firmware and certain > > > other files to a 'pinned' file sy

Re: [dm-devel] [PATCH v4 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Mike Snitzer
On Tue, May 17 2022 at 7:34P -0400, Matthias Kaehlcke wrote: > LoadPin limits loading of kernel modules, firmware and certain > other files to a 'pinned' file system (typically a read-only > rootfs). To provide more flexibility LoadPin is being extended > to also allow loading these files from t

Re: [dm-devel] [PATCH v4 0/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread Mike Snitzer
On Wed, May 18 2022 at 3:23P -0400, Kees Cook wrote: > On Tue, May 17, 2022 at 04:34:54PM -0700, Matthias Kaehlcke wrote: > > As of now LoadPin restricts loading of kernel files to a single pinned > > filesystem, typically the rootfs. This works for many systems, however it > > can result in a b

Re: [dm-devel] [PATCH v4 0/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread Kees Cook
On Tue, May 17, 2022 at 04:34:54PM -0700, Matthias Kaehlcke wrote: > As of now LoadPin restricts loading of kernel files to a single pinned > filesystem, typically the rootfs. This works for many systems, however it > can result in a bloated rootfs (and OTA updates) on platforms where > multiple bo

Re: [dm-devel] [PATCH v4 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Matthias Kaehlcke
Hi Milan, On Wed, May 18, 2022 at 09:57:43AM +0200, Milan Broz wrote: > On 18/05/2022 01:34, Matthias Kaehlcke wrote: > > LoadPin limits loading of kernel modules, firmware and certain > > other files to a 'pinned' file system (typically a read-only > > rootfs). To provide more flexibility LoadPin

Re: [dm-devel] [PATCH v4 2/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread Matthias Kaehlcke
kp/linux/commits/Matthias-Kaehlcke/LoadPin-Enable-loading-from-trusted-dm-verity-devices/20220518-073635 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git > for-next > config: m68k-allmodconfig > (https://download.01.org/0day-ci/archive/20220

Re: [dm-devel] [PATCH v4 2/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread kernel test robot
when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Matthias-Kaehlcke/LoadPin-Enable-loading-from-trusted-dm-verity-devices/20220518-073635 base: https://git.kernel.org/pub

Re: [dm-devel] [PATCH v4 07/13] btrfs: zoned: use generic btrfs zone helpers to support npo2 zoned devices

2022-05-18 Thread David Sterba
On Wed, May 18, 2022 at 11:40:22AM +0200, Pankaj Raghav wrote: > On 2022-05-17 14:30, David Sterba wrote: > > On Mon, May 16, 2022 at 06:54:10PM +0200, Pankaj Raghav wrote: > >> @@ -1108,14 +1101,14 @@ int btrfs_reset_device_zone(struct btrfs_device > >> *device, u64 physical, > >> int btrfs_ensu

Re: [dm-devel] [PATCH v4 07/13] btrfs: zoned: use generic btrfs zone helpers to support npo2 zoned devices

2022-05-18 Thread Pankaj Raghav
On 2022-05-17 14:30, David Sterba wrote: > On Mon, May 16, 2022 at 06:54:10PM +0200, Pankaj Raghav wrote: >> Add helpers to calculate alignment, round up and round down >> for zoned devices. These helpers encapsulates the necessary handling for >> power_of_2 and non-power_of_2 zone sizes. Optimized

Re: [dm-devel] [PATCH v4 08/13] btrfs:zoned: make sb for npo2 zone devices align with sb log offsets

2022-05-18 Thread Pankaj Raghav
On 2022-05-17 14:42, David Sterba wrote: > On Mon, May 16, 2022 at 06:54:11PM +0200, Pankaj Raghav wrote: >> Superblocks for zoned devices are fixed as 2 zones at 0, 512GB and 4TB. >> These are fixed at these locations so that recovery tools can reliably >> retrieve the superblocks even if one of t

Re: [dm-devel] [PATCH v4 2/3] LoadPin: Enable loading from trusted dm-verity devices

2022-05-18 Thread kernel test robot
note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Matthias-Kaehlcke/LoadPin-Enable-loading-from-trusted-dm-verity-devices/20220518-073635 base: https://git.kern

Re: [dm-devel] [PATCH v4 00/13] support non power of 2 zoned devices

2022-05-18 Thread Christoph Hellwig
On Tue, May 17, 2022 at 11:18:34AM +0200, Javier González wrote: > Does the above help you reconsidering your interest in supporting this > in NVMe? Very little. It just seems like a really bad idea. -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-deve

Re: [dm-devel] [PATCH v4 1/3] dm: Add verity helpers for LoadPin

2022-05-18 Thread Milan Broz
On 18/05/2022 01:34, Matthias Kaehlcke wrote: LoadPin limits loading of kernel modules, firmware and certain other files to a 'pinned' file system (typically a read-only rootfs). To provide more flexibility LoadPin is being extended to also allow loading these files from trusted dm-verity devices

Re: [dm-devel] [PATCH v4 00/13] support non power of 2 zoned devices

2022-05-18 Thread Javier González
On 17.05.2022 10:10, Christoph Hellwig wrote: I'm a little surprised about all this activity. I though the conclusion at LSF/MM was that for Linux itself there is very little benefit in supporting this scheme. It will massively fragment the supported based of devices and applications, while onl

[dm-devel] Attaching qcow2 images to containers

2022-05-18 Thread Stefan Hajnoczi
Hi Kirill, I saw your "[PATCH 0/4] dm: Introduce dm-qcow2 driver to attach QCOW2 files as block device" patch series: https://lore.kernel.org/linux-kernel/ykme5zs2cpxun...@infradead.org/T/ There has been recent work in vDPA (VIRTIO Data Path Acceleration) to achieve similar functionality. The qemu