[PATCH][next] wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings

2024-08-14 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. So, in order to avoid ending up with a flexible-array member in the middle of multiple other structs, we use the `__struct_group()` helper to create new tagged structures with the suffix `_hdr

Re: [PATCH 0/2][next] UAPI: net/sched - cxgb4: Fix -Wflex-array-member-not-at-end warning

2024-08-14 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Tue, 13 Aug 2024 16:13:58 -0600 you wrote: > Small patch series aimed at fixing a -Wflex-array-member-not-at-end > warning by creating a new tagged struct within a flexible structure. > We then use this new struct

Re: UBSAN: annotation to skip sanitization in variable that will wrap

2024-08-14 Thread Justin Stitt
Hi, On Wed, Aug 14, 2024 at 10:10 AM Breno Leitao wrote: > > Hello, > > I am seeing some signed-integer-overflow in percpu reference counters. it is brave of you to enable this sanitizer :>) > > UBSAN: signed-integer-overflow in > ./arch/arm64/include/asm/atomic_lse.h:204:1 > -

UBSAN: annotation to skip sanitization in variable that will wrap

2024-08-14 Thread Breno Leitao
Hello, I am seeing some signed-integer-overflow in percpu reference counters. UBSAN: signed-integer-overflow in ./arch/arm64/include/asm/atomic_lse.h:204:1 -9223372036854775808 - 1 cannot be represented in type 's64' (aka 'long long') Call trace: handle_overflo

Re: [PATCH v2 0/1] binfmt_elf: seal address zero

2024-08-14 Thread Kees Cook
On Tue, 06 Aug 2024 21:49:26 +, jef...@chromium.org wrote: > From: Jeff Xu > > In load_elf_binary as part of the execve(), when the current > task’s personality has MMAP_PAGE_ZERO set, the kernel allocates > one page at address 0. According to the comment: > > /* Why this, you ask??? Well

Re: [PATCH] bpf: Annotate struct bpf_cand_cache with __counted_by()

2024-08-14 Thread Alexei Starovoitov
On Tue, Aug 13, 2024 at 1:51 PM Thorsten Blum wrote: > > On 13. Aug 2024, at 20:57, Alexei Starovoitov > wrote: > > On Tue, Aug 13, 2024 at 10:59 AM Thorsten Blum > > wrote: > >> On 13. Aug 2024, at 18:28, Alexei Starovoitov > >> wrote: > >>> On Tue, Aug 13, 2024 at 8:19 AM Thorsten Blum >

[PATCH] nfs: Annotate struct nfs_cache_array with __counted_by()

2024-08-14 Thread Thorsten Blum
Add the __counted_by compiler attribute to the flexible array member array to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Increment size before adding a new struct to the array. Signed-off-by: Thorsten Blum --- fs/nfs/dir.c | 6 +++--- 1 file changed, 3 ins