Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1682727
| From | Nadav Amit <nadav.amit@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking |
| Date | 2017-07-06 23:30 +0200 |
| Message-ID | <u0mvx-2IA-27@gated-at.bofh.it> (permalink) |
| References | <tWYg2-C4-5@gated-at.bofh.it> <tWYg4-C4-61@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Edward Cree via iovisor-dev <iovisor-dev@lists.iovisor.org> wrote: > Tracks value alignment by means of tracking known & unknown bits. > Tightens some min/max value checks and fixes a couple of bugs therein. > If pointer leaks are allowed, and adjust_ptr_min_max_vals returns -EACCES, > treat the pointer as an unknown scalar and try again, because we might be > able to conclude something about the result (e.g. pointer & 0x40 is either > 0 or 0x40). > > Signed-off-by: Edward Cree <ecree@solarflare.com> > --- > include/linux/bpf.h | 34 +- > include/linux/bpf_verifier.h | 40 +- > include/linux/tnum.h | 79 ++ > kernel/bpf/Makefile | 2 +- > kernel/bpf/tnum.c | 163 ++++ > kernel/bpf/verifier.c | 1692 ++++++++++++++++++++++++------------------ > 6 files changed, 1235 insertions(+), 775 deletions(-) (RESEND) I find it a bit surprising that such huge changes that can affect security and robustness are performed in one patch. Personally, I cannot comprehend all of these changes. In addition, I think that it is valuable to describe in detail the bugs that the patch solves and when they were introduced. I can bring up some concerns regarding inconsistencies in offset checks and size, not spilling SCALAR and my wish not to limit packet size. However, when the patch is that big, I think it is useless. Nadav
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Nadav Amit <nadav.amit@gmail.com> - 2017-07-06 23:30 +0200
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Edward Cree <ecree@solarflare.com> - 2017-07-07 15:50 +0200
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Nadav Amit <nadav.amit@gmail.com> - 2017-07-07 19:50 +0200
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Nadav Amit <nadav.amit@gmail.com> - 2017-07-08 03:00 +0200
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Edward Cree <ecree@solarflare.com> - 2017-07-12 21:20 +0200
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Nadav Amit <nadav.amit@gmail.com> - 2017-07-13 00:10 +0200
Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking Edward Cree <ecree@solarflare.com> - 2017-07-17 19:10 +0200
csiph-web