[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yaacdlj7UX1StO5Y@salvia>
Date: Tue, 30 Nov 2021 22:49:42 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Kees Cook <keescook@...omium.org>
Cc: Jozsef Kadlecsik <kadlec@...filter.org>,
Florian Westphal <fw@...len.de>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, linux-kernel@...r.kernel.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] netfilter: conntrack: Use memset_startat() to zero
struct nf_conn
On Thu, Nov 18, 2021 at 12:31:13PM -0800, 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.
>
> Use memset_startat() to avoid confusing memset() about writing beyond
> the target struct member.
Applied to nf-next, thanks
Powered by blists - more mailing lists