Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbaBMW44 (ORCPT ); Thu, 13 Feb 2014 17:56:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751909AbaBMW4x (ORCPT ); Thu, 13 Feb 2014 17:56:53 -0500 Message-ID: <52FD4D78.4050709@redhat.com> Date: Thu, 13 Feb 2014 23:55:52 +0100 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "H. Peter Anvin" CC: Alexei Starovoitov , Ingo Molnar , "David S. Miller" , Steven Rostedt , Peter Zijlstra , Thomas Gleixner , Masami Hiramatsu , Tom Zanussi , Jovi Zhangwei , Eric Dumazet , Linus Torvalds , Andrew Morton , Frederic Weisbecker , Arnaldo Carvalho de Melo , Pekka Enberg , Arjan van de Ven , Christoph Hellwig , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH v2 tip 0/7] 64-bit BPF insn set and tracing filters References: <1391649046-4383-1-git-send-email-ast@plumgrid.com> <52F3670D.5090608@redhat.com> <52FD47F9.2090907@zytor.com> <52FD4AC0.7090502@redhat.com> <52FD4B97.9020306@zytor.com> In-Reply-To: <52FD4B97.9020306@zytor.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2014 11:47 PM, H. Peter Anvin wrote: > On 02/13/2014 02:44 PM, Daniel Borkmann wrote: >> >> Well, if that would be the case, then seccomp would have had JIT support >> long ago. ;-) Right now BPF filters with seccomp are not JIT compiled >> for _any_ architecture. > > Really, I was under the impression there were. They *should be*, that > was an important concept in the development of the seccomp filters. $ git grep -n BPF_S_ANC_SECCOMP_LD_W include/linux/filter.h:153: BPF_S_ANC_SECCOMP_LD_W, kernel/seccomp.c:136: ftest->code = BPF_S_ANC_SECCOMP_LD_W; net/core/filter.c:389: case BPF_S_ANC_SECCOMP_LD_W: net/core/filter.c:812: [BPF_S_ANC_SECCOMP_LD_W] = BPF_LD|BPF_B|BPF_ABS, Afaik, there had been attempts to support it, but had flaws in it. > -hpa > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/