Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4949334imm; Tue, 26 Jun 2018 03:28:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKO1geYHVMrSkFNTU9epHDy0X4/FWZQ1nZr7+6XwyLewFzqrT02mgZFGr9yEFZVRW1QbiSN X-Received: by 2002:a65:6597:: with SMTP id u23-v6mr813808pgv.95.1530008887938; Tue, 26 Jun 2018 03:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530008887; cv=none; d=google.com; s=arc-20160816; b=rdJQpun1AWN4RLNStzId3IK72xqZFkUw2llt1/FFFEBGtHMuOESw2coopef2ov1Bkm RAfXqSIQrD2qZA4eSg+tbODzNDYZj7H0XX0T3nyToJSSu98y8rq6UPO/HTy6yskBRD2C u0xr/SR7PVOHFio7vacd8qKotjn96et0eJfYB+/sgDzXrhnzwQrur3zClpr7WjykdCjL 0+Scd6pgHYhA9QodeYf5B8QVHyZZ7n330yBAe+Psv+osW1ROzQjybbPep7rOsAMKNbVY qKeR+jBcfoO5mQ8UtaIHZ1t/JFZ8RbwYp7z3wIiNmdKZ767S/gWU1fq8lbL0MWVPgb+P DK2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=R6KmGe27PBwvZ8hEkwELFRnHEybvfOFRJOmqSS1eVA4=; b=CmXQl4ZC9Rob5/yfjkTgJ5ev59W+HHfxDpV8xnR1I+zV3W33SOaoIU4lKvKMHmU3sS KjL+K2XzmB0NgQD9iHc0+MAYXknxwvZR+HCKDex32XB8qUqrbMbrNc+U31rXgtdTrMa6 AJMoHpzlDJbeB5h+VNmA3FY5L5fMsPdIWCzj2ncQv1pbbCpcXctI3VO9eo6K6oJmPMkT V6rEHD+ML5VBKN8zZWrV1NA/HCYryEUOqQoaJiFbXTHvbYTJ0b8c5WQt1FfpunkEEss9 TB7B19sgaezRWvtUwrCazw6r8UXkxDeL5jOeNvhUrzSO0+e0HY0ykTm4iQVEtUSbxMQX nXZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si1327246pfb.171.2018.06.26.03.27.53; Tue, 26 Jun 2018 03:28:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935074AbeFZK0W (ORCPT + 99 others); Tue, 26 Jun 2018 06:26:22 -0400 Received: from terminus.zytor.com ([198.137.202.136]:49467 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934777AbeFZKZo (ORCPT ); Tue, 26 Jun 2018 06:25:44 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5QAP2m51648034 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Jun 2018 03:25:02 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5QAP11q1648027; Tue, 26 Jun 2018 03:25:01 -0700 Date: Tue, 26 Jun 2018 03:25:01 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Dmitry Vyukov Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, sergey.senozhatsky@gmail.com, brgerst@gmail.com, peterz@infradead.org, hpa@zytor.com, luto@kernel.org, dvyukov@google.com, mingo@kernel.org, torvalds@linux-foundation.org, jpoimboe@redhat.com, dvlasenk@redhat.com, bp@alien8.de Reply-To: jpoimboe@redhat.com, bp@alien8.de, dvlasenk@redhat.com, mingo@kernel.org, dvyukov@google.com, luto@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, brgerst@gmail.com, hpa@zytor.com, sergey.senozhatsky@gmail.com In-Reply-To: <20180625123808.227417-1-dvyukov@gmail.com> References: <20180625123808.227417-1-dvyukov@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/mm: Get rid of KERN_CONT in show_fault_oops() Git-Commit-ID: 4188f063e3694ccbf2a2044cf17cc325f91e458f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4188f063e3694ccbf2a2044cf17cc325f91e458f Gitweb: https://git.kernel.org/tip/4188f063e3694ccbf2a2044cf17cc325f91e458f Author: Dmitry Vyukov AuthorDate: Mon, 25 Jun 2018 14:38:08 +0200 Committer: Ingo Molnar CommitDate: Tue, 26 Jun 2018 09:00:25 +0200 x86/mm: Get rid of KERN_CONT in show_fault_oops() KERN_CONT leads to split lines in kernel output and complicates useful changes to printk like printing context before each line. Only acceptable use of continuations is basically boot-time testing. Get rid of it. Signed-off-by: Dmitry Vyukov Reviewed-by: Sergey Senozhatsky Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20180625123808.227417-1-dvyukov@gmail.com [ Removed unnecessary parentheses and prettified the printk statement. ] Signed-off-by: Ingo Molnar --- arch/x86/mm/fault.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 9a84a0d08727..ee85766e6329 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -671,13 +671,9 @@ show_fault_oops(struct pt_regs *regs, unsigned long error_code, printk(smep_warning, from_kuid(&init_user_ns, current_uid())); } - printk(KERN_ALERT "BUG: unable to handle kernel "); - if (address < PAGE_SIZE) - printk(KERN_CONT "NULL pointer dereference"); - else - printk(KERN_CONT "paging request"); - - printk(KERN_CONT " at %px\n", (void *) address); + pr_alert("BUG: unable to handle kernel %s at %px\n", + address < PAGE_SIZE ? "NULL pointer dereference" : "paging request", + (void *)address); dump_pagetable(address); }