All of lore.kernel.org
 help / color / mirror / Atom feed
* fsverity PAGE_SIZE constraints
@ 2020-06-01 20:13 Jes Sorensen
  2020-06-01 20:36 ` Eric Biggers
  0 siblings, 1 reply; 5+ messages in thread
From: Jes Sorensen @ 2020-06-01 20:13 UTC (permalink / raw)
  To: linux-fscrypt; +Cc: Theodore Ts'o, Eric Biggers, Chris Mason

Hi,

I am working on adding fsverity support to RPM and I am hitting a tricky
problem. I am see this with RPM, but it really isn't specific to RPM,
and will apply to any method for distribution signatures.

fsverity is currently hard-wiring the Merkle tree block size to
PAGE_SIZE. This is problematic for a number of reasons, in particular on
architectures that can be configured with different page sizes, such as
ARM, as well as the case where someone generates a shared 'common'
package to be used cross architectures (noarch package in RPM terms).

For a package manager to be able to create a generic package with
signatures, it basically has to build a signature for every supported
page size of the target architecture.

Chris Mason is working on adding fsverity support to btrfs, and I
understand he is supporting 4K as the default Merkle tree block size,
independent of the PAGE_SIZE.

Would it be feasible to make ext4 and other file systems support 4K for
non 4K page sized systems and make that a general recommendation going
forward?

Thoughts?

Thanks,
Jes

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-03 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-01 20:13 fsverity PAGE_SIZE constraints Jes Sorensen
2020-06-01 20:36 ` Eric Biggers
2020-06-02 15:49   ` Chris Mason
2020-06-02 21:50     ` Eric Biggers
2020-06-03 13:57       ` Chris Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.