From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Guy Briggs Subject: Re: [PATCH] audit: less stack usage for /proc/*/loginuid Date: Wed, 2 Nov 2016 02:10:46 -0400 Message-ID: <20161102061046.GI32641@madcap2.tricolour.ca> References: <20161029160439.GE1246@avx2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20161029160439.GE1246@avx2> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Alexey Dobriyan Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On 2016-10-29 19:04, Alexey Dobriyan wrote: > %u requires 10 characters at most not 20. > > Signed-off-by: Alexey Dobriyan Ack, looks reasonable to me. This has been there from the original commit 1e2d1492e178 Serge Hallyn, Feb 2005. > --- > > fs/proc/base.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/fs/proc/base.c > +++ b/fs/proc/base.c > @@ -1243,7 +1243,7 @@ static const struct file_operations proc_oom_score_adj_operations = { > }; > > #ifdef CONFIG_AUDITSYSCALL > -#define TMPBUFLEN 21 > +#define TMPBUFLEN 11 > static ssize_t proc_loginuid_read(struct file * file, char __user * buf, > size_t count, loff_t *ppos) > { - RGB -- Richard Guy Briggs Kernel Security Engineering, Base Operating Systems, Red Hat Remote, Ottawa, Canada Voice: +1.647.777.2635, Internal: (81) 32635