Messages in this thread | | | Date | Fri, 11 May 2018 20:27:18 +0900 | From | Sergey Senozhatsky <> | Subject | Re: [PATCH] printk: fix possible reuse of va_list variable |
| |
On (05/11/18 20:02), Tetsuo Handa wrote: > I noticed that there is a possibility that printk_safe_log_store() causes > kernel oops because "args" parameter is passed to vsnprintf() again when > atomic_cmpxchg() detected that we raced. Fix this by using va_copy(). > > Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> > Fixes: 42a0bb3f71383b45 ("printk/nmi: generic solution for safe printk in NMI") > Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > Cc: Petr Mladek <pmladek@suse.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
-ss
| |