All of lore.kernel.org
 help / color / mirror / Atom feed
* Checksummed environments
@ 2018-04-06  9:25 Kristian Amlie
  2018-04-06 12:35 ` Daniel Kiper
  0 siblings, 1 reply; 8+ messages in thread
From: Kristian Amlie @ 2018-04-06  9:25 UTC (permalink / raw)
  To: grub-devel

Hey, I work for Northern.tech, developing update software for embedded
Linux devices.

I have a question about GRUB's environment block: This block is not
checksummed, and hence I reckon it can become corrupt if power is lost
in the middle of a write.

This is an important safety criterion for us, so we've been thinking of
developing environment block checksumming as an extension to the
existing save_env and load_env commands. The most likely approach will
be to grab X amount of bytes at the end of the block and use these for
the checksum.

This would also allow us to fall back to an earlier environment file if
the current one is corrupt, hence implementing redundancy.

Is this something that the GRUB project would be interested in? We want
to upstream this if possible, since we think many people may benefit
from this.

-- 
Kristian


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

end of thread, other threads:[~2018-04-12  9:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06  9:25 Checksummed environments Kristian Amlie
2018-04-06 12:35 ` Daniel Kiper
2018-04-06 13:08   ` Kristian Amlie
2018-04-10 21:09     ` Daniel Kiper
2018-04-12  8:33       ` Daniel Kiper
2018-04-12  8:35         ` Kristian Amlie
2018-04-12  8:58           ` Daniel Kiper
2018-04-12  9:09             ` Kristian Amlie

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.