From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tycho Andersen Subject: Re: [net-next v3 0/2] eBPF seccomp filters Date: Mon, 26 Feb 2018 18:01:53 -0700 Message-ID: <20180227010153.leq7u45z57ypip2z@smitten> References: <20180226072651.GA27045@ircssh-2.c.rugged-nimbus-611.internal> <20180226230418.46nczgkh5csakyu7@ast-mbp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Will Drewry , Daniel Borkmann , Network Development , Linux Containers , Alexei Starovoitov , Andy Lutomirski , Sargun Dhillon , Alexei Starovoitov To: Kees Cook Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: netdev.vger.kernel.org On Mon, Feb 26, 2018 at 03:20:15PM -0800, Kees Cook wrote: > On Mon, Feb 26, 2018 at 3:04 PM, Alexei Starovoitov > wrote: > > On Mon, Feb 26, 2018 at 07:26:54AM +0000, Sargun Dhillon wrote: > >> This patchset enables seccomp filters to be written in eBPF. Although, this > >> [...] > > The main statement I want to hear from seccomp maintainers before > > proceeding any further on this that enabling eBPF in seccomp won't lead > > to seccomp folks arguing against changes in bpf core (like verifier) > > just because it's used by seccomp. > > It must be spelled out in the commit log with explicit Ack. > > The primary thing I'm concerned about with eBPF and seccomp is > side-effects from eBPF programs running at syscall time. This is an > extremely sensitive area, and I want to be sure there won't be > feature-creep here that leads to seccomp getting into a bad state. > > As long as seccomp can continue have its own verifier, I guess these patches should introduce some additional restrictions in kernel/seccomp.c then? Based on my reading now, it's whatever the eBPF verifier allows. > I *think* this will be fine, though, again I remain concerned about > maps, etc. I'm still reviewing these patches and how they might > provide overlap with Tycho's needs too, etc. Yes, it's on my TODO list to take a look at how to do it as suggested by Alexi on top of this set before posting a v2. Haven't had time recently, though. Cheers, Tycho