On 06/11/2019 22:45, KP Singh wrote:[...]
On 06-Nov 17:55, MickaÃl SalaÃn wrote:
On 06/11/2019 11:06, KP Singh wrote:
On 05-Nov 11:34, Alexei Starovoitov wrote:
On Tue, Nov 05, 2019 at 07:01:41PM +0100, MickaÃl SalaÃn wrote:
On 05/11/2019 18:18, Alexei Starovoitov wrote:
* Use a single BPF program type; this is necessary for a key requirement
of KRSI, i.e. runtime instrumentation. The upcoming prototype should
illustrate how this works for KRSI - note that itâs possible to vary
the context types exposed by different hooks.
Why a single BPF program type? Do you mean *attach* types? Landlock only
use one program type, but will use multiple attach types.
Why do you think it is necessary for KRSI or for runtime instrumentation?
If it is justified, it could be a dedicated program attach type (e.g.
BPF_LANDLOCK_INTROSPECTION).
What is the advantage to have the possibility to vary the context types
over dedicated *typed* contexts? I don't see any advantages, but at
least one main drawback: to require runtime checks (when helpers use
this generic context) instead of load time checks (thanks to static type
checking of the context).