From patchwork Tue Jun 7 21:57:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9162667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9399860801 for ; Tue, 7 Jun 2016 21:57:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8033E2836D for ; Tue, 7 Jun 2016 21:57:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 752AB28370; Tue, 7 Jun 2016 21:57:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id A38722836E for ; Tue, 7 Jun 2016 21:57:49 +0000 (UTC) Received: (qmail 5929 invoked by uid 550); 7 Jun 2016 21:57:48 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: kernel-hardening@lists.openwall.com Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 5701 invoked from network); 7 Jun 2016 21:57:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qPPx+0m5pFNWkZmO/puVucrE3Too9tsNxOhK6hN1tIQ=; b=edj4Hmc24qKZ2iq0OHFIca5IB9/orz2W5KhXvxxUGpyro8vsew1S4uazyS3lex6HOL axbBLx/GvGVVqAlzLVRH8fJDd7y+a7g6645cCSF0TsTPWlwZDp2OgP9FkOQ+rYg6yO4P kVyAj+1v13Qoz4LQQqJDJ3oERNQBISKwZVFeA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qPPx+0m5pFNWkZmO/puVucrE3Too9tsNxOhK6hN1tIQ=; b=ZizglJTdYQQydUN1O8C6EPA0mGnbP94SSSlqrPGZ9mchCWq36XqvYmHNRx//bxyvSD PktbO/0CcMhWO28mfTjvLtZzepZoxGd2yAfxNltcakHWp198WuKyeIyb1Y5qbeW4tJ/U QDuddXkXpQujoHf1d6pNiqrmDiFsIS5pU5qK4oUmmItUwD4wJmxsvY2mj9cV7a4B9PPA sLG70IQ2piZG9mWKj45KPRSYtM/tRa+rSUN4Y3EUe6M/KkHgFKj8Up7pRVMPhCBda1GU /uqLsuuzAW42069frivB0l41zaGSJo4swrJW53/fOvP2/13TYB90GgTY1jsOs19OBOcn 6JpQ== X-Gm-Message-State: ALyK8tJHCL4fkSEog5XIjJaGWhJ59MEsnZwM9irlD83nmmHvgYt7OxjFJgYTmw8+8rioG0NH X-Received: by 10.98.82.194 with SMTP id g185mr1636128pfb.157.1465336632358; Tue, 07 Jun 2016 14:57:12 -0700 (PDT) From: Kees Cook To: kernel-hardening@lists.openwall.com Cc: Kees Cook , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Jiri Slaby , Guenter Roeck , linux-kernel@vger.kernel.org Date: Tue, 7 Jun 2016 14:57:05 -0700 Message-Id: <1465336628-18219-3-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465336628-18219-1-git-send-email-keescook@chromium.org> References: <1465336628-18219-1-git-send-email-keescook@chromium.org> Subject: [kernel-hardening] [PATCH 2/5] lkdtm: clean up after rename X-Virus-Scanned: ClamAV using ClamSMTP This cleans up comments a bit to improve readability, adjusts the name of the module after the source file renaming, and corrects the MAINTAINERS for the upcoming lkdtm files. Signed-off-by: Kees Cook --- MAINTAINERS | 2 +- drivers/misc/lkdtm_core.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ed42cb65a19b..437e291a7b30 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6953,7 +6953,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git LINUX KERNEL DUMP TEST MODULE (LKDTM) M: Kees Cook S: Maintained -F: drivers/misc/lkdtm.c +F: drivers/misc/lkdtm* LLC (802.2) M: Arnaldo Carvalho de Melo diff --git a/drivers/misc/lkdtm_core.c b/drivers/misc/lkdtm_core.c index 0a5cbbe12452..605050c60f10 100644 --- a/drivers/misc/lkdtm_core.c +++ b/drivers/misc/lkdtm_core.c @@ -1,5 +1,9 @@ /* - * Kprobe module for testing crash dumps + * Linux Kernel Dump Test Module for testing kernel crashes conditions: + * induces system failures at predefined crashpoints and under predefined + * operational conditions in order to evaluate the reliability of kernel + * sanity checking and crash dumps obtained using different dumping + * solutions. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,10 +23,6 @@ * * Author: Ankita Garg * - * This module induces system failures at predefined crashpoints to - * evaluate the reliability of crash dumps obtained using different dumping - * solutions. - * * It is adapted from the Linux Kernel Dump Test Tool by * Fernando Luis Vazquez Cao * @@ -30,7 +30,7 @@ * * See Documentation/fault-injection/provoke-crashes.txt for instructions */ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#define pr_fmt(fmt) "lkdtm: " fmt #include #include