UPSTREAM: pstore/zone: Use GFP_ATOMIC to allocate zone buffer
There is a case found when triggering a panic_on_oom, pstore fails to dump kmsg. Because psz_kmsg_write_record can't get the new buffer. Handle this by using GFP_ATOMIC to allocate a buffer at lower watermark. Bug: 254441685 Signed-off-by:Qiujun Huang <hqjagain@gmail.com> Fixes: 335426c6 ("pstore/zone: Provide way to skip "broken" zone for MTD devices") Cc: WeiXiong Liao <gmpy.liaowx@gmail.com> Cc: stable@vger.kernel.org Signed-off-by:
Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/CAJRQjofRCF7wjrYmw3D7zd5QZnwHQq+F8U-mJDJ6NZ4bddYdLA@mail.gmail.com (cherry picked from commit 99b3b837) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I1cec8ce5cdd4b6b752d0ab8d9ad09c07b13fc7dd
Loading
Please sign in to comment