KP Singh 423f16108c bpf: Augment the set of sleepable LSM hooks
Update the set of sleepable hooks with the ones that do not trigger
a warning with might_fault() when exercised with the correct kernel
config options enabled, i.e.

	DEBUG_ATOMIC_SLEEP=y
	LOCKDEP=y
	PROVE_LOCKING=y

This means that a sleepable LSM eBPF program can be attached to these
LSM hooks. A new helper method bpf_lsm_is_sleepable_hook is added and
the set is maintained locally in bpf_lsm.c

Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201113005930.541956-2-kpsingh@chromium.org
2020-11-13 15:45:54 +01:00
..
2020-03-13 12:49:52 -07:00
2020-11-05 20:04:46 -08:00
2020-10-02 15:00:49 -07:00
2020-08-28 15:41:30 +02:00
2020-11-06 08:08:37 -08:00
2020-08-28 15:41:30 +02:00
2020-08-28 15:41:30 +02:00
2020-11-06 08:08:37 -08:00