Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp200077pxa; Fri, 14 Aug 2020 01:21:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7RAwjwt++/lz2/Ppy9NpdrcSjivjLMrMh4ekxSpL5SRubNdwIGoe9uHq2CDRRdry3fOF4 X-Received: by 2002:a17:906:6a5b:: with SMTP id n27mr1284813ejs.221.1597393259872; Fri, 14 Aug 2020 01:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597393259; cv=none; d=google.com; s=arc-20160816; b=bdgAH45RuukQ+4zqoP3wVWw5WnHALcz9O5Pw5gXmkNUa1aOWgbHJuFX1MPwPR0sp67 tU/ql1es1MtkJCgoQVUAB5KVKw8p/5Q/iXCU4fa6Zi/GfcppEwQ/+Geu8Wx0WwMlqoIQ FVm/Ls6hhV9MA/4tuBty3uwPOdnSEiZyiz0tBaYvGNFrJOuo+X7DJ964I/WB4KRmrX4T h/jkBl3RGir1VO9e4+X2JGVzXhQG1wC4PF3FovFwP7AAM3AuxwmyGhmf0xdkpP0SntFM QcMrLwQFSnmff2V+Z8WGa7UVWYJbZYMMR1BQKqtwXEKZi3AjxiPPppGNBsRLp+IJv9DY rajg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=aw8cLn0cJ1vSrWaV3ggp3sxIOuFTPfWi+rVC27WKTwM=; b=oLCfCXzgtmiCpqVaSYiKa6r35TDzly9gEiIqT6A5fKKgEMd/VcgggQZ7rCTUdmOjxi 61FIibLWSzYlfcZh6v6EldO2dt7Sh9u7izieW0Px6LyY4BuJ87VTenaFysMwzssI0HNz 1QYZdt4m8+WCmSY65AV6OsdKhlV4RWzEU4dkwPKKjdUX8Or/e/KQSu8VyRlH5gpQIzJo BbJOzbnm0FwI+sDVWPZym6tcYhbgas4cHrWVu1K2tsZNbQn2dWq2fyawmsKOF3zbc68F n+9cHXgnlYJW49Dj8L5ZveKnAZ+knKDvzbrWXezLo62xSBg0SnmF9y4KtUCT5Y4V7JMz o6Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0cCCceBv; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa12si4652647ejb.276.2020.08.14.01.20.37; Fri, 14 Aug 2020 01:20:59 -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=@linutronix.de header.s=2020 header.b=0cCCceBv; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbgHNIQj (ORCPT + 99 others); Fri, 14 Aug 2020 04:16:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:35324 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbgHNIQi (ORCPT ); Fri, 14 Aug 2020 04:16:38 -0400 From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597392996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aw8cLn0cJ1vSrWaV3ggp3sxIOuFTPfWi+rVC27WKTwM=; b=0cCCceBvsEqTbdr7y1QJk9XX9nO0fZLIYh0M7uovWZt/bHEQPQFvWUQ6YjKAHrwupITRJs H4X47VQ8i3iZviR1ZsRhb2WtjjsTmdEJaa4OVOZPBeKpPxSrHCSkgFHVzusv7VWGpjx3P2 Fo3o/3/HbGzOGQCDqf3tOQ55u3q9myTXjfJGeiG3uFU/IuvAf+LWuP2tzuqwVgIkmnT8xW IrC+eqTj9tQSn/zKZ45oGsSaC0Sd89LY8EvMHF2c9OOK8rLruTikk7TKzWFXsbnnKqKCwy PO0Gyz8V/IYttw90UJasKGM151yHIxvxfvF9/i+3gi//Sl9bvxySZ9xe4YQWOQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597392996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aw8cLn0cJ1vSrWaV3ggp3sxIOuFTPfWi+rVC27WKTwM=; b=iIl3fT9DoAwtelVo9Y9+WBxuGUawFbUpEyGdLGzwzr2II+M8XCOLLNd9JuIu93y9yiuoJA MmA2WsqxTGKo/GDg== To: Sergey Senozhatsky Cc: Petr Mladek , Sergey Senozhatsky , Linus Torvalds , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Peter Zijlstra , Thomas Gleixner , kexec@lists.infradead.org, Linux Kernel Mailing List Subject: Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling In-Reply-To: <20200814033424.GA582@jagdpanzerIV.localdomain> References: <20200717234818.8622-1-john.ogness@linutronix.de> <87blkcanps.fsf@jogness.linutronix.de> <20200811160551.GC12903@alley> <20200812163908.GH12903@alley> <87v9hn2y1p.fsf@jogness.linutronix.de> <20200813051853.GA510@jagdpanzerIV.localdomain> <875z9nvvl2.fsf@jogness.linutronix.de> <20200813084136.GK12903@alley> <87v9hmrg84.fsf@jogness.linutronix.de> <20200814033424.GA582@jagdpanzerIV.localdomain> Date: Fri, 14 Aug 2020 10:22:35 +0206 Message-ID: <87k0y1k5gc.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-14, Sergey Senozhatsky wrote: > One thing that we need to handle here, I believe, is that the context > which crashes the kernel should flush its cont buffer, because the > information there is relevant to the crash: > > pr_cont_alloc_info(&c); > pr_cont(&c, "1"); > pr_cont(&c, "2"); > >> > oops > panic() > << > pr_cont_flush(&c); > > We better flush that context's pr_cont buffer during panic(). I am not convinced of the general usefulness of partial messages, but as long as we have an API that includes registration, usage, and deregistration of some sort of handle, then we leave the window open for such implementations. John Ogness