From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [iproute PATCH] bpf: Make bytecode-file reading a little more robust Date: Thu, 3 Aug 2017 15:59:42 -0700 Message-ID: <20170803155942.4112575c@xeon-e3> References: <20170802125756.26210-1-phil@nwl.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Daniel Borkmann To: Phil Sutter Return-path: Received: from mail-pg0-f42.google.com ([74.125.83.42]:33127 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbdHCW7p (ORCPT ); Thu, 3 Aug 2017 18:59:45 -0400 Received: by mail-pg0-f42.google.com with SMTP id u5so498726pgn.0 for ; Thu, 03 Aug 2017 15:59:45 -0700 (PDT) In-Reply-To: <20170802125756.26210-1-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2 Aug 2017 14:57:56 +0200 Phil Sutter wrote: > bpf_parse_string() will now correctly handle: > > - Extraneous whitespace, > - OPs on multiple lines and > - overlong file names. > > The added feature of allowing to have OPs on multiple lines (like e.g. > tcpdump prints them) is rather a side effect of fixing detection of > malformed bytecode files having random content on a second line, like > e.g.: > > | 4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0 > | foobar > > Cc: Daniel Borkmann > Signed-off-by: Phil Sutter Looks good applied.