From: Kees Cook Date: Tue, 4 Apr 2017 15:12:11 -0700 Message-Id: <1491343938-75336-1-git-send-email-keescook@chromium.org> Subject: [kernel-hardening] [PATCH v2] bug: further enhance use of CHECK_DATA_CORRUPTION To: Ingo Molnar Cc: Kees Cook , Peter Zijlstra , "Paul E. McKenney" , Kalle Valo , Andrew Morton , Rik van Riel , Jakub Kicinski , Viresh Kumar , Andy Shevchenko , Geert Uytterhoeven , Olof Johansson , Chris Wilson , George Spelvin , Thomas Gleixner , Josh Poimboeuf , David Windsor , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com List-ID: This continues in applying the CHECK_DATA_CORRUPTION tests where appropriate, and pulling similar CONFIGs under the same check. Most notably, this adds the checks to refcount_t so that system builders can Oops their kernels when encountering a potential refcounter attack. (And so now the LKDTM tests for refcount issues pass correctly.) The series depends on the changes in -next made to lib/refcount.c, so it might be easiest if this goes through the locking tree... v2 is a rebase to -next and adjusts to using WARN_ONCE() instead of WARN(). -Kees v1 was here: https://lkml.org/lkml/2017/3/6/720