From: Mickaël Salaün <[email protected]> Date: Mon, 7 Aug 2017 20:45:20 +0200
> The function check_uarg_tail_zero() was created from bpf(2) for > BPF_OBJ_GET_INFO_BY_FD without taking the access_ok() nor the PAGE_SIZE > checks. Make this checks more generally available while unlikely to be > triggered, extend the memory range check and add an explanation > including why the ToCToU should not be a security concern. > > Signed-off-by: Mickaël Salaün <[email protected]> > Acked-by: Daniel Borkmann <[email protected]> > Cc: Alexei Starovoitov <[email protected]> > Cc: David S. Miller <[email protected]> > Cc: Kees Cook <[email protected]> > Cc: Martin KaFai Lau <[email protected]> > Link: > https://lkml.kernel.org/r/CAGXu5j+vRGFvJZmjtAcT8Hi8B+Wz0e1b6VKYZHfQP_=dxzc...@mail.gmail.com Applied.
