See the following issue for context: FAULT_INJECTION: fail copy_to/from_user https://bugzilla.kernel.org/show_bug.cgi?id=208461 Similarly we could fail all LSM hooks. LSM can fail all of them, but testing this systematically with an actual LSM is hard.
There's a patch series that implements this feature https://lkml.kernel.org/r/20201111104409.1530957-1-a.nogikh@gmail.com