Re: [RFC 1/1] Add dm verity root hash pkcs7 sig validation.

2019-06-05 Thread Sasha Levin
On Mon, May 20, 2019 at 02:54:22PM -0700, Jaskaran Khurana wrote: Adds in-kernel pkcs7 signature checking for the roothash of the dm-verity hash tree. The verification is to support cases where the roothash is not secured by Trusted Boot, UEFI Secureboot or similar technologies. One of the use

Re: dm-region-hash: Fix a missing-check bug in __rh_alloc()

2019-06-05 Thread Gen Zhang
On Wed, Jun 05, 2019 at 08:21:59AM -0400, Mike Snitzer wrote: > On Wed, Jun 05 2019 at 2:05am -0400, > Jiri Slaby wrote: > > > On 24. 05. 19, 5:12, Gen Zhang wrote: > > > In function __rh_alloc(), the pointer nreg is allocated a memory space > > > via kmalloc(). And it is used in the following

Re: [dm-devel] Automatic blacklisting of NVMe devices if NVMe native MP

2019-06-05 Thread Mike Snitzer
On Tue, Jun 04 2019 at 3:29am -0400, Eyal Ben-David wrote: >Hi all, > >Is it possible to automatically blacklist all NVMe devices if the NVMe >driver has it's own multipath? > >I mean if for example if: > >cat /sys/module/nvme_core/parameters/multipath >Y > >then

[dm-devel] [PATCH v2] dm log writes: make sure the log super sectors are written in order

2019-06-05 Thread zhangyi (F)
Currently, although we submit super bios in log-write thread orderly (the super.nr_entries is incremented by each logged entry), the submit_bio() cannot make sure that each super sector is written to log device in order. So the submitting bio of each super sector may be out-of-order, and then the

Re: dm-region-hash: Fix a missing-check bug in __rh_alloc()

2019-06-05 Thread Mike Snitzer
On Wed, Jun 05 2019 at 2:05am -0400, Jiri Slaby wrote: > On 24. 05. 19, 5:12, Gen Zhang wrote: > > In function __rh_alloc(), the pointer nreg is allocated a memory space > > via kmalloc(). And it is used in the following codes. However, when > > there is a memory allocation error, kmalloc()

Re: [dm-devel] [PATCH v12] dm: add support to directly boot to a mapped device

2019-06-05 Thread Zdenek Kabelac
Dne 04. 06. 19 v 21:35 Stephen Boyd napsal(a): Quoting Helen Koike (2019-06-04 10:38:59) On 6/3/19 8:02 PM, Stephen Boyd wrote: I'm trying to boot a mainline linux kernel on a chromeos device with dm verity and a USB stick but it's not working for me even with this patch. I've had to hack

Re: [dm-devel] dm log writes: make sure the log super sectors are written in order

2019-06-05 Thread zhangyi (F)
On 2019/6/4 3:02, Josef Bacik Wrote: > On Mon, Jun 03, 2019 at 10:46:08AM -0400, Mike Snitzer wrote: >> On Mon, Jun 03 2019 at 10:18am -0400, >> zhangyi (F) wrote: >> >>> Currently, although we submit super bios in log-write thread orderly >>> (the super.nr_entries is incremented by each logged

[dm-devel] [PATCH] dm log writes: make sure the log super sectors are written in order

2019-06-05 Thread zhangyi (F)
Currently, although we submit super bios in log-write thread orderly (the super.nr_entries is incremented by each logged entry), the submit_bio() cannot make sure that each super sector is written to log device in order. So the submitting bio of each super sector may be out-of-order, and then the

Re: [PATCH] dm-region-hash: Fix a missing-check bug in __rh_alloc()

2019-06-05 Thread Jiri Slaby
On 24. 05. 19, 5:12, Gen Zhang wrote: > In function __rh_alloc(), the pointer nreg is allocated a memory space > via kmalloc(). And it is used in the following codes. However, when > there is a memory allocation error, kmalloc() fails. Thus null pointer > dereference may happen. And it will cause