lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJuEubWMu4Jg3rAac=HM95U3yS9PSq1eSx+-JC6rhOdbA@mail.gmail.com>
Date: Tue, 7 May 2024 12:39:54 +0200
From: Eric Dumazet <edumazet@...gle.com>
To: Wei Fang <wei.fang@....com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com, 
	shenwei.wang@....com, xiaoning.wang@....com, richardcochran@...il.com, 
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org, imx@...ts.linux.dev
Subject: Re: [PATCH net-next] net: fec: Convert fec driver to use lock guards

On Tue, May 7, 2024 at 11:16 AM Wei Fang <wei.fang@....com> wrote:
>
> Use guard() and scoped_guard() defined in linux/cleanup.h to automate
> lock lifetime control in fec driver.
>
> Signed-off-by: Wei Fang <wei.fang@....com>
>

To me, this looks like a nice recipe for future disasters when doing backports,
because I am pretty sure the "goto ..." that assumes the lock is
magically released
will fail horribly.

I would use scoped_guard() only for new code.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ