Thread (19 messages) 19 messages, 5 authors, 2018-08-10

Re: [PATCH v8 bpf-next 04/10] xdp: Helper function to clear kernel pointers in xdp_frame

From: Jesper Dangaard Brouer <hidden>
Date: 2018-08-03 11:01:38

On Fri,  3 Aug 2018 16:58:12 +0900
Toshiaki Makita [off-list ref] wrote:
xdp_frame has kernel pointers which should not be readable from bpf
programs. When we want to reuse xdp_frame region but it may be read by
bpf programs later, we can use this helper to clear kernel pointers.
This is more efficient than calling memset() for the entire struct.

Signed-off-by: Toshiaki Makita <redacted>
Acked-by: Jesper Dangaard Brouer <redacted>

After this patch is applied, I will take care of updating cpumap in a
similar way. Thanks.

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help