Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2170862imm; Tue, 10 Jul 2018 14:41:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfOtS93qQcy3z/ggKSjf+duU7y6fKmD4EEEEPaUJxVnakBwPtu12+N1Zoyn+MLeN1xpURwg X-Received: by 2002:a17:902:4081:: with SMTP id c1-v6mr1936833pld.169.1531258886048; Tue, 10 Jul 2018 14:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531258886; cv=none; d=google.com; s=arc-20160816; b=kkAC2Vk9oPAtIysY6meQzapbuDa/9EVSiV18pDB3Xh8QULTLXNhHmrkatfAxsfkYr+ 05xfYZ7jOKQ3FqnH1JRb21jYgZWlJfrwTQEzd2teaqGxqCo4ZNhtTUqTZ5gq/amX0fYk rcrP93TwH0PEuSTUakcmd24nui1PNvP+cQvCBhlPrD5y9k9ycZttjBCyvE8fUKei10iu u3qGb88LytNSfVl25VkVNPo3obCZGb7heca9LHRY2XProVVUqj4pIabCydPyy+oQKW3E wc+VbQO4ikLWhrbFNchpbuBi2jqI3rKL90z2isloDRLhH60Gn5iN5un3/EaTeE6k2Hn4 QUug== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=2RGNPdPgyi5tH5Lc9e/lEtgpvmglD94M09+5TOzvPeA=; b=NuA86IrhxLoWm5eoNCzvArwy+Ho3pKXMfrgt3kdytmBiU50EhAj60VdfN9lMLUa88b Vie5L+6CcxiSz9QPRBf4rW1aJ2kVWVVk9H/mjTIDuYfftB1Nd9/b0bnsw2BVJmkJIl/W M1ANG0p2OJBoZYQpzzPlJyQxOH5u6aR5kVUBxMe6C2aWGvKEiJOnBbZJfXXlTZevi8Z7 FYByxai1UsbhF0+zy/CeFtJXEa2sA85DCn+jeHs+cu8iZm3ES3bjLOn1+6KlS6ftyJms Aad/dgFhtCvfz97UlbE1OjidQvwwQoet+S877Ohwsfbr+s589VYJVKZBUQSFtUknNQMo c/NA== 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 c4-v6si16512971pgb.34.2018.07.10.14.41.10; Tue, 10 Jul 2018 14:41:26 -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 S1732316AbeGJVlg (ORCPT + 99 others); Tue, 10 Jul 2018 17:41:36 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:24170 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732187AbeGJVlg (ORCPT ); Tue, 10 Jul 2018 17:41:36 -0400 Received: from fsav104.sakura.ne.jp (fsav104.sakura.ne.jp [27.133.134.231]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w6AL8Kim082080; Wed, 11 Jul 2018 06:08:20 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav104.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav104.sakura.ne.jp); Wed, 11 Jul 2018 06:08:19 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav104.sakura.ne.jp) Received: from [192.168.1.8] (softbank126074194044.bbtec.net [126.74.194.44]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w6AL8EmB082058 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jul 2018 06:08:19 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH] x86: Avoid pr_cont() in show_opcodes() To: David Laight , "'Josh Poimboeuf'" , Peter Zijlstra Cc: Ingo Molnar , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , Andy Lutomirski , Borislav Petkov , Linus Torvalds , Thomas Gleixner References: <1530943625-3288-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <20180707111209.GA27768@gmail.com> <20180709084953.GB2476@hirez.programming.kicks-ass.net> <20180709191034.pyadc3cy7ulwaf2o@treble> From: Tetsuo Handa Message-ID: <19297e6e-c9f7-cd19-d6ac-39ed45d5d269@i-love.sakura.ne.jp> Date: Wed, 11 Jul 2018 06:08:19 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/07/11 1:51, David Laight wrote: > From: Josh Poimboeuf >> Sent: 09 July 2018 20:12 >> On Mon, Jul 09, 2018 at 10:49:53AM +0200, Peter Zijlstra wrote: >>> On Sat, Jul 07, 2018 at 10:54:28PM +0900, Tetsuo Handa wrote: >>>>>> Since syzbot is confused by concurrent printk() messages [1], >>>>>> this patch changes show_opcodes() to use snprintf(). >>> >>> But how big of a problem is that really? We can't very well remove all >>> pr_cont stuff from the kernel. >> >> I'd say we should try to make oopses as legible as possible. > > To make oopses legible you need to lock the output between output lines. > Which would require a 'KERN_CONTINUED' marker on the previous print. There is an attempt to prefix context identifier to each line of output ( https://groups.google.com/d/msg/syzkaller/ttZehjXiHTU/JR67pXz3BAAJ ). Therefore, I expect oops messages can stop using pr_cont()/KERN_CONT.