summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2017-12-22 16:29:04 +0100
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:18 +0300
commit93188ebdf304da5f3fe28a566e76ed5c468878b0 (patch)
tree0c1df92e34fa230668c30c3604466d44dbafa422 /kernel/sysctl_binary.c
parent4c5e87a5de8535772ac5941b09d22c114b6f6544 (diff)
bpf: reject out-of-bounds stack pointer calculation
Reject programs that compute wildly out-of-bounds stack pointers. Otherwise, pointers can be computed with an offset that doesn't fit into an `int`, causing security issues in the stack memory access check (as well as signed integer overflow during offset addition). This is a fix specifically for the v4.9 stable tree because the mainline code looks very different at this point. Fixes: 7bca0a9702edf ("bpf: enhance verifier to understand stack pointer arithmetic") Signed-off-by: Jann Horn <jannh@google.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions