Re: [PATCHv3 net-next 05/15] bpf: enable non-core use of the verfier

2016-09-15 Thread Jakub Kicinski
On Wed, 14 Sep 2016 16:05:51 -0700, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 08:00:13PM +0100, Jakub Kicinski wrote: > > Advanced JIT compilers and translators may want to use > > eBPF verifier as a base for parsers or to perform custom > > checks and validations. > > > > Add ability fo

Re: [PATCHv3 net-next 05/15] bpf: enable non-core use of the verfier

2016-09-14 Thread Alexei Starovoitov
On Wed, Sep 14, 2016 at 08:00:13PM +0100, Jakub Kicinski wrote: > Advanced JIT compilers and translators may want to use > eBPF verifier as a base for parsers or to perform custom > checks and validations. > > Add ability for external users to invoke the verifier > and provide callbacks to be invo

[PATCHv3 net-next 05/15] bpf: enable non-core use of the verfier

2016-09-14 Thread Jakub Kicinski
Advanced JIT compilers and translators may want to use eBPF verifier as a base for parsers or to perform custom checks and validations. Add ability for external users to invoke the verifier and provide callbacks to be invoked for every intruction checked. For now only add most basic callback for