Bug 208607

Summary: FAULT_INJECTION: fail LSM hooks
Product: Memory Management Reporter: Dmitry Vyukov (dvyukov)
Component: SanitizersAssignee: MM/Sanitizers virtual assignee (mm_sanitizers)
Status: NEW ---    
Severity: enhancement CC: a.nogikh, kasan-dev
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: ALL Subsystem:
Regression: No Bisected commit-id:

Description Dmitry Vyukov 2020-07-19 11:01:30 UTC
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.
Comment 1 Aleksandr Nogikh 2020-11-19 18:26:54 UTC
There's a patch series that implements this feature

https://lkml.kernel.org/r/20201111104409.1530957-1-a.nogikh@gmail.com