Re: [PATCH v5] bpf: Replace bpf_lpm_trie_key 0-length array with flexible array

2024-02-22 Thread Kees Cook
On Wed, Feb 21, 2024 at 02:26:20PM -0800, Kees Cook wrote: > Replace deprecated 0-length array in struct bpf_lpm_trie_key with > flexible array. Found with GCC 13: Nope, still breaking CI. I will respin again... https://github.com/kernel-patches/bpf/actions/runs/7996482005/job/21839056683?pr=6451

[PATCH v5] bpf: Replace bpf_lpm_trie_key 0-length array with flexible array

2024-02-21 Thread Kees Cook
Replace deprecated 0-length array in struct bpf_lpm_trie_key with flexible array. Found with GCC 13: ../kernel/bpf/lpm_trie.c:207:51: warning: array subscript i is outside array bounds of 'const __u8[0]' {aka 'const unsigned char[]'} [-Warray-bounds=] 207 |