linux_hardened: BUG on struct validation failure

This commit is contained in:
Joachim Fasting 2017-05-02 16:21:26 +02:00
parent a7ecdffc28
commit 1816e2b960
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -17,6 +17,10 @@ GCC_PLUGINS y # Enable gcc plugin options
DEBUG_WX y # A one-time check for W+X mappings at boot; doesn't do anything beyond printing a warning
${optionalString (versionAtLeast version "4.10") ''
BUG_ON_DATA_CORRUPTION y # BUG if kernel struct validation detects corruption
''}
# Additional validation of commonly targetted structures
DEBUG_CREDENTIALS y
DEBUG_NOTIFIERS y