The patch titled Subject: lkdtm: include WARN format string has been added to the -mm tree. Its filename is lkdtm-include-warn-format-string.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/lkdtm-include-warn-format-string.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/lkdtm-include-warn-format-string.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Kees Cook <keescook@xxxxxxxxxxxx> Subject: lkdtm: include WARN format string In order to test the ordering of WARN format strings, actually include one in LKDTM. Link: http://lkml.kernel.org/r/1510100869-73751-2-git-send-email-keescook@xxxxxxxxxxxx Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: Fengguang Wu <fengguang.wu@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> Cc: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/lkdtm_bugs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/misc/lkdtm_bugs.c~lkdtm-include-warn-format-string drivers/misc/lkdtm_bugs.c --- a/drivers/misc/lkdtm_bugs.c~lkdtm-include-warn-format-string +++ a/drivers/misc/lkdtm_bugs.c @@ -63,9 +63,11 @@ void lkdtm_BUG(void) BUG(); } +static int warn_counter; + void lkdtm_WARNING(void) { - WARN_ON(1); + WARN(1, "Warning message trigger count: %d\n", warn_counter++); } void lkdtm_EXCEPTION(void) _ Patches currently in -mm which might be from keescook@xxxxxxxxxxxx are writeback-convert-timers-to-use-timer_setup.patch sh-boot-add-static-stack-protector-to-pre-kernel.patch lkdtm-include-warn-format-string.patch bug-define-the-cut-here-string-in-a-single-place.patch bug-fix-cut-here-location-for-__warn_taint-architectures.patch fs-nilfs2-convert-timers-to-use-timer_setup.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html