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: <98a26384-5d6f-d5d2-3ecc-1914a74299eb@gmail.com>
Date: Wed, 2 Apr 2025 09:15:02 +0100
From: Edward Cree <ecree.xilinx@...il.com>
To: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>,
 edward.cree@....com
Cc: linux-net-drivers@....com, davem@...emloft.net, kuba@...nel.org,
 edumazet@...gle.com, pabeni@...hat.com, horms@...nel.org,
 andrew+netdev@...n.ch, netdev@...r.kernel.org,
 Kyungwook Boo <bookyungwook@...il.com>
Subject: Re: [PATCH net] sfc: fix NULL dereferences in
 ef100_process_design_param()

On 02/04/2025 06:17, Michal Swiatkowski wrote:
> On Tue, Apr 01, 2025 at 11:54:39PM +0100, edward.cree@....com wrote:
>> -	netif_set_tso_max_segs(net_dev,
>> -			       ESE_EF100_DP_GZ_TSO_MAX_HDR_NUM_SEGS_DEFAULT);
>> +	nic_data = efx->nic_data;
>> +	netif_set_tso_max_size(efx->net_dev, nic_data->tso_max_payload_len);
>> +	netif_set_tso_max_segs(efx->net_dev, nic_data->tso_max_payload_num_segs);
> 
> Is it fine to drop default value for max segs? Previously if somehow
> this value wasn't read from HW it was set to default, now it will be 0.
> 
> At the beggining of ef100_probe_main() default values for nic_data are
> set. Maybe it is worth to set also this default for max segs?

As I read it, ef100_probe_main() does set a default for this nic_data
 field along with the others, and sets it to exactly this same value.

confused,
-ed

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ