Re: Should we automatically generate a module signing key at all?

From: Andy Lutomirski
Date: Fri May 22 2015 - 18:19:27 EST


On Fri, May 22, 2015 at 3:15 PM, David Howells <dhowells@xxxxxxxxxx> wrote:
> Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
>> I forget the exact details of the signature ..., but for the modules
>> themselves, it's just appended to the module contents.
>
> Yes.
>
>> And because the size of the certificate list is variable, you can't just
>> zero it out or anything like that to make things compare equal.
>
> Since it's discarded at the end of boot, it could be padded significantly.

If you use the hash tree approach, the size of the thing in bzImage is constant.

--Andy
--
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/