From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934560AbcLMT0t (ORCPT ); Tue, 13 Dec 2016 14:26:49 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:34132 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933611AbcLMT0q (ORCPT ); Tue, 13 Dec 2016 14:26:46 -0500 MIME-Version: 1.0 In-Reply-To: <20161213083948.GA8994@zzz> References: <20161212221832.10653-1-Jason@zx2c4.com> <20161213083948.GA8994@zzz> From: Linus Torvalds Date: Tue, 13 Dec 2016 11:26:44 -0800 X-Google-Sender-Auth: IC7pr3yUCb0FEOBDNgtyTzoSx4k Message-ID: Subject: Re: [PATCH v3] siphash: add cryptographically secure hashtable function To: Eric Biggers Cc: "Jason A. Donenfeld" , "kernel-hardening@lists.openwall.com" , LKML , Linux Crypto Mailing List , George Spelvin , Scott Bauer , Andi Kleen , Andy Lutomirski , Greg KH , Jean-Philippe Aumasson , "Daniel J . Bernstein" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 13, 2016 at 12:39 AM, Eric Biggers 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