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: <20240618185210.3a7a5715@kernel.org>
Date: Tue, 18 Jun 2024 18:52:10 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: netdev@...r.kernel.org, andrew@...n.ch, horms@...nel.org,
 jiri@...nulli.us, pabeni@...hat.com, linux@...linux.org.uk,
 hfdevel@....net, naveenm@...vell.com, jdamato@...tly.com
Subject: Re: [PATCH net-next v11 5/7] net: tn40xx: add basic Rx handling

On Tue, 18 Jun 2024 14:16:06 +0900 FUJITA Tomonori wrote:
> +		skb = napi_build_skb(page_address(dm->page), PAGE_SIZE);
> +		if (!skb) {
> +			netdev_err(priv->ndev, "napi_build_skb() failed\n");

memory pressure happens a lot in real world scenarios,
allocations will fail, and you don't want to spam the logs
in such cases.

In general prints on the datapath can easily turn into a DoS vector.
You're better off using appropriate statistics (here struct
netdev_queue_stats_rx :: alloc_fail)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ