[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1ba87a40-5851-4877-a539-e065c3a8a433@intel.com>
Date: Mon, 13 Jan 2025 13:32:11 +0100
From: Alexander Lobakin <aleksander.lobakin@...el.com>
To: Dan Carpenter <dan.carpenter@...aro.org>
CC: Jakub Kicinski <kuba@...nel.org>, Louis Peens <louis.peens@...igine.com>,
Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, "Quentin
Monnet" <qmo@...nel.org>, Daniel Borkmann <daniel@...earbox.net>,
<bpf@...r.kernel.org>, <oss-drivers@...igine.com>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH net] nfp: bpf: prevent integer overflow in
nfp_bpf_event_output()
From: Dan Carpenter <dan.carpenter@...aro.org>
Date: Mon, 13 Jan 2025 09:18:39 +0300
> The "sizeof(struct cmsg_bpf_event) + pkt_size + data_size" math could
> potentially have an integer wrapping bug on 32bit systems. Check for
Not in practice I suppose? Do we need to fix "never" bugs?
> this and return an error.
>
> Fixes: 9816dd35ecec ("nfp: bpf: perf event output helpers support")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
Thanks,
Olek
Powered by blists - more mailing lists