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] [day] [month] [year] [list]
Message-ID: <763ebb90-7c92-499a-b0ac-b16d88f67e75@intel.com>
Date: Tue, 4 Nov 2025 10:45:23 -0800
From: Jacob Keller <jacob.e.keller@...el.com>
To: "Loktionov, Aleksandr" <aleksandr.loktionov@...el.com>, "Lobakin,
 Aleksander" <aleksander.lobakin@...el.com>, "Nguyen, Anthony L"
	<anthony.l.nguyen@...el.com>, "Kitszel, Przemyslaw"
	<przemyslaw.kitszel@...el.com>
CC: "intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH iwl-next 0/9] ice: properly use u64_stats API for all ring
 stats



On 11/3/2025 11:27 PM, Loktionov, Aleksandr wrote:
> 
> 
>> -----Original Message-----
>> From: Keller, Jacob E <jacob.e.keller@...el.com>
>> Sent: Tuesday, November 4, 2025 2:07 AM
>> To: Loktionov, Aleksandr <aleksandr.loktionov@...el.com>; Lobakin,
>> Aleksander <aleksander.lobakin@...el.com>; Nguyen, Anthony L
>> <anthony.l.nguyen@...el.com>; Kitszel, Przemyslaw
>> <przemyslaw.kitszel@...el.com>
>> Cc: intel-wired-lan@...ts.osuosl.org; netdev@...r.kernel.org; Keller,
>> Jacob E <jacob.e.keller@...el.com>
>> Subject: [PATCH iwl-next 0/9] ice: properly use u64_stats API for all
>> ring stats
>>
>> The ice driver has multiple u64 values stored in the ring structures
>> for each queue used for statistics. These are accumulated in
>> ice_update_vsi_stats(). The packet and byte values are read using the
>> u64_stats API from <linux/u64_stats_sync.h>.
>>
>> Several non-standard counters are also accumulated in the same
>> function, but do not use the u64_stats API. This could result in
>> load/store tears on 32-bit architectures. Further, since commit
>> 316580b69d0a ("u64_stats:
>> provide u64_stats_t type"), the u64 stats API has had u64_stats_t and
>> access functions which convert to local64_t on 64-bit architectures.
>>
>> The ice driver doesn't use u64_stats_t and these access functions.
>> Thus even on 64-bit architectures it could read inconsistent values.
>> This series refactors the ice driver to use the updated API. Along the
>> way I noticed several other issues and inconsistencies which I have
>> cleaned up, summarized below.
>>
>> *) The driver never called u64_stats_init, leaving the syncp
>> improperly
>>    initialized. Since the field is part of a kzalloc block, this only
>>    impacts 32-bit systens with CONFIG_LOCKDEP enabled.
>>
> “systens” → “systems”
> 
> Best regards, Alex
> 

Fixed this and the other mistakes you spotted. Thanks for the careful
review!

Regards,
Jake

> ...
> 
>> --
>> Jacob Keller <jacob.e.keller@...el.com>
> 



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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ