Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp777340ybh; Tue, 21 Jul 2020 07:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRYXj2Znw0bd4K6ymWVOxysGxwSaJKOlTmSc49AtS91iuEx+ON6tRHKFJmGb9w9GElnhQ3 X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr27029365edb.232.1595342641227; Tue, 21 Jul 2020 07:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595342641; cv=none; d=google.com; s=arc-20160816; b=epCmunok0bdEOQSeTZ+f3kEnqNbMwnai5ZsO9zHMwgt8lQYmmDtXboty9cbLtYQwh3 S5t8w+0z14u92FUlj2Zol/C1Yit+fSk5WTV7anO/qdxPEIGemKBUQ8kbDOdZ9JDdleX+ yPUHFSotdMdD60b4B+Kfh7Bn3z/cLcy01000tWf0Alb68RW3pYWiQ+u6vyL7fU/WSVc7 UrkJU3SxuK0528Z7KnDglf8cNYpStUMtGBxhUw47CNGv191PTy13Eeh4b4UK2+w6ikwf 8GZHd36/ELKgyQCdvZkXM0mZeuZoX8GusBGVVm+iXJCi/2bpZVhbpXUwTYLMhXPaFSdS /6pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AqB2Pes9HY0mfXIHZs55IOMGH+yvSYMllsLCvMYuJRQ=; b=bOnDGfXeQZucjIGjMuaIcQ8+BLil/mSC3YgIMRVVq59+o2M4wv9tcjs/C/C54pnm02 81V3qD+zvsQRrIZQVVBgmrC4cyLlvf3Lg7dSkwFSnaYkTp3cYIZCoEbuAlNUKEkuPZ4J +39X1nJunKkrahW+n5D/pttekRZu3K8panDVaT/jMOupi5sxRVo2zBZ7Dz+qBVTz9rSM lu9itn3FbpK2MVsvYRLR6UubtbbyEw5bMiNvnVv1yHY3Jbto2fRDMiiS3gl8C0C5GVRA 408KLZS/55jSJj448dJ3Otl9Y/7ZURUnjRcTxxQzjdIMPlb9+h3Fq0ow3ksE6UGX/ffl lMhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LEwbGGpO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si13455543ejt.396.2020.07.21.07.43.38; Tue, 21 Jul 2020 07:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LEwbGGpO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729505AbgGUOmY (ORCPT + 99 others); Tue, 21 Jul 2020 10:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728683AbgGUOmY (ORCPT ); Tue, 21 Jul 2020 10:42:24 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 352BDC061794 for ; Tue, 21 Jul 2020 07:42:24 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id t15so1772953pjq.5 for ; Tue, 21 Jul 2020 07:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AqB2Pes9HY0mfXIHZs55IOMGH+yvSYMllsLCvMYuJRQ=; b=LEwbGGpOtTy5VKyQ0OqJ4oiaDaGivfOY6l4hZoQB0GKawziemHBCIKMNmYLINzSH5k eUV7/weitMFK26xpGRwuKZ/wVpaSAkt0CndViCBBH/gX+IWna4mKclauXj0xardu/SsC TUGmAo+CYWXRh938OHurnq696W8M5GXb/DrwcyOYZqmalrF8fJbPbE5EnLm/KZouvvXx SpJUE8q5HIq7rL82JxObimEp58jY2CuxkDTxYZy/5DOrpFq+Wsnjnz4oFBk+qo5qEROV ziy5GHDkbvr7Y75VXeqUOO35f6On6C5v+dpeEldL1IXuHKuDVgihgJMWAO6X01d7MECG 6CUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AqB2Pes9HY0mfXIHZs55IOMGH+yvSYMllsLCvMYuJRQ=; b=Tc0u3uOhrDCZwDHWgD+fspxCjF7SQB9a38WcXxT3107kIjVNaBqh79T+OxLVjh0OWy KjrusxqhvJvdT2yINDmcmqMr0phVG+fAdnjhOl2z2A/lJPSrh4AqT5TD2JAQQ+3nq9yq GGdg75z7f1crH5VfPGHR2mGcdTTeioEbRt8q4Al0UZpQQYCbL88IBzmZJJRO1PBdzAWz Kgpd+aVyC81wBuSfq4KLY5xtVrxn5cPxVHMevF4mF/5nZUsuyHBxOczqme4yl+fK/6h1 ipeJCtXHORcBvUXEVt33qt8J3aoONk7nbjs9cKz/gncACpx1YHylU93OXMfnXRF9qcn6 AMbg== X-Gm-Message-State: AOAM532teAW8n0bFxIgVucPwNfW5BNtkcCgrAotafaV20YIa/QkHNsrS r6f5weG4y7beW3bx5tpkezE= X-Received: by 2002:a17:90a:db8a:: with SMTP id h10mr5326502pjv.58.1595342543712; Tue, 21 Jul 2020 07:42:23 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id p11sm3504148pjb.3.2020.07.21.07.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 07:42:22 -0700 (PDT) Date: Tue, 21 Jul 2020 23:42:20 +0900 From: Sergey Senozhatsky To: Linus Torvalds Cc: Sergey Senozhatsky , John Ogness , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Peter Zijlstra , Thomas Gleixner , kexec@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [PATCH 2/4] printk: store instead of processing cont parts Message-ID: <20200721144220.GE44523@jagdpanzerIV.localdomain> References: <20200717234818.8622-1-john.ogness@linutronix.de> <20200717234818.8622-3-john.ogness@linutronix.de> <20200719143527.GA566@jagdpanzerIV.localdomain> <20200720015057.GA463@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/07/20 11:30), Linus Torvalds wrote: > > Do I get it right, what you are saying is - when we process a PR_CONT > > message the cont buffer should already contain previous non-LOG_NEWLINE > > and non-PR_CONT message, otherwise it's a bug? > > No. > > I'm saying that the code that does PR_CONT should have done *some* > printing before, otherwise it's at the very least questionable. > > IOW, you can't just randomly start printing with PR_CONT, without > having established _some_ context for it. OK, I see. I sort of suspect that we may actually have code that does just pr_cont() (e.g. what Joe pointed out). It doesn't seem like that "establish a context" was ever enforced, doing a bunch of pr_cont() simply works. [..] > That said, we have traditionally used not just "current process", but > also "last irq-level" as the context information, so I do think it > would be good to continue to do that. OK, so basically, extending printk_caller_id() so that for IRQ/NMI we will have more info than just "0x80000000 + raw_smp_processor_id()". -ss