On Thu, Apr 21, 2022 at 11:24 AM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > Let's not complicate the logic by dragging jit_fill_hole > further into generic allocation. I agree that just zeroing the page is probably perfectly fine in practice on x86, but I'm also not really seeing the "complication" of just doing things right. > The existing bpf_prog_pack code still does memset(0xcc) > a random range of bytes before and after jit-ed bpf code. That is actually wishful thinking, and not based on reality.