netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] bpf: fix verifier min/max handling in BPF_SUB
@ 2017-07-21 13:35 Edward Cree via iovisor-dev
  2017-07-21 13:36 ` [PATCH net 1/2] selftests/bpf: subtraction bounds test Edward Cree
       [not found] ` <2ebcb201-2f18-7276-f4f9-f2bbaffae179-s/n/eUQHGBpZroRs9YW3xA@public.gmane.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Edward Cree via iovisor-dev @ 2017-07-21 13:35 UTC (permalink / raw)
  To: davem-fT/PcQaiUtIeIZ0/mPfg9Q, Alexei Starovoitov,
	Alexei Starovoitov, Daniel Borkmann
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA, iovisor-dev,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

I managed to come up with a test for the swapped bounds in BPF_SUB, so here
 it is along with a patch that fixes it, separated out from my 'rewrite
 everything' series so it can go to -stable.

Edward Cree (2):
  selftests/bpf: subtraction bounds test
  bpf/verifier: fix min/max handling in BPF_SUB

 kernel/bpf/verifier.c                       | 21 +++++++++++++++------
 tools/testing/selftests/bpf/test_verifier.c | 28 ++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 6 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-24 21:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21 13:35 [PATCH net 0/2] bpf: fix verifier min/max handling in BPF_SUB Edward Cree via iovisor-dev
2017-07-21 13:36 ` [PATCH net 1/2] selftests/bpf: subtraction bounds test Edward Cree
     [not found]   ` <a12c5a59-d2e0-5866-d225-501d19a3ec7b-s/n/eUQHGBpZroRs9YW3xA@public.gmane.org>
2017-07-21 14:29     ` Daniel Borkmann via iovisor-dev
     [not found] ` <2ebcb201-2f18-7276-f4f9-f2bbaffae179-s/n/eUQHGBpZroRs9YW3xA@public.gmane.org>
2017-07-21 13:37   ` [PATCH net 2/2] bpf/verifier: fix min/max handling in BPF_SUB Edward Cree via iovisor-dev
     [not found]     ` <e3fa964f-54f2-7310-59d1-41a4b7ad9a5b-s/n/eUQHGBpZroRs9YW3xA@public.gmane.org>
2017-07-21 14:30       ` Daniel Borkmann via iovisor-dev
2017-07-21 15:54   ` [PATCH net 0/2] bpf: fix verifier " Nadav Amit via iovisor-dev
2017-07-24 21:03   ` David Miller via iovisor-dev

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).