Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp463511ybd; Wed, 26 Jun 2019 01:00:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBB0BXFZtAQD1ocVmjH21PabsZxHN1IrTSSPuQ1Ak+wgNDbkts0iYrkMBfanMitmWu5fjY X-Received: by 2002:a17:902:778d:: with SMTP id o13mr3941920pll.82.1561536010633; Wed, 26 Jun 2019 01:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561536010; cv=none; d=google.com; s=arc-20160816; b=t9cqnRvgtsqLmH2lBt3hjrIOUpIZ5BT3erUkQIwOS7dq2HP/w1RoLpfxuqksmlahe+ gq+rZzC+iJJMjbInNBHDVOmXeRfUX8qtRPp/N8sbB0i+HmcMdiV3ucKe8REYgPrLiFFF W60jeGg/QlB1e26o8Qsddm5Sg02LmwI73uqShNI9yNdGF0GA6uuqEgs5IgJGm1U9xsYn n4EgG7ECnlx9cgLUY+JeXcbabKZo4kuN4iuOIdGdQPolKRBdQJW8Vi2t42TSTjohEC+Y VyeBhDoFo5eb9z0VJhZuQKOg9/m+KHi687MFeJHhAzBBOzECZpt9Ugstc+zMjHdXGZ1t EK+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=m4ccwwpO5oRzKymdnY/55sXpZJv1GlqtCN/M5c5AvmY=; b=pxROz0NquHMBz9ZmRUAZiY0otPaAveei0fX1fIRs53TnCqK9fDfj+Q5NLI5EU1AP3f rdMdCj8B5i1YsPk3+Zr0SIZkNeqqh2YiupFaRvUVe4zdUxesH4+NXjyhxI5qq6HveqNs Vy4JM3nFuGsYyQonm15LSmyJu+Tct6tDxwl7MBOiIfHaw70kbPBlH9bAvpYNM+5Bqiyn jwS2id7QsvsuRf0l9gbnv4NjaWOnnxh/4tDrkwMeP4aZYHW1OFj6dXa3qJYCUt4NpRmH 4QBJMOShpBJKsFzZqxeUYzhltxZBE+zScbSPOgOOAkfvirlE6apO91evnYBGE0ZSm8wk v0xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ifNVdZNF; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si2708936pll.324.2019.06.26.00.59.54; Wed, 26 Jun 2019 01:00:10 -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=@gmail.com header.s=20161025 header.b=ifNVdZNF; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbfFZH7P (ORCPT + 99 others); Wed, 26 Jun 2019 03:59:15 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44396 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfFZH7P (ORCPT ); Wed, 26 Jun 2019 03:59:15 -0400 Received: by mail-pl1-f193.google.com with SMTP id t7so976423plr.11 for ; Wed, 26 Jun 2019 00:59:14 -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:user-agent; bh=m4ccwwpO5oRzKymdnY/55sXpZJv1GlqtCN/M5c5AvmY=; b=ifNVdZNFnY/2v4zh/dDKfkaBnMcIoW/YPwoxRXpDgBPjIpbAtY9RULlxulJ0n8osIW oikinqGd5ACHyhyJfm8gEuflttq5znCoqv/p9W9o3DxtDKiY/dP6y0QK32QnOFT1ly8W OcslnNnxHhZ5fimkjloj72FgwhbwVoVMRBnmB3Dfowpb+y5KghzISjOl/m7LRcPNmTHa Sp4glE1irTzNlJ7dDmLNmoSbPP8ehBwblXYBdax57+UceVwebOuP7G6weJfhcJLCPFdb BCGvhc1R6AjuxfCzusrGdYXVQMx46iZqUGeUdt7S88Ci2Dbu5+rvzOl4dNhoau1g+3PO GULQ== 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:user-agent; bh=m4ccwwpO5oRzKymdnY/55sXpZJv1GlqtCN/M5c5AvmY=; b=Fdf/XMeH4pQjMZXMboZh4zXwEX6yRmSUpQH+1NwBhgbLn+5k1evdKZrVfUwOtSTNNK MXb4LinGW+Fi5KH+Ds5S+bYETvC+Pjsz06FTv2BLckX4NKOS73+zZ8jMGx/ECyx27202 WTZqgWlsFlK278pTviyKWIBcW3VOxpRXsXFRMLd/9cDmt1v1AlTTdCQtAWj4fs57hgdF ki7wXZ6P2FIbJt2uAK91SVyA6NwRYhPoVjHS59JyOEyvypSdEHOwluPzzU7CmAzpMjcP b1rTud8XalCvaaw+32OrtVXFIi0I5k14Rl7ckaxwvWp093iLSkmRQ2jBEcgXsLh6hYXr JwUQ== X-Gm-Message-State: APjAAAVWDPsQpGKzHk5g1gCK7A7rACajQWypmuXvHB+7OgD3/alMKeEO gL5UiR2DmXw1tRdMV7Fc1lI= X-Received: by 2002:a17:902:5ac4:: with SMTP id g4mr3986808plm.80.1561535954603; Wed, 26 Jun 2019 00:59:14 -0700 (PDT) Received: from localhost ([175.223.45.10]) by smtp.gmail.com with ESMTPSA id k22sm19500304pfg.77.2019.06.26.00.59.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 00:59:13 -0700 (PDT) Date: Wed, 26 Jun 2019 16:59:10 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: John Ogness , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky Subject: Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation Message-ID: <20190626075910.GA2936@jagdpanzerIV> References: <87imt2bl0k.fsf@linutronix.de> <20190625064543.GA19050@jagdpanzerIV> <20190625071500.GB19050@jagdpanzerIV> <875zoujbq4.fsf@linutronix.de> <20190625090620.wufhvdxxiryumdra@pathway.suse.cz> <20190625100322.GD532@jagdpanzerIV> <87woh9hnxg.fsf@linutronix.de> <20190626020837.GA25178@jagdpanzerIV> <87mui43jgk.fsf@linutronix.de> <20190626074718.n7fmxugeul3lyyq6@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626074718.n7fmxugeul3lyyq6@pathway.suse.cz> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/26/19 09:47), Petr Mladek wrote: [..] > If the data might change under the hood then we have bigger > problems. For example, there might be a race when the trailing > "\0" has not been written yet. Current printk would not handle such cases. I'm only talking about transition from one consistent state to another, when sprintf(NULL, ptr) == A && sprintf(buf, ptr) != A Wether it's a corner case or not is entirely unclear to me but I probably would not call it "an impossible scenario". -ss