[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZNsV/ZFsixC2CRPW@nanopsycho>
Date: Tue, 15 Aug 2023 08:06:53 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, johannes@...solutions.net,
Vladimir Oltean <vladimir.oltean@....com>, gal@...dia.com,
tariqt@...dia.com, lucien.xin@...il.com, f.fainelli@...il.com,
andrew@...n.ch, simon.horman@...igine.com, linux@...pel-privat.de,
mkubecek@...e.cz
Subject: Re: [PATCH net-next v3 10/10] ethtool: netlink: always pass
genl_info to .prepare_data
Mon, Aug 14, 2023 at 11:47:23PM CEST, kuba@...nel.org wrote:
>We had a number of bugs in the past because developers forgot
>to fully test dumps, which pass NULL as info to .prepare_data.
>.prepare_data implementations would try to access info->extack
>leading to a null-deref.
>
>Now that dumps and notifications can access struct genl_info
>we can pass it in, and remove the info null checks.
>
>Reviewed-by: Vladimir Oltean <vladimir.oltean@....com>
>Tested-by: Vladimir Oltean <vladimir.oltean@....com> # pause
>Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Jiri Pirko <jiri@...dia.com>
Powered by blists - more mailing lists