RE: [PATCH RESEND] wifi: iwlwifi: mvm: Fix __counted_by usage in cfg80211_wowlan_nd_*

2024-12-15 Thread Korenblit, Miriam Rachel
> -Original Message- > From: Kees Cook > Sent: Monday, 16 December 2024 6:29 > To: Christophe JAILLET > Cc: Kees Cook ; Gustavo A . R . Silva > ; > Korenblit, Miriam Rachel ; Kalle Valo > ; Berg, Johannes ; Triebitz, Shaul > ; Grumbach, Emmanuel > ; Ben Shimol, Yedidya > ; Berg, Benjam

[PATCH RESEND] wifi: iwlwifi: mvm: Fix __counted_by usage in cfg80211_wowlan_nd_*

2024-12-15 Thread Kees Cook
Both struct cfg80211_wowlan_nd_match and struct cfg80211_wowlan_nd_info pre-allocate space for channels and matches, but then may end up using fewer that the full allocation. Shrink the associated counter (n_channels and n_matches) after counting the results. This avoids compile-time (and run-time)

Re: [PATCH -next] mm: usercopy: add a debugfs interface to bypass the vmalloc check.

2024-12-15 Thread Matthew Wilcox
On Wed, Dec 04, 2024 at 09:51:07AM +0100, Uladzislau Rezki wrote: > I think, when i have more free cycles, i will check it from performance > point of view. Because i do not know how much a maple tree is efficient > when it comes to lookups, insert and removing. Maple tree has a fanout of around 8

Re: [PATCH v2] fortify: Hide run-time copy size from value range tracking

2024-12-15 Thread Kees Cook
On Sun, Dec 15, 2024 at 07:06:12PM +, David Laight wrote: > From: Kees Cook > > Sent: 14 December 2024 01:36 > ... > > In order to silence this false positive but keep deterministic > > compile-time warnings intact, hide the length variable from GCC with > > OPTIMIZE_HIDE_VAR() before calling t

RE: [PATCH v2] fortify: Hide run-time copy size from value range tracking

2024-12-15 Thread David Laight
From: Kees Cook > Sent: 14 December 2024 01:36 ... > In order to silence this false positive but keep deterministic > compile-time warnings intact, hide the length variable from GCC with > OPTIMIZE_HIDE_VAR() before calling the builtin memcpy. ... > diff --git a/include/linux/fortify-string.h b/inc

Re: [PATCH] iio: proximity: hx9023s: Added firmware file parsing functionality

2024-12-15 Thread Jonathan Cameron
On Tue, 10 Dec 2024 12:24:03 +0800 Yasin Lee wrote: > Configuration information is now prioritized from the firmware file. > If the firmware file is missing or fails to parse, the driver falls > back to using the default configuration list for writing the settings. > > Signed-off-by: Yasin Lee