Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp78133imm; Tue, 17 Jul 2018 14:20:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeDUd9Ru1/zHKXCqfNtpHYJTkDc362L7K/v4b/Qe5DkJOL/V6JgkgTbqvdEtPOIsbG8kiOZ X-Received: by 2002:a17:902:aa46:: with SMTP id c6-v6mr3116830plr.313.1531862456999; Tue, 17 Jul 2018 14:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531862456; cv=none; d=google.com; s=arc-20160816; b=sBzw6N5Zn3w2nUpdh6ElkgW0KYgSHP27b964KwRvc8fE1FmLvM/iIfW59SfR5r2X5f 4NR1c/zsh5Cyir6vBELIUY7TI8iDGpLZJdKFievxo7ab9ETk+sOPJn9RZ6jPOMsRUs22 oHZ9qpokrkCYyTyExsvmgTgRYZ0cHpyPi3LkeJeuPvGRcDtTNT8NVQIOr7tWFJ/PwX3T AWjJwrsZiyo3ehrTNDhPCmRDImQJ/T7TuZcLHck1RXqlVPHqt5sxdIBD5UlINE52+GHC GFFkzJN6ky8VZ2fEM9SqUQN9k+MBAAezOy/j+R2qK0dQavYr7BGmuWeIPRINfyK/sBEL J6JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Yw7IUw/pLsv09n6Ef4PN7B8xNgEUvYvq9Fd18F4ot8k=; b=pOuznWBvD02jn4mD+xCfg5oYRmI0rQsWOZiRJgAClgPR9b7msQi2kKUpTUSm/fza4h 6nlh9FR7IIEGuOZrKNytItgOWWpBZ/cw7f541JTjqC7b0TMPjBaJ+palqLLi3U6Aorwx hQYBzFUpRST4u543hvRqCr7FqYm2xwZojlfaoUFmEFO8hXeTc7AlLyqVUYDi8MevL75W m/oeVMInXVfJa5dk9455KV1wF9uZLSHvS+EbRX5WsSXKDOK6iDX+bo+GeAvJdqh3c1TB QQ2UexJdb+ZOH9dojCSnPeM5kuPjOYnnvvI7OdFhfKiIe4hsHFJGf9diRWdm/M/eNx9s LU3g== 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 f34-v6si1634000plf.495.2018.07.17.14.20.30; Tue, 17 Jul 2018 14:20:56 -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 S1730598AbeGQVyY (ORCPT + 99 others); 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-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:4321:4560:5007:7576:7903:9545:10004:10400:10848:10967:11026:11232:11658:11914:12043:12296:12438:12533:12555:12740:12760:12895:13069:13075:13161:13229:13311:13357:13439:14181:14659:14721:14777:21080:21433:21451:21627:30003:30022:30054:30083:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none 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.