Re: [PATCH bpf] libbpf: support pre-initializing .bss global variables

2020-06-12 Thread Alexei Starovoitov
On Fri, Jun 12, 2020 at 12:45 PM Andrii Nakryiko wrote: > > Remove invalid assumption in libbpf that .bss map doesn't have to be updated > in kernel. With addition of skeleton and memory-mapped initialization image, > .bss doesn't have to be all zeroes when BPF map is created, because user-code >

[PATCH bpf] libbpf: support pre-initializing .bss global variables

2020-06-12 Thread Andrii Nakryiko
Remove invalid assumption in libbpf that .bss map doesn't have to be updated in kernel. With addition of skeleton and memory-mapped initialization image, .bss doesn't have to be all zeroes when BPF map is created, because user-code might have initialized those variables from user-space. Fixes: eba