Re: [PATCH] bpf: fix possible uninitialized access in inactive rotation

2016-11-16 Thread Daniel Borkmann
On 11/16/2016 03:38 PM, Arnd Bergmann wrote: This newly added code causes a build warning: kernel/bpf/bpf_lru_list.c: In function '__bpf_lru_list_rotate_inactive': kernel/bpf/bpf_lru_list.c:201:28: error: 'next' may be used uninitialized in this function [-Werror=maybe-uninitialized] The warni

[PATCH] bpf: fix possible uninitialized access in inactive rotation

2016-11-16 Thread Arnd Bergmann
This newly added code causes a build warning: kernel/bpf/bpf_lru_list.c: In function '__bpf_lru_list_rotate_inactive': kernel/bpf/bpf_lru_list.c:201:28: error: 'next' may be used uninitialized in this function [-Werror=maybe-uninitialized] The warning is plausible from looking at the code, thoug