Re: [PATCH] printk: fix integer overflow in setup_log_buf()

From: Sergey Senozhatsky
Date: Fri Oct 12 2018 - 05:27:31 EST


On (10/12/18 11:01), Petr Mladek wrote:
> > Make "free" unsigned integer and use appropriate printk() specifier.
> >
> > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
>
> I have pushed this fix into printk.git, for-4.20 branch.

Thanks.

> Please note that this 2nd hunk was already part of the commit
> e6fe3e5b7d16e8f14 ("printk: Give error on attempt to set log
> buffer length to over 2G"), see
> https://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git/commit/?h=for-4.20&id=e6fe3e5b7d16e8f146a4ae7fe481bc6e97acde1e

Oh, indeed. I guess I used linux-next which didn't have your commit.

-ss