diff options
author | John Ogness <[email protected]> | 2021-03-03 11:15:14 +0100 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2021-03-08 11:42:37 +0100 |
commit | fdd2c1f4e2c2e2fee1d95d18b4b06bc0d15c368a (patch) | |
tree | 675cb1c8dbc8fb10b73f5d7e3eb3218c515e3f2d /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | b2bec7d8a42a3885d525e821d9354b6b08fd6adf (diff) |
um: synchronize kmsg_dumper
The kmsg_dumper can be called from any context and CPU, possibly
from multiple CPUs simultaneously. Since a static buffer is used
to retrieve the kernel logs, this buffer must be protected against
simultaneous dumping. Skip dumping if another context is already
dumping.
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 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions