Re: [PATCH v3] siphash: add cryptographically secure hashtable function

From: Linus Torvalds
Date: Tue Dec 13 2016 - 14:26:59 EST


On Tue, Dec 13, 2016 at 12:39 AM, Eric Biggers <ebiggers3@xxxxxxxxx> wrote:
>
> Hmm, I don't think you can really do load_unaligned_zeropad() without first
> checking for 'left != 0'.

Right you are. If the allocation is at the end of a page, the 0-size
case would be entirely outside the page and there's no fixup.

Of course, that never happens in normal code, but DEBUG_PAGE_ALLOC can
trigger it.

Linus