Re: [PATCH 05/10] proc: use %u for pid printing and slightly less stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 04, 2020 at 02:31:59AM +0800, Wen Yang wrote:
> From: Alexey Dobriyan <adobriyan@xxxxxxxxx>
> 
> [ 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 <adobriyan@xxxxxxxxx>
> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> # 4.9.x

A what? How does this belong to stable?



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux