From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754776AbbIIQJw (ORCPT ); Wed, 9 Sep 2015 12:09:52 -0400 Received: from www62.your-server.de ([213.133.104.62]:46139 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbbIIQJs (ORCPT ); Wed, 9 Sep 2015 12:09:48 -0400 Message-ID: <55F059C7.9070105@iogearbox.net> Date: Wed, 09 Sep 2015 18:09:43 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Alexei Starovoitov , Tycho Andersen CC: Kees Cook , Alexei Starovoitov , Will Drewry , Oleg Nesterov , Andy Lutomirski , Pavel Emelyanov , "Serge E. Hallyn" , LKML , Network Development Subject: Re: [PATCH 1/6] ebpf: add a seccomp program type References: <1441382664-17437-1-git-send-email-tycho.andersen@canonical.com> <1441382664-17437-2-git-send-email-tycho.andersen@canonical.com> <20150904210615.GR26679@smitten> <20150909155035.GA26679@smitten> <20150909160744.GA3526@Alexeis-MBP-2.westell.com> In-Reply-To: <20150909160744.GA3526@Alexeis-MBP-2.westell.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/09/2015 06:07 PM, Alexei Starovoitov wrote: > On Wed, Sep 09, 2015 at 09:50:35AM -0600, Tycho Andersen wrote: [...] >> Thoughts? > > Please do not add any per-instruction hacks. None of them are > necessary. Classic had to do extra ugly checks in seccomp only > because verifier wasn't flexible enough. > If you don't want to see any BPF_CALL in seccomp, just have > empty get_func_proto() callback for BPF_PROG_TYPE_SECCOMP > and verifier will reject all calls. > Currently we have only two non-generic instrucitons > LD_ABS and LD_IND that are avaialable for sockets/TC only, > because these are legacy instructions and we had to make > exceptions for them. Yep, +1.