diff options
author | John Ogness <[email protected]> | 2020-09-14 11:54:03 +0206 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2020-09-15 14:42:09 +0200 |
commit | e7c1fe21046a024a5a9ef46e3752521afc1ada7b (patch) | |
tree | b175c311c3fde2b4b5b33095e03c0c42ef8a4fac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ce003d67ad521d950687bce7e42e5361022c7d3d (diff) |
printk: ringbuffer: avoid memcpy() on state_var
@state_var is copied as part of the descriptor copying via
memcpy(). This is not allowed because @state_var is an atomic type,
which in some implementations may contain a spinlock.
Avoid using memcpy() with @state_var by explicitly copying the other
fields of the descriptor. @state_var is set using atomic set
operator before returning.
Fixes: b6cf8b3f3312 ("printk: add lockless ringbuffer")
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions