[PATCH v4 net-next] fix unsafe set_memory_rw from softirq

Eric Dumazet eric.dumazet at gmail.com
Mon Oct 7 03:56:32 EST 2013


On Fri, 2013-10-04 at 00:14 -0700, Alexei Starovoitov wrote:
> on x86 system with net.core.bpf_jit_enable = 1

> cannot reuse jited filter memory, since it's readonly,
> so use original bpf insns memory to hold work_struct
> 
> defer kfree of sk_filter until jit completed freeing
> 
> tested on x86_64 and i386
> 
> Signed-off-by: Alexei Starovoitov <ast at plumgrid.com>

Acked-by: Eric Dumazet <edumazet at google.com>




More information about the Linuxppc-dev mailing list