bpf: verbose jump offset overflow check
authorAlexei Starovoitov <ast@kernel.org>
Tue, 2 Apr 2019 04:27:44 +0000 (21:27 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Apr 2019 23:27:38 +0000 (01:27 +0200)
commit4f73379ec5c2891598aa715c6df7ac9afdc86fbf
treef6399a8b833f0b5d9ec8931ed9c7372186ecf6ca
parent71dde681a8cea1ccff2c7b3be83c043ab6b2a977
bpf: verbose jump offset overflow check

Larger programs may trigger 16-bit jump offset overflow check
during instruction patching. Make this error verbose otherwise
users cannot decipher error code without printks in the verifier.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/core.c
kernel/bpf/verifier.c