diff options
author | Tetsuo Handa <[email protected]> | 2018-05-11 19:54:19 +0900 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2018-05-16 14:00:46 +0200 |
commit | 988a35f8da1dec5a8cd2788054d1e717be61bf25 (patch) | |
tree | e925f33580d5c761c0fe4bbe6eebb4a089eed20d /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 43a17111c2553925f65e7be9b9c3f9d90cf29a8b (diff) |
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: 42a0bb3f71383b45 ("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]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions