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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250924-neon-private-cockatoo-b294a2-mkl@pengutronix.de>
Date: Wed, 24 Sep 2025 16:12:50 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Stefan Mätje <stefan.maetje@....eu>
Cc: "kuba@...nel.org" <kuba@...nel.org>, 
	"linux-can@...r.kernel.org" <linux-can@...r.kernel.org>, "kernel@...gutronix.de" <kernel@...gutronix.de>, 
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>, "davem@...emloft.net" <davem@...emloft.net>
Subject: Re: [PATCH net 09/10] can: esd_usb: Fix handling of TX context
 objects

On 24.09.2025 13:26:39, Stefan Mätje wrote:
> Am Montag, dem 22.09.2025 um 17:17 -0700 schrieb Jakub Kicinski:
> > On Mon, 22 Sep 2025 12:07:39 +0200 Marc Kleine-Budde wrote:
> > > -		netdev_warn(netdev, "couldn't find free context\n");
> > > +		netdev_warn(netdev, "No free context. Jobs: %d\n",
> > > +			    atomic_read(&priv->active_tx_jobs));
> > 
> > This should really be rate limited or _once while we touch it.
> > 
> 
> Changing this to a rate limited version would be fine with me. 
> 
> @Marc:
> How to proceed further? Should I send a V3 of the original patch
> set or should I split the patch set in two patch sets like you did?

Please split the patches as I did, or even better use the patches from
the pull request, as I've moved the some of the error print changes.

> The code would look then like:
> 
> 	if (!context) {
> 		if (net_ratelimit())
> 			netdev_warn(netdev, "No free context. Jobs: %d\n",
> 				    atomic_read(&priv->active_tx_jobs));
> 		netif_stop_queue(netdev);
> 		ret = NETDEV_TX_BUSY;
> 		goto releasebuf;
> 	}

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ