From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FDC6ECDFB4 for ; Tue, 17 Jul 2018 21:19:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D329720693 for ; Tue, 17 Jul 2018 21:19:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D329720693 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730689AbeGQVyY (ORCPT ); Tue, 17 Jul 2018 17:54:24 -0400 Received: from smtprelay0017.hostedemail.com ([216.40.44.17]:37218 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729805AbeGQVyY (ORCPT ); Tue, 17 Jul 2018 17:54:24 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 0CAA3181D3419; Tue, 17 Jul 2018 21:19:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: air49_38c444aaeec47 X-Filterd-Recvd-Size: 2724 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Tue, 17 Jul 2018 21:19:49 +0000 (UTC) Message-ID: <8e7a3e658dbb928477639e0da67a5a204456b065.camel@perches.com> Subject: Re: [PATCH] x86: Avoid pr_cont() in show_opcodes() From: Joe Perches To: Tetsuo Handa , Rasmus Villemoes , Ingo Molnar Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Thomas Gleixner Date: Tue, 17 Jul 2018 14:19:48 -0700 In-Reply-To: <2c8fe03e-36f5-5126-283c-cabc358a7d52@i-love.sakura.ne.jp> References: <1530943625-3288-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <20180707111209.GA27768@gmail.com> <12409dc4-c10a-d77a-f88d-165aa92b489e@rasmusvillemoes.dk> <218baff7-9473-ac1e-2449-13de98fa6dc9@rasmusvillemoes.dk> <2c8fe03e-36f5-5126-283c-cabc358a7d52@i-love.sakura.ne.jp> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-18 at 05:54 +0900, Tetsuo Handa wrote: > Corrected Signed-off-by: addresses. > > From 96d9d4d135994a081e54d33d23f5007c53d9b5dd Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Tue, 17 Jul 2018 22:47:11 +0900 > Subject: [PATCH v4] x86: Avoid pr_cont() in show_opcodes() > > Since syzbot is confused by concurrent printk() messages [1], > this patch changes show_opcodes() to use %*ph format string. > > When we start adding prefix to each line of printk() output, > we will be able to handle concurrent printk() messages. If this were applied via git am, the commit would include all the content from "Corrected Signed-off-by:" Perhaps it would be better to send this as a new patch without the leading 7 lines after the email header > diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c [] > @@ -93,26 +93,15 @@ static void printk_stack_address(unsigned long address, int reliable, > */ > void show_opcodes(u8 *rip, const char *loglvl) > { > - unsigned int code_prologue = OPCODE_BUFSIZE * 2 / 3; > + const unsigned int prologue = OPCODE_BUFSIZE * 2 / 3; And this might be better as a #define to avoid a few more bytes of stack consumption.