From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E000FC4332F for ; Thu, 18 Nov 2021 19:46:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7415619BB for ; Thu, 18 Nov 2021 19:46:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233487AbhKRTtZ (ORCPT ); Thu, 18 Nov 2021 14:49:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233448AbhKRTtW (ORCPT ); Thu, 18 Nov 2021 14:49:22 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8021C061574; Thu, 18 Nov 2021 11:46:21 -0800 (PST) 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=A0kpxeX3ux8Zs3KSSdktR+Xma0rIOEQOzFaFM8BnP6Q=; t=1637264782; x=1638474382; b=WLtDSZd4KMnCQM2rCOr7Bgh66/jcy0qZRYucCmmolj7yEBK 1uupnbQQswUWGaEkfjDqswzcCvgrQd3S40nZ5ClLJMTfXob0wvC7D8dvxmXb/3A0Sx/nIpg3QGb+b stWWufkR7LN51UJaBLLV88gPWA8+KAGE8yk3W/gDVmUvyX9SxRAhZ0YUvar+9sYLBKGRwZH7o++ZB 5T0YMPuG7iagZsxAYRjBUMb0jiQkaBYEoFhq0aydEttjT4bGwWfEDUVBJEfnejQbBB/Soff5XHkdY Prltm/UqXDcX1cTwfqcNHSY+xANSL7KmOcRug3vFKIdB9OqijYqU4dpOPEfMsQww==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1mnnML-00H8SF-9L; Thu, 18 Nov 2021 20:46:13 +0100 Message-ID: Subject: Re: [PATCH] intersil: Use struct_group() for memcpy() region From: Johannes Berg To: Kees Cook , Jouni Malinen Cc: Kalle Valo , "David S. Miller" , Jakub Kicinski , Lee Jones , Allen Pais , Romain Perier , Arnd Bergmann , Vaibhav Gupta , Cong Wang , Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org Date: Thu, 18 Nov 2021 20:46:11 +0100 In-Reply-To: <20211118184158.1284180-1-keescook@chromium.org> References: <20211118184158.1284180-1-keescook@chromium.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 (3.42.1-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 2021-11-18 at 10:41 -0800, Kees Cook wrote: > > /* 802.11 */ > - __le16 frame_control; /* parts not used */ > - __le16 duration_id; > - u8 addr1[ETH_ALEN]; > - u8 addr2[ETH_ALEN]; /* filled by firmware */ > - u8 addr3[ETH_ALEN]; > - __le16 seq_ctrl; /* filled by firmware */ > + struct_group(frame, Arguably, that should be 'header' rather than 'frame' :) johannes