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.14-rc1~1476^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4eb4f7f1a979552e0e9f54d0cef4abd0140beef;p=platform%2Fkernel%2Flinux-rpi3.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 ac0df4d..9cdb3e4 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) {