Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp501867imm; Fri, 28 Sep 2018 02:03:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Xu+F9WtW1kGE5Y8HbWl9vx7wTH6oBG6zy6q32VtpR6xYVjjEDS3fGL+HKB1w9/OFwtGjF X-Received: by 2002:a62:1c06:: with SMTP id c6-v6mr15852065pfc.41.1538125386660; Fri, 28 Sep 2018 02:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538125386; cv=none; d=google.com; s=arc-20160816; b=jJx7xmN16P0NjMfhOHx3r4NzT8JnnLq+c0AUy7uTtTmP3cSfX++XIVaOUyZsf3lRpc pCozfzy+SNHHsryN23ighgbW8pObminMZKaVMjFkbwFhb8XcQ2zWArJeVm4VFdeCrMkK z6CAPxHzipPGKpTJJjMdxrKi7y+dj+KH7+tcRHBsED/NRn+7J8XiIKzvPp8SGFFx2zw+ 3HQHbFdbjShnTDi8jBwKij4aqs5mjOn6hWqL0+kxy+jZzYB9JedtNFkp4w6FI93Y7JyF AMAmHyA2YFmQQAfGiUAJDTeVArwT4e0xL+qwGPRcDRNERQa3VsZHuaRvEIigzRzYu9eL uMAw== 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=O09vzjwHWw+WWJWREqPhlZsqMNEB5sDf6xCLrkuFad8=; b=A4+PWZ7HOrfjwpEeBmXWQdqBDHzW7PKpPxt9dgUuOQ8NJayki/CKRFGS3PszcSNgVt ZvT2zkIrNuR6TLux5ZN2+8/PeWEICQh+ciSVqvDKn4IZ1/Sa9+zXJrj5so7ECOlzFhoJ CPy980OvjGw1bqjux13T+zCLBlMrogLMNAz3P/yfBD3i5dT3viwbD0EnG31FP6ZW1Rc6 wQq71YdcBFpd9ptlYMoEC7h81WnF38VXdA9qS/bcdLYEEFJHYwSd2DtC5+c2NvnSE7Q6 NyH75VJisUD7wjG0umwBVbf5+IVQoL74hVrTD4Dk62hnDLqg0SVziSWeC9A8Y1iNbWNq HCmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lQ9akfxN; 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 y4-v6si4223955pgk.361.2018.09.28.02.02.51; Fri, 28 Sep 2018 02:03:06 -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=lQ9akfxN; 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 S1729333AbeI1PYz (ORCPT + 99 others); Fri, 28 Sep 2018 11:24:55 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35653 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729012AbeI1PYz (ORCPT ); Fri, 28 Sep 2018 11:24:55 -0400 Received: by mail-pf1-f196.google.com with SMTP id p12-v6so3894780pfh.2 for ; Fri, 28 Sep 2018 02:02:09 -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=O09vzjwHWw+WWJWREqPhlZsqMNEB5sDf6xCLrkuFad8=; b=lQ9akfxNyoDUh5Ncr8SZKySmSXO586Y1rynuq6PFaTEos1R+GWnG67NfLATVeY9XgG ikwwzAHmy7DkbkHyiK97uUxJu053tRydHRQv1GoojWHlge2K+1a0VVrGFaA/3ekyEv90 6I75GYt3gGsaK9t62QXVw+Uw/HHTZboCe1ybVu7TOOh4eoHIxyq/Z5z7leEcZ9GxmEkS qUrfvakBPCt5E9tsiGcSsGH/7tC8LWzWf7F5AeUy9IktzKvQGG17viIf+U5FAGa1f5Dr H0RUuKQX0r/+jLGpbe6EpzIstDc7DS6s03QTCNm7nwLyr8rGCVCYceja4yXrsJNuBQxv jDSQ== 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=O09vzjwHWw+WWJWREqPhlZsqMNEB5sDf6xCLrkuFad8=; b=aoXPhdKcDFbJn76g92iV7EOVZqWBrXIS9Bn4+8E2U5MBJkJxKarIN9bfvLeIs2a1N2 R7mSUWzMUegBgk2RqlDnft8+wK72aobouMTGLKBu2z6ge4GC1sXeWmL3wwFc6G/HqzR4 eRQ9BQRc6pISf+Zm5Zghb9kH3BkYkkCjlhi8TdeSvx/xLOPZHlNPOnwEdehIdThuLYH3 6SVBTTvFSpOoSIKGv4Wr9AqwedglBdlCAI+Rq21fXoNRe9cIqK+873nAG/2+PhYs29jz 1f8L/6CDucNKUuEWUY/LXUVq79K3LEtY9YCCrIIEO0hIJuCHaCT498afFKrLnps8a0TA nqZA== X-Gm-Message-State: ABuFfoifTacY3M3zjcJ7yTw7pRZARwGFwd58baaieW/NGetaOEta/m7a w1JXk6Pj7resXM7YucgakDQ= X-Received: by 2002:a17:902:8bc3:: with SMTP id r3-v6mr15102885plo.218.1538125329353; Fri, 28 Sep 2018 02:02:09 -0700 (PDT) Received: from localhost ([110.70.14.151]) by smtp.gmail.com with ESMTPSA id p1-v6sm6390936pfn.53.2018.09.28.02.02.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Sep 2018 02:02:08 -0700 (PDT) Date: Fri, 28 Sep 2018 18:02:04 +0900 From: Sergey Senozhatsky To: Tetsuo Handa Cc: Sergey Senozhatsky , Sergey Senozhatsky , Petr Mladek , Steven Rostedt , Alexander Potapenko , Dmitriy Vyukov , kbuild test robot , syzkaller , LKML , Linus Torvalds , Andrew Morton Subject: Re: [PATCH] printk: inject caller information into the body of message Message-ID: <20180928090204.GD1160@jagdpanzerIV> References: <20180913122625.6ieyexpcmlc5z2it@pathway.suse.cz> <20180913142802.GB517@tigerII.localdomain> <20180914065728.GA515@jagdpanzerIV> <49d22738-17ad-410a-be0a-d27d76ba9f37@i-love.sakura.ne.jp> <20180914115028.GB20572@tigerII.localdomain> <20180914122217.GA518@tigerII.localdomain> <7dadfa8c-1f69-ae0f-d747-dbbc9f97c2b6@i-love.sakura.ne.jp> <758bcf74-f9d6-d3c9-be10-34046166504b@i-love.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <758bcf74-f9d6-d3c9-be10-34046166504b@i-love.sakura.ne.jp> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (09/28/18 01:10), Tetsuo Handa wrote: > > Therefore, I think that "Either we need to require synchronization - umm... and > document it - or to provide some means of synchronization in pr_line()." is a > pointless worry. It is only existing printk() API which needs synchronization. I > think that line buffered printk() API does not need to talk about synchronization. > Just saying "don't share DEFINE_PR_LINE()/DEFINE_PR_LINE_BUF() variables" will be > sufficient. Agreed. My conclusion at the end was that - "pr_line is going to do as much as seq_buf does". So pr_line won't provide any additional synchronization mechanisms. -ss