From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov via iovisor-dev Subject: Re: [RFC PATCH net-next 5/5] selftests/bpf: change test_verifier expectations Date: Wed, 7 Jun 2017 19:43:36 -0700 Message-ID: <20170608024334.jgo63s2fnoi5wmia@ast-mbp> References: <92db9689-af6a-e172-ba57-195e588f9cc0@solarflare.com> Reply-To: Alexei Starovoitov Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iovisor-dev , LKML , davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org To: Edward Cree Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iovisor-dev-bounces-9jONkmmOlFHEE9lA1F8Ukti2O/JbrIOy@public.gmane.org Errors-To: iovisor-dev-bounces-9jONkmmOlFHEE9lA1F8Ukti2O/JbrIOy@public.gmane.org List-Id: netdev.vger.kernel.org On Wed, Jun 07, 2017 at 04:00:02PM +0100, Edward Cree wrote: > Some of the verifier's error messages have changed, and some constructs > that previously couldn't be verified are now accepted. > > Signed-off-by: Edward Cree > --- > tools/testing/selftests/bpf/test_verifier.c | 226 ++++++++++++++-------------- > 1 file changed, 116 insertions(+), 110 deletions(-) imo this rewrite needs more than one additional test. Like i counted at least 2 new verifier features (like negative and ptr & 0x40) All the new logic needs to be covered by tests.