Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1070341pxb; Fri, 13 Aug 2021 12:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmze60LVGNDrJCRAufBc4nyKP0YQ4Euj6xwkoid4sM3Oczp4xGR63/xU/DMp/ZbJLJj2SO X-Received: by 2002:aa7:c9d8:: with SMTP id i24mr5121132edt.79.1628883996890; Fri, 13 Aug 2021 12:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628883996; cv=none; d=google.com; s=arc-20160816; b=jwp3hZZ82uwkSMN/y8eiJ4A5qKW1U4wJ0jHqcZrcMoRqw46r3Lodb2rUmfcOVeIe2I 7oxfVTXXdo/54XA2yek3+SIzLsmNOrpngmViw6MuKhPcAITVPkkKl2EeLD2mPliD0zBQ sZAV4WBMzeKb1vuz8B17HObfphL/4Ijy+xGolqMjryUTv1LoSohrSIWDaF7Wzcm830oc 4e9UZYTqvg1VlN/zvXG5KGcONZdpbgoA9t6kIvhfFaV98QK+OimGGQcFtMe+MDnhv6Qu 3pgZEUG6aoigSd+SQu6/694N0EH7uz/9BKM1QIomrLc3O77MqwsH/Gjwsou/18oGd18E An5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=vGxwLQwFO2S7TTjs1yBKTvR75GNMnpeXiG3mZABQ1io=; b=QMHHf/ND3cxCgWa5jJURhpboyAXXi2Sb39umxPP0V08IvUYCwsc0qKNiZNVzlO2w/z cZVHojShf25vrapZWui9EStpDui0ji2wp96VeGSD7ZHFwPnbTasuv39Pdw/48XvjvrCK 9kt7+rvsPas4XGjBkTrUi10FPJndu+lhA/1HlAOdMIZKImIunIAFwOn0ZvjsOWr+tzP/ i6IHzWY4aBJ80AbjS7puqKsPOjQHhs8TFMB4U1QDgsKQXDYdMwWmMQ7N3f9IkXkNTsEc QsH16fg/+ipitNb3XdMSaom/YPVTSJA+ekfU8OBlLrVE11x+1x8DSANGGkWcAGXjjFXl BRAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=pk97yo0z; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2513961edc.435.2021.08.13.12.46.08; Fri, 13 Aug 2021 12:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=pk97yo0z; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233864AbhHMTpd (ORCPT + 99 others); Fri, 13 Aug 2021 15:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbhHMTpc (ORCPT ); Fri, 13 Aug 2021 15:45:32 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F27FC061756; Fri, 13 Aug 2021 12:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=vGxwLQwFO2S7TTjs1yBKTvR75GNMnpeXiG3mZABQ1io=; t=1628883905; x=1630093505; b=pk97yo0ziCaTXhJO1U8NwHm2jV76Y1SaMwLWw+oePwsCEI4 /k80LWcPeO/cALwT9OL5KTQkkm9mEHdtcnFhrJaaBlfgHE8aOrb4x/ZeSluTZXL/didolW5u8Zs9Z bdwbalR72Mqq8K97CK7TiMbG1iz2x6MbEZ8YUiMw31HJNn7vBfxDWUXmczj94VPwWq05wTWxE6U0C H2v26+p/PcH1k3fe7Dev7l/mECrDmmJWH1PKMDIwkJjmVtFfs492L6GS8qdPDJFCGZA1bsGdxbnTr izLUxRkmVFYineHvfmu+L5HCo0cyFqAtG1sXP/U4S/EnF1TotvO9/LYFmwC/zVzw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1mEd6u-00ANL4-Up; Fri, 13 Aug 2021 21:44:57 +0200 Message-ID: <6488ed24d2ce0ccb1987c271064e25bc72c30863.camel@sipsolutions.net> Subject: Re: [PATCH 10/64] lib80211: Use struct_group() for memcpy() region From: Johannes Berg To: Kees Cook Cc: linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" , Keith Packard , Greg Kroah-Hartman , Andrew Morton , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-staging@lists.linux.dev, linux-block@vger.kernel.org, linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com Date: Fri, 13 Aug 2021 21:44:55 +0200 In-Reply-To: <202108130846.EC339BCA@keescook> References: <20210727205855.411487-1-keescook@chromium.org> <20210727205855.411487-11-keescook@chromium.org> <202108130846.EC339BCA@keescook> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2021-08-13 at 08:49 -0700, Kees Cook wrote: > > Ah! Yes, thanks for pointing this out. During earlier development I split > the "cross-field write" changes from the "cross-field read" changes, and > it looks like I missed moving lib80211_crypt_ccmp.c into that portion of > the series (which I haven't posted nor finished -- it's lower priority > than fixing the cross-field writes). Oh, OK. I think all of this patch was cross-field read though. Anyway, the patch itself is fine, just seems incomplete and somewhat badly organised :) johannes