Thread (28 messages) 28 messages, 5 authors, 2014-06-25

Re: [PATCH 05/17] MIPS: bpf: Return error code if the offset is a negative number

From: Markos Chandras <hidden>
Date: 2014-06-25 08:12:56
Also in: linux-mips

On 06/23/2014 11:09 PM, Alexei Starovoitov wrote:
On Mon, Jun 23, 2014 at 2:38 AM, Markos Chandras
[off-list ref] wrote:
quoted
Previously, the negative offset was not checked leading to failures
due to trying to load data beyond the skb struct boundaries. Until we
have proper asm helpers in place, it's best if we return ENOSUPP if K
is negative when trying to JIT the filter or 0 during runtime if we
do an indirect load where the value of X is unknown during build time.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Daniel Borkmann <redacted>
Cc: Alexei Starovoitov <redacted>
Cc: netdev@vger.kernel.org
Signed-off-by: Markos Chandras <redacted>
Hi Markos,

thank you for addressing all of my earlier comments.
Looks like test_bpf was quite useful in finding all of these bugs :)
For the patches that reached netdev:

Acked-by: Alexei Starovoitov <redacted>
Thank you for the review and your constructive comments in your previous
emails.

-- 
markos
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help