xsk: Fix out of boundary write in __xsk_rcv_memcpy
first_len is the remainder of the first page we're copying. If this size is larger, then out of page boundary write will otherwise happen. Fixes: c05cd364 ("xsk: add support to allow unaligned chunk placement") Signed-off-by: NLi RongQing <lirongqing@baidu.com> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net> Acked-by: NJonathan Lemon <jonathan.lemon@gmail.com> Acked-by: NBjörn Töpel <bjorn.topel@intel.com> Link: https://lore.kernel.org/bpf/1585813930-19712-1-git-send-email-lirongqing@baidu.com
Showing
想要评论请 注册 或 登录