From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbcF1Hcy (ORCPT ); Tue, 28 Jun 2016 03:32:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43194 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbcF1Hcv (ORCPT ); Tue, 28 Jun 2016 03:32:51 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1eeb00c5098d8096cdb61dc7ee1ddc61b3e80f9e.1466974736.git.luto@kernel.org> References: <1eeb00c5098d8096cdb61dc7ee1ddc61b3e80f9e.1466974736.git.luto@kernel.org> To: Andy Lutomirski Cc: dhowells@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Borislav Petkov , Nadav Amit , Kees Cook , Brian Gerst , "kernel-hardening@lists.openwall.com" , Linus Torvalds , Josh Poimboeuf , Jann Horn , Heiko Carstens , Herbert Xu Subject: Re: [PATCH v4 02/29] rxrpc: Avoid using stack memory in SG lists in rxkad MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32025.1467099166.1@warthog.procyon.org.uk> Date: Tue, 28 Jun 2016 08:32:46 +0100 Message-ID: <32026.1467099166@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 28 Jun 2016 07:32:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski wrote: > @@ -277,6 +277,7 @@ struct rxrpc_connection { > struct key *key; /* security for this connection (client) */ > struct key *server_key; /* security for this service */ > struct crypto_skcipher *cipher; /* encryption handle */ > + struct rxrpc_crypt csum_iv_head; /* leading block for csum_iv */ > struct rxrpc_crypt csum_iv; /* packet checksum base */ > unsigned long events; > #define RXRPC_CONN_CHALLENGE 0 /* send challenge packet */ NAK. This won't work. csum_iv_head is per packet being processed, but you've put it in rxrpc_connection which is shared amongst several creators/digestors of packets. Putting it in rxrpc_call won't work either since it's also needed for connection level packets. David