Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3670895imm; Mon, 25 Jun 2018 02:37:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK8QQGxsEy7qNb/berZD+Xm+WJTG5vzwMyLd4iuozvbURN1f3vQFBGe0iU5g+548642cPXe X-Received: by 2002:a62:642:: with SMTP id 63-v6mr12363824pfg.222.1529919457182; Mon, 25 Jun 2018 02:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529919457; cv=none; d=google.com; s=arc-20160816; b=YFe5Kj149YjioX5iwhnDBFHyh6ROo4X97Wu5d7eEYh6C1gbLgAG5KsbFtiFAAg4Cno s59cTgFlV7BBHD8yHvuhJPZfU2e+1fBQ32QusrxwSaWwibFbpN7z+3Yvai2BOZiZ6qsX 0lpVzjlPLfocZPJmFfTxjjM9PIH/Q7uh79k+6AxW0X9cBBMvwjuCbQIAfN0TchA3Z1aC WnpjF6l43HAkrKGAUJfKXzqF15RreUUVnjiWUjkN/cCCgx85a8ZSqTNaIt/f6nbAPDR0 qYChDoxffysppufMDj9MSmnTclkDvOZSFAUX3yj8wdqcXchwa3b4+KZX0pyfoLhv/Xkp z1hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=n6pIFX+OJhUEAUPB2vuFxGL0MHNyhePs+lQpf/znwNI=; b=Cqoc8TBVQHwgET0OsWen8TwRVMlWDaB3dnt5E8prlYj/PkkYp0mXTNN+vNtld3d8JK 8/9iPbm6YhyS8cf4S0vlh9EoKMSv2+nK+vJOXEZmVO66XQs8fDuXTSSPADYBWVzxeG5I XhNgnX6EJTBRSTRHKWt0j25Ncqu0h1UuZTGzkD+VemXNWjQ/h6HfLFab5iwG6NzVA8q0 QSnb3g06+faXx9grRCo5pQ5aqgtdfooI76/X69dzQ1vUaqkiL7N0ftbhgPN42LWIYhnX t9j6//bHLicTgJ2vkQPUUcAiTqJ2mlonAuUvM5mhArSFk6NdakZvrfqSratjjDlYlrAw lRag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=nslDUAlp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x130-v6si3793260pgx.207.2018.06.25.02.37.22; Mon, 25 Jun 2018 02:37:37 -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=@google.com header.s=20161025 header.b=nslDUAlp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbeFYJgl (ORCPT + 99 others); Mon, 25 Jun 2018 05:36:41 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:43586 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754133AbeFYJgj (ORCPT ); Mon, 25 Jun 2018 05:36:39 -0400 Received: by mail-pf0-f196.google.com with SMTP id y8-v6so6184956pfm.10 for ; Mon, 25 Jun 2018 02:36:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=n6pIFX+OJhUEAUPB2vuFxGL0MHNyhePs+lQpf/znwNI=; b=nslDUAlplNVbRekvatx3QFrI1toKo+HwHIaeMTSTEE12Rx7y05ZHHF0C1q+wqD19NC GR/5LRunm1bJWt6bbWt6bDQmV5D3o5szlI685+V4SfaSbw1JZ03OJwjSgF1tobSVStbJ iB+m1u6250n0kxrddtCTaqrh8s12pN/dJtsJvqO+gy/M7xFwNWrn9xPEDDVvQKqwCujJ hKRC0M4Xh9kHWsA0QShxhjhEJMugQYweJ13vlnpakQNiQ/H0MlBxXtMAn9fZFOpuf4bh An0K+j9Ao34kMev7JSFeCDqXHmGKO3g1GcAjtSnCwZjez07CgiUjtrCJB99ZM0ITH3fw COHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=n6pIFX+OJhUEAUPB2vuFxGL0MHNyhePs+lQpf/znwNI=; b=Ip8NPZxmEzGbJquuyvUyfFA7ItXU6aqtWjIWzX6XVwJykrIDidAcskTe9gMOUot0K5 GIY2Sy/HWJbHBkN3CiCWKd5bI0kWvzfPhPtb4sv/35/eJu8qghEb4b3ZQUqTxywjY91r OmnV5IKGeHhCsjJdjeLFfyehBdndMRI41fb5ie8TL4rf1W3QNfdrUiko2/arlLDKW+AD s64fxu9G6Mpj9r4vYcvop+1v/FX566CRbv5TQTGn3rIkqmWbWvBiAhvqjxbPiTaqS1/B lg+T8bJlZQXnhStP0Rrcaciq+JjxUbJda8bFrWxtvvgn5F/3vhJ9FVHKGkRbSteWGTGc SPvA== X-Gm-Message-State: APt69E0AhlC396wIYb6/kMAjYXg5dU+hR3YbZbEHMbB4Lm7LsC7m9uDW x1H4mmqWeZ0cRnlSZFiCOHj1sK/9p5+vx/d0rDUAAw== X-Received: by 2002:a65:4bcd:: with SMTP id p13-v6mr10114809pgr.114.1529919398219; Mon, 25 Jun 2018 02:36:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:de2:0:0:0:0 with HTTP; Mon, 25 Jun 2018 02:36:17 -0700 (PDT) In-Reply-To: <20180625014122.GB557@jagdpanzerIV> References: <20180620083126.GA477@jagdpanzerIV> <20180620090413.GA444@jagdpanzerIV> <20180620091541.GB444@jagdpanzerIV> <20180620110759.GD444@jagdpanzerIV> <20180620130628.GA1000@tigerII.localdomain> <197be25e-c841-bf3c-7081-61f0a9653c8c@i-love.sakura.ne.jp> <20180625014122.GB557@jagdpanzerIV> From: Dmitry Vyukov Date: Mon, 25 Jun 2018 11:36:17 +0200 Message-ID: Subject: Re: [PATCH] printk: inject caller information into the body of message To: Sergey Senozhatsky Cc: Tetsuo Handa , Sergey Senozhatsky , Fengguang Wu , Petr Mladek , syzkaller , Steven Rostedt , LKML , Linus Torvalds , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 3:41 AM, Sergey Senozhatsky wrote: > On (06/22/18 22:06), Tetsuo Handa wrote: >> > >> > Awesome. If you and Fengguang can combine forces and lead the >> > whole thing towards "we couldn't care of pr_cont() less", it >> > would be really huuuuuge. Go for it! >> >> Can't we have seq_printf()-like one which flushes automatically upon seeing '\n' >> or buffer full? Printing memory information is using a lot of pr_cont(), even in >> function names (e.g. http://lkml.kernel.org/r/20180622083949.GR10465@dhcp22.suse.cz ). >> Since OOM killer code is serialized by oom_lock, we can use static buffer for >> OOM killer messages. > > I'm not the right guy to answer this question. Sorry. We need to Cc MM > people on this. > > Does OOM's pr_cont() usage cause too much disturbance to syzkaller? I thought > that OOM was slightly out of sight. Hard to tell. Nothing specific comes to mind. We do see lines like these: BUG: unable to handle kernel [ 110.NUM] device gre0 entered promiscuous mode BUG:--------[ cut here ]------------ and frequently it's also required to look deep inside of crash message to understand what they really mean. Hard to tell how random pr_cont's contribute to the problem. We now throw away everything that looks any corrupted right away. I guess the main requirement is that the crash report itself does not use pr_cont and provided we have task/cpu context we can separate the crash report lines from everything else (assuming that random pr_cont's on other CPUs won't glue to the report lines).