Re: [PATCH net] bpf: improve read-only handling

2017-03-12 Thread David Miller
From: Daniel Borkmann Date: Sat, 11 Mar 2017 16:55:49 +0100 > Improve bpf_{prog,jit_binary}_{un,}lock_ro() by throwing a > one-time warning in case of an error when the image couldn't > be set read-only, and also mark struct bpf_prog as locked when > bpf_prog_lock_ro() was called. > > Reason for

[PATCH net] bpf: improve read-only handling

2017-03-11 Thread Daniel Borkmann
Improve bpf_{prog,jit_binary}_{un,}lock_ro() by throwing a one-time warning in case of an error when the image couldn't be set read-only, and also mark struct bpf_prog as locked when bpf_prog_lock_ro() was called. Reason for the latter is that bpf_prog_unlock_ro() is called from various places inc