Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751802AbdFHP2C (ORCPT ); Thu, 8 Jun 2017 11:28:02 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.164]:45146 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583AbdFHP2A (ORCPT ); Thu, 8 Jun 2017 11:28:00 -0400 Subject: Re: [RFC PATCH net-next 5/5] selftests/bpf: change test_verifier expectations To: Alexei Starovoitov References: <92db9689-af6a-e172-ba57-195e588f9cc0@solarflare.com> <20170608024334.jgo63s2fnoi5wmia@ast-mbp> CC: , Alexei Starovoitov , Daniel Borkmann , , iovisor-dev , LKML From: Edward Cree Message-ID: <8033b93c-2d13-ad57-2a59-9fbb603a6e9c@solarflare.com> Date: Thu, 8 Jun 2017 16:27:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20170608024334.jgo63s2fnoi5wmia@ast-mbp> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.17.20.45] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.100.1062-23118.003 X-TM-AS-Result: No--5.159200-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-MDID: 1496935678-laNRKxs27gtN Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 17 On 08/06/17 03:43, Alexei Starovoitov wrote: > 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. Yes, I will write some new tests to cover the new features. I just wanted to get some comments on the patch first, in case I was barking up entirely the wrong tree. -Ed