Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp771658pxu; Thu, 3 Dec 2020 12:12:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEWff+NVtkphdtbKZICj5Vw2SRe3VgPAwMZ0p02xAQjwQTuJHaN3irRc1TzcHe4WUKvgYm X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr2254974ejb.346.1607026327190; Thu, 03 Dec 2020 12:12:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607026327; cv=none; d=google.com; s=arc-20160816; b=NwalxClbEdMOpkCY1Wi1E9PMjRUbl+TyaTy+hHLnocLjzVDXRtuUWXbh91OjaWX2wf ttLpE1PUXnxwKEnrsUiYpXVsErJcrWXOOUmmFAYdTIBqKlwmzT8ZttHO/Rzx2dDRRgEs 9+Invm+h23woSegGTuFhKZqQ6jpF/Esuxf+m044kJ0P5kjjbsmNxHy87ELQLU/WB3AvN gXz/l3BecuUKOMyaeD+2zMY/SoX0htS+rhUafIPfdL7PhhecYK8jciguYrRatz4jOW1z 8KvBAl3vWub541++OnX82L17Fi7ulFw4GvTdY4MHE+DBmB+xxO3ZPi0XqcyUW3lDzoFe usrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZM2r5b4lXD214hqcvABnHLyj4afHtDGMeqHleqjKQEY=; b=mHWF7lI8sxliAnJbtoNactdMFyP6BAtulckNncrvGGlNqQDBM3i1oM0o01djVuvc0l pRKwhxBAlNoGDIRwryf0D5V7RtxN+j5dGcFoGm6mrHo8e2nrAplyp6e5E1ntaq7qhvvU 0wyEKeRpKJ4PGP/xA6aVsAghuk8umqfWHQ5RJezzXX9kB1RFqxFQwyhnaI+pcyvWclLO 87Y0CIhs83ntyud1O7xtjREXhiVxpukqpAGOpdybDFitHNVjZJr5Pgq9bI6xaJ8aUFcb bUGnz7geGpf2X+o9U+siQISm+mylnE9SNyDk/mqcMqUha5GC9eQM+Bq4hQNDLu5FszqM Uq0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XF+VTW60; 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 y15si9008ejp.228.2020.12.03.12.11.43; Thu, 03 Dec 2020 12:12:07 -0800 (PST) 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=XF+VTW60; 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 S1729532AbgLCUIq (ORCPT + 99 others); Thu, 3 Dec 2020 15:08:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgLCUIq (ORCPT ); Thu, 3 Dec 2020 15:08:46 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23ABC061A4E; Thu, 3 Dec 2020 12:08:05 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id x22so3787654wmc.5; Thu, 03 Dec 2020 12:08:05 -0800 (PST) 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=ZM2r5b4lXD214hqcvABnHLyj4afHtDGMeqHleqjKQEY=; b=XF+VTW60xoaxj1ynZIO6ayG2xJUZSyqJ9G+m2MIWTgMwE37M/OElI+7YxX7z4gwnPC LRs7h3/Mcf31buwR9enp6hfoQJJcMOS8zKLvodFXe16n7HG2meE3PuxVFAsTJpaEkm07 GhyevuC455rj+FpOcFiQLavfvgaFOHtK3iHpuZE2CV3g/53wsowhYXdz57Ptvcd/CYXb a8ht0TyMtRKzxGAj2J+Du8w5MjBjzIPapmAzYXakYgUSPmn1n3uxPFJEcZWQ9f7CIHmw leXnROQp+abYAgEUvZItw/0nUpbi5j7ni7BsSUA+AOpYz+TmihSuFKHZA2jqqXczpMTJ fq5g== 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=ZM2r5b4lXD214hqcvABnHLyj4afHtDGMeqHleqjKQEY=; b=oN8mSnruPACxTZvKeYOZieELYcDmUx8pUtanxK0d2gKdefu7StXGb/Kw5DEmMeMlzG 3oXS33Tk/kCqh8uqsd2OlBev4yokcvQujPmtVeJa2/dkBPywZpD0Wflxx0TKLBslg+sf /s7KmYwiXH/axNdeGuvQtqGK+47maHyXuIk6N0G8xMGt8QG57O8wCQJ7hP1gAeTfW1m+ 97NeaWTlLpWHR+o+2bBDWUJhbebTx88KZ8hovq6u6UjpGVMjf37BeEY2oor5SmZ8++4b IdygX535UbeDDqsX0LKcRl8GiZa9ua6tzsmGWEjMrXqKP3eUnBzoXB3ivEcab6xE5Ide 91VQ== X-Gm-Message-State: AOAM531g5Li2+dVaGsr2LzDt0OGjjvv3aekV//ZVZDgvelgF071FhQyp UA7fLpI2AOU1al1jOykJiW54AsTzcA== X-Received: by 2002:a1c:1fc2:: with SMTP id f185mr538783wmf.134.1607026084652; Thu, 03 Dec 2020 12:08:04 -0800 (PST) Received: from localhost.localdomain ([46.53.251.73]) by smtp.gmail.com with ESMTPSA id o203sm528538wmb.0.2020.12.03.12.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 12:08:03 -0800 (PST) Date: Thu, 3 Dec 2020 23:08:01 +0300 From: Alexey Dobriyan To: Wen Yang Cc: Greg Kroah-Hartman , Sasha Levin , Xunlei Pang , linux-kernel@vger.kernel.org, Alexander Viro , Andrew Morton , Linus Torvalds , stable@vger.kernel.org Subject: Re: [PATCH 05/10] proc: use %u for pid printing and slightly less stack Message-ID: <20201203200801.GA3323724@localhost.localdomain> References: <20201203183204.63759-1-wenyang@linux.alibaba.com> <20201203183204.63759-6-wenyang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201203183204.63759-6-wenyang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 02:31:59AM +0800, Wen Yang wrote: > From: Alexey Dobriyan > > [ Upstream commit e3912ac37e07a13c70675cd75020694de4841c74 ] > > PROC_NUMBUF is 13 which is enough for "negative int + \n + \0". > > However PIDs and TGIDs are never negative and newline is not a concern, > so use just 10 per integer. > > Link: http://lkml.kernel.org/r/20171120203005.GA27743@avx2 > Signed-off-by: Alexey Dobriyan > Cc: Alexander Viro > Signed-off-by: Andrew Morton > Signed-off-by: Linus Torvalds > Cc: # 4.9.x A what? How does this belong to stable?