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: <38d73c63-7521-41ad-8d4d-03d5ba2288df@lunn.ch>
Date: Fri, 2 Jan 2026 23:02:53 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Petko Manolov <petko.manolov@...sulko.com>
Cc: Paolo Abeni <pabeni@...hat.com>, davem@...emloft.net,
	netdev@...r.kernel.org, kuba@...nel.org, stable@...r.kernel.org
Subject: Re: [PATCH] net: usb: pegasus: fix memory leak on usb_submit_urb()
 failure

> Sure, will do.  However, my v2 patch makes use of __free() cleanup
> functionality, which in turn only applies back to v6.6 stable kernels.

I would suggest not using the magical __free() cleanup.

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#using-device-managed-and-cleanup-h-constructs

    Low level cleanup constructs (such as __free()) can be used when
    building APIs and helpers, especially scoped iterators. However,
    direct use of __free() within networking core and drivers is
    discouraged. Similar guidance applies to declaring variables
    mid-function.

    Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ