Re: [PATCH 2/2] samples/bpf: add a test for bpf_override_return

From: Daniel Borkmann
Date: Tue Nov 07 2017 - 21:29:16 EST


On 11/07/2017 09:28 PM, Josef Bacik wrote:
From: Josef Bacik <jbacik@xxxxxx>

This adds a basic test for bpf_override_return to verify it works. We
override the main function for mounting a btrfs fs so it'll return
-ENOMEM and then make sure that trying to mount a btrfs fs will fail.

Acked-by: Alexei Starovoitov <ast@xxxxxxxxxx>
Signed-off-by: Josef Bacik <jbacik@xxxxxx>

Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>