Re: [PATCH 05/15] bpf: avoid gcc-10 stringop-overflow warning

2020-05-04 Thread Daniel Borkmann
On 4/30/20 11:30 PM, Arnd Bergmann wrote: gcc-10 warns about accesses to zero-length arrays: kernel/bpf/core.c: In function 'bpf_patch_insn_single': cc1: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=] In file included from kernel/bpf/core.c:21: include/linux/filter.h:550

[PATCH 05/15] bpf: avoid gcc-10 stringop-overflow warning

2020-04-30 Thread Arnd Bergmann
gcc-10 warns about accesses to zero-length arrays: kernel/bpf/core.c: In function 'bpf_patch_insn_single': cc1: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=] In file included from kernel/bpf/core.c:21: include/linux/filter.h:550:20: note: at offset 0 to object 'insnsi' wi