Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-19 Thread Howard McLauchlan
On 03/18/2018 07:13 PM, Andy Lutomirski wrote: On Sun, Mar 18, 2018 at 6:47 AM, Dominik Brodowski wrote: On Fri, Mar 16, 2018 at 03:55:04PM -0700, Howard McLauchlan wrote: On 03/13/2018 04:56 PM, Andy Lutomirski wrote: On Tue, Mar 13, 2018 at 11:16 PM, Howard McLauchlan wrote: Error injecti

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-18 Thread Andy Lutomirski
On Sun, Mar 18, 2018 at 6:47 AM, Dominik Brodowski wrote: > On Fri, Mar 16, 2018 at 03:55:04PM -0700, Howard McLauchlan wrote: >> On 03/13/2018 04:56 PM, Andy Lutomirski wrote: >> > On Tue, Mar 13, 2018 at 11:16 PM, Howard McLauchlan >> > wrote: >> >> Error injection is a useful mechanism to fai

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-17 Thread Dominik Brodowski
On Fri, Mar 16, 2018 at 03:55:04PM -0700, Howard McLauchlan wrote: > On 03/13/2018 04:56 PM, Andy Lutomirski wrote: > > On Tue, Mar 13, 2018 at 11:16 PM, Howard McLauchlan > > wrote: > >> Error injection is a useful mechanism to fail arbitrary kernel > >> functions. However, it is often hard to g

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-16 Thread Howard McLauchlan
On 03/13/2018 04:56 PM, Andy Lutomirski wrote: > On Tue, Mar 13, 2018 at 11:16 PM, Howard McLauchlan > wrote: >> Error injection is a useful mechanism to fail arbitrary kernel >> functions. However, it is often hard to guarantee an error propagates >> appropriately to user space programs. By inje

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-13 Thread Howard McLauchlan
On 03/13/2018 04:49 PM, Yonghong Song wrote: > > > On 3/13/18 4:45 PM, Omar Sandoval wrote: >> On Tue, Mar 13, 2018 at 04:16:27PM -0700, Howard McLauchlan wrote: >>> Error injection is a useful mechanism to fail arbitrary kernel >>> functions. However, it is often hard to guarantee an error propa

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-13 Thread Andy Lutomirski
On Tue, Mar 13, 2018 at 11:16 PM, Howard McLauchlan wrote: > Error injection is a useful mechanism to fail arbitrary kernel > functions. However, it is often hard to guarantee an error propagates > appropriately to user space programs. By injecting into syscalls, we can > return arbitrary values t

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-13 Thread Yonghong Song
On 3/13/18 4:45 PM, Omar Sandoval wrote: On Tue, Mar 13, 2018 at 04:16:27PM -0700, Howard McLauchlan wrote: Error injection is a useful mechanism to fail arbitrary kernel functions. However, it is often hard to guarantee an error propagates appropriately to user space programs. By injecting in

Re: [PATCH] bpf: whitelist syscalls for error injection

2018-03-13 Thread Omar Sandoval
On Tue, Mar 13, 2018 at 04:16:27PM -0700, Howard McLauchlan wrote: > Error injection is a useful mechanism to fail arbitrary kernel > functions. However, it is often hard to guarantee an error propagates > appropriately to user space programs. By injecting into syscalls, we can > return arbitrary v

[PATCH] bpf: whitelist syscalls for error injection

2018-03-13 Thread Howard McLauchlan
Error injection is a useful mechanism to fail arbitrary kernel functions. However, it is often hard to guarantee an error propagates appropriately to user space programs. By injecting into syscalls, we can return arbitrary values to user space directly; this increases flexibility and robustness in