[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <08c9f970-3007-461a-b9f9-9ab414024f68@web.de>
Date: Sat, 23 Mar 2024 17:56:29 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Dan Carpenter <dan.carpenter@...aro.org>,
kernel-janitors@...r.kernel.org, netdev@...r.kernel.org,
intel-wired-lan@...ts.osuosl.org, smatch@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>,
Alexander Lobakin <aleksander.lobakin@...el.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
David Laight <David.Laight@...lab.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Jesse Brandeburg <jesse.brandeburg@...el.com>, Jiri Pirko
<jiri@...nulli.us>, Jonathan Cameron <jic23@...nel.org>,
Julia Lawall <julia.lawall@...ia.fr>, Kees Cook <keescook@...omium.org>,
Lukasz Czapnik <lukasz.czapnik@...el.com>, Paolo Abeni <pabeni@...hat.com>,
Pucha Himasekhar Reddy <himasekharx.reddy.pucha@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
Maciej Fijalkowski <maciej.fijalkowski@...el.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>
Subject: Re: [PATCH v2 net] ice: Fix freeing uninitialized pointers
> Automatically cleaned up pointers need to be initialized before exiting
> their scope. In this case, they need to be initialized to NULL before
> any return statement.
* May we expect that compilers should report that affected variables
were only declared here instead of appropriately defined
(despite of attempts for scope-based resource management)?
* Did you extend detection support in the source code analysis tool “Smatch”
for a questionable implementation detail?
Regards,
Markus
Powered by blists - more mailing lists