summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorAleksandr Yashkin <a.yashkin@inango-systems.com>2019-12-23 18:38:16 +0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-09 10:19:00 +0100
commit903065d53f2df8c9253b64ed51aff4e87e5495e2 (patch)
treeb23f13746e3d03dbf7acd2ef78a8f49cdfe62459 /block
parent146a44da6e23ca0ddebb92011b78faf688436ad5 (diff)
downloadlinux-stable-903065d53f2df8c9253b64ed51aff4e87e5495e2.tar.gz
linux-stable-903065d53f2df8c9253b64ed51aff4e87e5495e2.tar.bz2
linux-stable-903065d53f2df8c9253b64ed51aff4e87e5495e2.zip
pstore/ram: Write new dumps to start of recycled zones
commit 9e5f1c19800b808a37fb9815a26d382132c26c3d upstream. The ram_core.c routines treat przs as circular buffers. When writing a new crash dump, the old buffer needs to be cleared so that the new dump doesn't end up in the wrong place (i.e. at the end). The solution to this problem is to reset the circular buffer state before writing a new Oops dump. Signed-off-by: Aleksandr Yashkin <a.yashkin@inango-systems.com> Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com> Signed-off-by: Ariel Gilman <a.gilman@inango-systems.com> Link: https://lore.kernel.org/r/20191223133816.28155-1-n.merinov@inango-systems.com Fixes: 896fc1f0c4c6 ("pstore/ram: Switch to persistent_ram routines") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions