Thread (3 messages) 3 messages, 3 authors, 2021-04-20

Re: [PATCH] bpf: Fix backport of "bpf: restrict unknown scalars of mixed signed bounds for unprivileged"

From: Yonghong Song <hidden>
Date: 2021-04-20 00:37:34
Also in: bpf, lkml


On 4/19/21 4:56 PM, Samuel Mendoza-Jonas wrote:
The 4.14 backport of 9d7eceede ("bpf: restrict unknown scalars of mixed
signed bounds for unprivileged") adds the PTR_TO_MAP_VALUE check to the
wrong location in adjust_ptr_min_max_vals(), most likely because 4.14
doesn't include the commit that updates the if-statement to a
switch-statement (aad2eeaf4 "bpf: Simplify ptr_min_max_vals adjustment").

Move the check to the proper location in adjust_ptr_min_max_vals().

Fixes: 17efa65350c5a ("bpf: restrict unknown scalars of mixed signed bounds for unprivileged")
Signed-off-by: Samuel Mendoza-Jonas <redacted>
Reviewed-by: Frank van der Linden <redacted>
Reviewed-by: Ethan Chen <redacted>
Just to be clear, the patch is for 4.14 stable branch.

Acked-by: Yonghong Song <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help