netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: ast@kernel.org
Cc: jannh@google.com, netdev@vger.kernel.org,
	Daniel Borkmann <daniel@iogearbox.net>
Subject: [PATCH bpf 0/2] bpf fix to reject mixing ptr / scalar alu op on unpriv
Date: Sun,  6 Jan 2019 00:54:36 +0100	[thread overview]
Message-ID: <20190105235438.5944-1-daniel@iogearbox.net> (raw)

Follow-up fix to 979d63d50c0c ("bpf: prevent out of bounds speculation
on pointer arithmetic") in order to reject a corner case for sanitation
when ptr / scalars are mixed in the same alu op.

Thanks!

Daniel Borkmann (2):
  bpf: fix sanitation of alu op with pointer / scalar type from different paths
  bpf: add various test cases for alu op on mixed dst register types

 include/linux/bpf_verifier.h                |   1 +
 kernel/bpf/verifier.c                       |  61 +++++++++++---
 tools/testing/selftests/bpf/test_verifier.c | 120 ++++++++++++++++++++++++++++
 3 files changed, 169 insertions(+), 13 deletions(-)

-- 
2.9.5

             reply	other threads:[~2019-01-05 23:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-05 23:54 Daniel Borkmann [this message]
2019-01-05 23:54 ` [PATCH bpf 1/2] bpf: fix sanitation of alu op with pointer / scalar type from different paths Daniel Borkmann
2019-01-05 23:54 ` [PATCH bpf 2/2] bpf: add various test cases for alu op on mixed dst register types Daniel Borkmann
2019-01-06  5:34 ` [PATCH bpf 0/2] bpf fix to reject mixing ptr / scalar alu op on unpriv Alexei Starovoitov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190105235438.5944-1-daniel@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=ast@kernel.org \
    --cc=jannh@google.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).