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]
Date: Fri, 30 Jun 2023 16:57:31 +0000
From: Joakim Tjernlund <Joakim.Tjernlund@...inera.com>
To: "andrew@...n.ch" <andrew@...n.ch>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: Disable TX path on eth I/F from driver?

On Fri, 2023-06-30 at 18:50 +0200, Andrew Lunn wrote:
> On Fri, Jun 30, 2023 at 03:48:15PM +0000, Joakim Tjernlund wrote:
> > We have a few eth I/F that is for monitoring only, if any TX one gets:
> > NETDEV WATCHDOG: trap0 (xr-ccip): transmit queue 0 timed out
> > [   55.903074] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:477 dev_watchdog+0x138/0x160
> > [   55.911380] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.109-00161-g1268ae25c302-dirty #7
> > <long trace snipped>
> > 
> > I would like to, from within the driver, disable the TX path so the IP stack cannot TX any
> > pkgs but cannot find a way to do so.
> > Is there a way(to at least avid the NETDEV WATCHDOG msg) disable TX?
> > On kernel 5.15
> 
> Have you tried using TC or iptables to just unconditionally drop all
> packets?
> 

No, this is an embedded target with no iptables/TC
Would be much nicer if I could do this in driver.

 Jocke

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ