Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
printk: fix possible reuse of va_list variable
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(). Link: http://lkml.kernel.org/r/[email protected] Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Tetsuo Handa <[email protected]> Fixes: 42a0bb3 ("printk/nmi: generic solution for safe printk in NMI") Cc: 4.7+ <[email protected]> # v4.7+ Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
- Loading branch information