Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2270059imu; Fri, 23 Nov 2018 06:55:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6NLnFgEjuMnsjWXcQhTDA+VpGOBbW+R30FUQkeNJEJbUQfRJMt8m4jnZWzStOKuPhCdx3 X-Received: by 2002:a17:902:6909:: with SMTP id j9mr15549287plk.196.1542984942384; Fri, 23 Nov 2018 06:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542984942; cv=none; d=google.com; s=arc-20160816; b=R+GnQuk8JLiOorFXXhlkJJDtAuInh8cwr6pprS0dUTgaLwmQuWJUqXPpQjeULDq4Kt tsgtQp7QI4bs6WjGZqaKyc4oc7j2RR0cR9RQhENYjtPOlvJhC221+TtOXOwLaQidzXke V6ri1TSiEkb0GsXb+d69aH5eLyJ/hHhZR66MaMX+59KwShlSOMHuiXeZS3yvI0bBg7Rk qDRqJvXX5BRztmwAAzDRVichKb5xQ7yNuN+lBHHIjDPIW/FGPfksmaOG0WFRhzcScqfa tg2gGZP58uNf9eBdu9PmU4VmzKo7PZ6sev7KznsChBc4e5a6ZOUhtYPcxf9HC1Loaa3+ PuPw== 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; bh=X5p4AIJlGmJu4w5il6I10r9OdsR8xwXaR1Bn3VawYJ4=; b=P6ZwhiS45egbsLq48JwooWUJvJrjKkD5nqee4lTiD6X8gXt6SnCXmDnyk6+m3QXDMQ oLS8vbPhtQutaPWfJ2Pc/E4sPyxHecnSNSehpq/sJUig4htKA9KCsw+Y5Ht3aEYPAdD1 gcFHFAE5U6y6V652GgGwq1B9xPhU+t+ib0ogMS4zgkrRKNAmAm6mOBOKdVBv6ZbtcZUM LcJ/seGI2h6OX345jf+4BNUapcuUqSF/gU5kCeDnyl0iMmAHOUaJTBxgqUGN0bxIbf/z s4MsDjdp3W8ViG7QM3Vo4L9rOJaGTuTEL7sjUYsCFBiOBXaqABOjYC5E/uyJCzy8L0IY Uwtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S5pfdmFW; 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 187si33708680pfv.238.2018.11.23.06.55.15; Fri, 23 Nov 2018 06:55:42 -0800 (PST) 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=S5pfdmFW; 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 S2436578AbeKVWTo (ORCPT + 99 others); Thu, 22 Nov 2018 17:19:44 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:51041 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436567AbeKVWTn (ORCPT ); Thu, 22 Nov 2018 17:19:43 -0500 Received: by mail-it1-f194.google.com with SMTP id a185so13706167itc.0; Thu, 22 Nov 2018 03:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=X5p4AIJlGmJu4w5il6I10r9OdsR8xwXaR1Bn3VawYJ4=; b=S5pfdmFWxMwn6synMnhQ3ksA1TuftWs/unSspAsnbib6ikkYJyJTNvUMFumwnFRgtE Mui6VQl0J9h6orN25kBAqU9o8NMn8wd29cksx1jqiLxzz0uicQTsnceE7quabyHNXAuC CXvXK7QVwQ8yQ2mQMytodtmUbQDEFzshn2f+d64y09ryh3Uaf/JjluON/qHmjdZ4IJXZ GoR0YOeatTKTjdaiuNGLlZB+ks+4XULg4ddk21XeeA4u0aRn6FfkCCdbyOkABKyo+bmS ddz8EiZ8TYLxuEmJp7QkyWlOeyiA4ubNOyUeUhbMVqv1Gh+9JcIcflyHdfbr31Tc0nyc lzPA== 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=X5p4AIJlGmJu4w5il6I10r9OdsR8xwXaR1Bn3VawYJ4=; b=qt2001V48Zp1UaIm4ULen+XX47k1tR0wCaFIrHbqNSEBCNObhGzsB5Z75+Vad1g0bz M5RaQ1kSFPyCN4uN/jNkzmmIwb8CsBiUV8B6fXNttJsoiA/Kdn1Pa9N474wBh2bWf6aJ AzpeGs2BbAokYccen0QFFEzWNAy9xBAbPXha+BEVe1tgpnrXxLYTQR72anSb1QFdSt9b 2ALFaqkMHk43Fxkz9TJWva4sJIRoBI4HbjkN+A8Ccre61PbUOzYvm7BHaqU3YD4bQJ0N vY6/c19+0UJ5owBGRe5357W7BzEc5GAUvQTOyGe9vNhrQR9GMI7YGOO/Tn62imb6NhEu mjVw== X-Gm-Message-State: AGRZ1gJ1nYbBOpsiWzhW1JnyvD7upJTMjQypUjyrstrXQ+pcG836m1Xg APXDbEbn/42TkBqPwoeIpzAoxbR/9zYhAS0czA== X-Received: by 2002:a02:1b1d:: with SMTP id l29mr9203162jad.98.1542886842536; Thu, 22 Nov 2018 03:40:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ac0:b188:0:0:0:0:0 with HTTP; Thu, 22 Nov 2018 03:40:41 -0800 (PST) In-Reply-To: <20181121192844.1cd1c2fa4801a324d059176c@linux-foundation.org> References: <1542626272-29129-1-git-send-email-laoar.shao@gmail.com> <20181121192844.1cd1c2fa4801a324d059176c@linux-foundation.org> From: Alexey Dobriyan Date: Thu, 22 Nov 2018 13:40:41 +0200 Message-ID: Subject: Re: [PATCH] procfs: fix the output format in /proc/PID/wchan To: Andrew Morton Cc: Yafang Shao , viro@zeniv.linux.org.uk, keescook@chromium.org, orcunov@openvz.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org 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 Wed, Nov 21, 2018 at 07:28:44PM -0800, Andrew Morton wrote: > On Mon, 19 Nov 2018 19:17:52 +0800 Yafang Shao wrote: > > > Just add the missing newline. > > > > ... > > > > --- a/fs/proc/base.c > > +++ b/fs/proc/base.c > > @@ -370,11 +370,12 @@ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, > > wchan = get_wchan(task); > > if (wchan && !lookup_symbol_name(wchan, symname)) { > > seq_puts(m, symname); > > + seq_putc(m, '\n'); > > return 0; > > } > > > > print0: > > - seq_putc(m, '0'); > > + seq_puts(m, "0\n"); > > return 0; > > } > > #endif /* CONFIG_KALLSYMS */ > > What is presently wrong with the wchan output? The changelog > should explain such things, please. It is just newline to make "cat /proc/*/wchan" output look cool. But newline can break something.