Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3598251imm; Tue, 17 Jul 2018 07:25:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeKyjDFl9tk8fNkUsRqNDqgwG+QcOjlG1gQWHLMG+VSEZZowwH17Vrw2wmOXbBtW+k2Fa1O X-Received: by 2002:a17:902:6ac3:: with SMTP id i3-v6mr1879032plt.252.1531837549425; Tue, 17 Jul 2018 07:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531837549; cv=none; d=google.com; s=arc-20160816; b=lUdfHV4xpJU3gN9RLDeH51eMbVxS+SvfJ9+Rb88XiNZVtD2qxiVQ6NrI/pWkI0eE3c tZtib1PKOHVjrzfCxyRPKgfWkFwB9bQ1ZUzrWoN+efUKdQXkEMZPmmyGUteFmx6keDgB FTQutjuV4sBPlHG7KRChwVFXURxU64Kj9cwq6TopDlRDxLlcZzWQj4+1RW7pXHKb+73V gQ0rHBuPfUL/mWeMP9WpSjlP+2MyWQlnXxun2Ip29cVWYEqtsD+X4G7iXRBy9+S+R3po M5h3UKpWOhRfz0SJRF1zF7R1Dv9ozRjCvcv5pn5NxXnXmM2tvmrDX+e51GIBAPrd7DKh hA5A== 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:dkim-signature :arc-authentication-results; bh=VzJWilzjD9QyH8EQZA9XW5s+BaknxtsbeUT09Yr+xi8=; b=MEB6RpDzbtDD25h2zIkcA+kcFghfRXhXdeDY2eUitE0Aaj2oLyJGQ24sGOrPVVaUrp xr11wauFvVhOCOFzxSOq/V1QW/JXihuQU5vKiXcPT6uy1IKz/XuKXgUjbVebtIX1HYpr wPAcYQIrUa5hFc6tZqz/HytAJ42A266VJfjg5ZHiplAazZP/xEJhO/4qtq5p7SSpKtpe VxVukGAbWWi7ygQq0X0ZzeEJ/yqnXIr8hvdRI63Ltf8X5vc2RZwO7hFI5meOBAep2y0P 7vJHu+eRrM5jSDusdWno8HCxbLxcl9lX+c5pgFiIdr6oisL0WiyyqWNHV1FoYyEZJ1IT FU9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=XCRv5UUZ; 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 d5-v6si1029517pla.337.2018.07.17.07.25.34; Tue, 17 Jul 2018 07:25:49 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=XCRv5UUZ; 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 S1731871AbeGQO52 (ORCPT + 99 others); Tue, 17 Jul 2018 10:57:28 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:43036 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731608AbeGQO52 (ORCPT ); Tue, 17 Jul 2018 10:57:28 -0400 Received: by mail-lf0-f66.google.com with SMTP id m12-v6so978253lfc.10 for ; Tue, 17 Jul 2018 07:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VzJWilzjD9QyH8EQZA9XW5s+BaknxtsbeUT09Yr+xi8=; b=XCRv5UUZ+z+R2GB/M3IJEJVeroxNE0AogE1lVESBchrJXOoJElC4qHqzeWS2zxnf1o 0HD4BA4oNRB+yWDfMxJwbishUYqemW4ZUAvq0Y3a6NhCze6mC8O1lCbBOFV/oOw3mrjR SvL9CA5BUfm+XEOEo67V18MunwYvFCFnmy0to= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VzJWilzjD9QyH8EQZA9XW5s+BaknxtsbeUT09Yr+xi8=; b=RjWqqJVEK2wd7bOf1B67EvQQL+qafRv+0Zopdx2FzObXWaWjuyJOLrrra1pZWzXy3P PeNNsJGRxIC4+t/6fG1aXkYCxu5Wb86sCqsSFOvaMxU1IpuFxbTCqGEuShTY+Te6ykb/ h0+BdvZJeRfMzFD5Tqhs6zj6rkhHWt9vG+apLeGwYLeMdXEqQZra055c4mqk10sPJo5c K0/gZ7bNevnvJgyVljq/geDFLh20aJuNCENXvUkbFbki4b/3umzSaBbushWkPiXybj9N AdjUcZR+6yYAMUgx87nAv4qRqimW3atqfw+agTMDhlA64Vox10V1RguJB5ysnJnsoRzi H+8g== X-Gm-Message-State: AOUpUlF/GAr971Ci/sSyctxeJnN/bbyUIrSEXuuIIsTpf7xbTKDtiJxP UXmFzasbzJqeilu0kUmtAMdgjA== X-Received: by 2002:a19:9806:: with SMTP id a6-v6mr1502219lfe.128.1531837472362; Tue, 17 Jul 2018 07:24:32 -0700 (PDT) Received: from [172.16.11.32] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id k10-v6sm200154ljh.5.2018.07.17.07.24.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 07:24:31 -0700 (PDT) Subject: Re: [PATCH] x86: Avoid pr_cont() in show_opcodes() To: Tetsuo Handa , Ingo Molnar Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Tetsuo Handa , Andy Lutomirski , Borislav Petkov , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Thomas Gleixner 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> From: Rasmus Villemoes Message-ID: <218baff7-9473-ac1e-2449-13de98fa6dc9@rasmusvillemoes.dk> Date: Tue, 17 Jul 2018 16:24:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.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-17 15:53, Tetsuo Handa wrote: > On 2018/07/17 18:01, Rasmus Villemoes wrote: >> Why not this instead? Less stack use, less code, no intermediary >> snprintfs, no pr_cont... > > Excellent! I didn't notice %ph extension. > >> Not compile-tested, probably whitespace-damaged, but you get the idea. > > Yes, it works well. > > > > From 96d9d4d135994a081e54d33d23f5007c53d9b5dd Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Tue, 17 Jul 2018 22:47:11 +0900 > Subject: [PATCH v3] 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. > > [1] https://syzkaller.appspot.com/text?tag=CrashReport&x=139d342c400000 > > Signed-off-by: Tetsuo Handa > Signed-off-by: Rasmus Villemoes I'm not sure that SoB-chain is correct. Anyway, however which way, and if at all, you want to credit me, please use the email address linux@rasmusvillemoes.dk . I probably botched From header in the previous mail, not used to using Thunderbird... Rasmus