Re: [PATCH net-next] bpf: bpf_event_entry_gen's alloc needs to be in atomic context

2016-07-16 Thread David Miller
From: Daniel Borkmann Date: Sat, 16 Jul 2016 01:15:55 +0200 > Should have been obvious, only called from bpf() syscall via map_update_elem() > that calls bpf_fd_array_map_update_elem() under RCU read lock and thus this > must also be in GFP_ATOMIC, of course. > > Fixes: 3b1efb196eee ("bpf, maps:

[PATCH net-next] bpf: bpf_event_entry_gen's alloc needs to be in atomic context

2016-07-15 Thread Daniel Borkmann
Should have been obvious, only called from bpf() syscall via map_update_elem() that calls bpf_fd_array_map_update_elem() under RCU read lock and thus this must also be in GFP_ATOMIC, of course. Fixes: 3b1efb196eee ("bpf, maps: flush own entries on perf map release") Signed-off-by: Daniel Borkmann