[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z6Vig04c-a46WScr@LQ3V64L9R2>
Date: Thu, 6 Feb 2025 17:31:47 -0800
From: Joe Damato <jdamato@...tly.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, Donald Hunter <donald.hunter@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Andrew Lunn <andrew+netdev@...n.ch>,
Xuan Zhuo <xuanzhuo@...ux.alibaba.com>,
Stanislav Fomichev <sdf@...ichev.me>,
Mina Almasry <almasrymina@...gle.com>,
Daniel Jurgens <danielj@...dia.com>,
Martin Karsten <mkarsten@...terloo.ca>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next v3 1/2] netdev-genl: Add an XSK attribute to
queues
On Thu, Feb 06, 2025 at 04:57:46PM -0800, Jakub Kicinski wrote:
> On Tue, 4 Feb 2025 19:10:47 +0000 Joe Damato wrote:
> > + if (rxq->pool) {
> > + nest = nla_nest_start(rsp, NETDEV_A_QUEUE_XSK);
> > + nla_nest_end(rsp, nest);
> > + }
>
> nla_nest_start() can fail, you gotta nul-check the return value.
> You could possibly add an nla_put_empty_nest() helper in netlink.h
> to make this less awkward? I think the iouring guys had the same bug
Ah, right.
I'll see what a helper looks like. Feels like maybe overkill?
Thanks for the review.
Powered by blists - more mailing lists