Re: [PATCH 1/2] lib: add fast lzo decompressor

From: H. Peter Anvin
Date: Fri Apr 03 2009 - 14:36:15 EST


Andreas Robinson wrote:

The kernel and initramfs images are implicitly trusted, but that is not
unique to this implementation. None of the decompressors check the data
e.g by comparing checksums, AFAICT.


That's not true. At least the gzip decompressor definitely checks the resulting CRC32. Being a CRC32, it's a test against corruption, not malicious injection, but if you have malicious injection problems this can't help you anyway.

However, corruption problems can and do happen during boot, and it's really important that we get some kind of useful notification.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/