Re: [PATCH] bpf: fix missing checks of the return value of check_reg_arg

2018-12-24 Thread Alexei Starovoitov
On Tue, Dec 25, 2018 at 01:17:10AM -0600, Kangjie Lu wrote: > check_reg_arg() may fail. This fix inserts checks for its return value. > If check_reg_arg() fails, issues an error message. > > Signed-off-by: Kangjie Lu > --- > kernel/bpf/verifier.c | 15 --- > 1 file changed, 12 insert

[PATCH] bpf: fix missing checks of the return value of check_reg_arg

2018-12-24 Thread Kangjie Lu
check_reg_arg() may fail. This fix inserts checks for its return value. If check_reg_arg() fails, issues an error message. Signed-off-by: Kangjie Lu --- kernel/bpf/verifier.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/v