Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4958190pxv; Tue, 27 Jul 2021 22:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaoEsPHhoogg5nOVNuuWySrMv1DbsgLlzBLGHDpnua59jpiIMhStsxiKcwPKjiXNZ5wlTF X-Received: by 2002:a17:907:2719:: with SMTP id w25mr11342632ejk.239.1627451383984; Tue, 27 Jul 2021 22:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627451383; cv=none; d=google.com; s=arc-20160816; b=yq/3+uaHuLo4QGJEq4XKcFOGBTbWFjsRJOAzWIXJKQ3vTD309cUUJQcVbkAL0xUbBu yYVTCN7eVRM/1qy8xTz8NTxlLlKV2rRUQZQxH9VK04/QCcHwYpP2Y3JT+NDMozJpUmc1 tuiknZY0ec2NTUeo+23UxvOycjUBnHJvF9f4xsKpkJc39U1TbwaUMmr178RdbtmGbM01 6jRQV58g9JIoHtjqsCv0eKUSOnYbZUufWzKTX/ieHiLX4kurB5LURcWIE/OOHVIFw7+q bKb06gpptFH8Y0TDN3zXgc/vCzH5pL5sBzJXh9f1Y2YHLjGzAQKLpSdQb7fyncjo5+04 K3JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IYCG4nwauU74GRxzH0xWriiFjinMbrqbxre37iLRuo8=; b=anB+2ijTG4eEa1lcvQnGp8uaUyaO9e/GY3n9gx/XLi7a/LthQjd/s803CguWyEkKar aC1VOhm4XA7V4IlWroBlMiSBWoY5N6ynBWMT6UK2AtaXU8s13OOGrUYGLL3fpIKQ/IdA 6/ChaykH7Dn7rvH93D2jPKnbE0hOe2qygfQd6qT9mYCoNHv9ya2iTTq05hdjhEK/RKNk wcXnVHuiZNwuXRXbahYOr0YiQu/FVHPJE1uPqXNlrqIsKGtI3dX08/FaY5o+yzJeYJgt RVcgd8WXBEVb9Dd/Hd2XW/gb5YEl25SiSHHteMGlLUVvTWfrYG4Q/wBseCLWuCKjUve3 VU+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LoC9EgXW; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv14si4905092ejb.576.2021.07.27.22.49.21; Tue, 27 Jul 2021 22:49:43 -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=@linuxfoundation.org header.s=korg header.b=LoC9EgXW; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbhG1Fs5 (ORCPT + 99 others); Wed, 28 Jul 2021 01:48:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:50666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhG1Fs4 (ORCPT ); Wed, 28 Jul 2021 01:48:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E4BA60F00; Wed, 28 Jul 2021 05:48:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627451334; bh=JbVsyLEsyV0K95tq78eYFj+nbQBWex8TPUG2O5qezhI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LoC9EgXWUIVE6yfgEZosITUtLaP51IYAc4EF8BMu6yXcuHArSq3YpSLR0z9QW9PkB rOHss0A4SNXP4+opIRM5+O+mGIbwTTaMd/SSh7hXGIKc3F31yUanRxa81+9XqFAzLR gpTe0njI/NP4taNwLMzklkg1vAwgKq5naQqJEoXw= Date: Wed, 28 Jul 2021 07:48:52 +0200 From: Greg Kroah-Hartman To: Kees Cook Cc: linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" , Keith Packard , 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 Subject: Re: [PATCH 49/64] cm4000_cs: Use struct_group() to zero struct cm4000_dev region Message-ID: References: <20210727205855.411487-1-keescook@chromium.org> <20210727205855.411487-50-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210727205855.411487-50-keescook@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Jul 27, 2021 at 01:58:40PM -0700, Kees Cook wrote: > In preparation for FORTIFY_SOURCE performing compile-time and run-time > field bounds checking for memset(), avoid intentionally writing across > neighboring fields. > > Add struct_group() to mark region of struct cm4000_dev that should be > initialized to zero. > > Signed-off-by: Kees Cook > --- > drivers/char/pcmcia/cm4000_cs.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) Acked-by: Greg Kroah-Hartman