On Thu, Apr 18, 2019 at 8:42 AM Alexander Potapenko <glider@xxxxxxxxxx> wrote: > > Add sock_alloc_send_pskb_noinit(), which is similar to > sock_alloc_send_pskb(), but allocates with __GFP_NOINIT. > This helps reduce the slowdown on hackbench from 9% to 0.1%. I would include a detailed justification about why this is safe to do. I imagine (but haven't looked) that the skb is immediately written to after allocation, so this is basically avoiding a "double init". Is that correct? -- Kees Cook