Re: [PATCH 2/4] net/bpf: refactor freeing of executable allocations

2018-11-18 Thread Y Song
On Sun, Nov 18, 2018 at 3:55 PM Ard Biesheuvel wrote: > > On Sat, 17 Nov 2018 at 23:47, Y Song wrote: > > > > On Sat, Nov 17, 2018 at 6:58 PM Ard Biesheuvel > > wrote: > > > > > > All arch overrides of the __weak bpf_jit_free() amount to the same > > > thing: the allocated memory was never mappe

Re: [PATCH 2/4] net/bpf: refactor freeing of executable allocations

2018-11-18 Thread Ard Biesheuvel
On Sat, 17 Nov 2018 at 23:47, Y Song wrote: > > On Sat, Nov 17, 2018 at 6:58 PM Ard Biesheuvel > wrote: > > > > All arch overrides of the __weak bpf_jit_free() amount to the same > > thing: the allocated memory was never mapped read-only, and so > > it does not have to be remapped to read-write b

Re: [PATCH 2/4] net/bpf: refactor freeing of executable allocations

2018-11-18 Thread Y Song
On Sat, Nov 17, 2018 at 6:58 PM Ard Biesheuvel wrote: > > All arch overrides of the __weak bpf_jit_free() amount to the same > thing: the allocated memory was never mapped read-only, and so > it does not have to be remapped to read-write before being freed. > > So in preparation of permitting arch