Re: [PATCH v5 1/4] printk: Fix panic caused by passing log_buf_len to command line

2018-10-08 Thread Petr Mladek
On Sun 2018-09-30 00:45:50, zhe...@windriver.com wrote: > From: He Zhe > > log_buf_len_setup does not check input argument before passing it to > simple_strtoull. The argument would be a NULL pointer if "log_buf_len", > without its value, is set in command line and thus causes the following > pan

Re: [PATCH v5 1/4] printk: Fix panic caused by passing log_buf_len to command line

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > > This patch adds a check to prevent the panic. > > Signed-off-by: He Zhe > Cc: sta...@vger.kernel.org > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Reviewed-by: Sergey Senozhatsky -ss

[PATCH v5 1/4] printk: Fix panic caused by passing log_buf_len to command line

2018-09-29 Thread zhe.he
From: He Zhe log_buf_len_setup does not check input argument before passing it to simple_strtoull. The argument would be a NULL pointer if "log_buf_len", without its value, is set in command line and thus causes the following panic. PANIC: early exception 0xe3 IP 10:aaeacd0d error 0 cr2