Re: [PATCH] bpf: fix a missing check of return value

2018-12-20 Thread Alexei Starovoitov
On Thu, Dec 20, 2018 at 01:45:56PM -0600, Kangjie Lu wrote: > check_reg_arg() may fail and not mark correct data in "env". This > fix inserts a check that ensures check_reg_arg() is successful, and > if it is not, the fix stops further operations and returns an error > upstream. > > Signed-off-by

[PATCH] bpf: fix a missing check of return value

2018-12-20 Thread Kangjie Lu
check_reg_arg() may fail and not mark correct data in "env". This fix inserts a check that ensures check_reg_arg() is successful, and if it is not, the fix stops further operations and returns an error upstream. Signed-off-by: Kangjie Lu --- kernel/bpf/verifier.c | 4 +++- 1 file changed, 3 ins