From: Alexey Dobriyan Date: Sat, 29 Oct 2016 16:04:39 +0000 (+0300) Subject: audit: less stack usage for /proc/*/loginuid X-Git-Tag: v4.10-rc1~115^2~15 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b4eb4f7f1a979552e0e9f54d0cef4abd0140beef;p=linux.git audit: less stack usage for /proc/*/loginuid %u requires 10 characters at most not 20. Signed-off-by: Alexey Dobriyan Acked-by: Richard Guy Briggs Signed-off-by: Paul Moore --- diff --git a/fs/proc/base.c b/fs/proc/base.c index ac0df4dde823..9cdb3e40899a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1228,7 +1228,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) {