summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-12-04 03:39:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-17 22:38:34 +0300
commit6c22e4aea49acdb156a2126a67a1464584fb88e8 (patch)
tree41a54552fdc8d012ab6509ec7d13972a0d9ef9db /arch
parent0f1e0e050f0b91e9892dd516b4a240a5ccfc7a55 (diff)
downloadlinux-6c22e4aea49acdb156a2126a67a1464584fb88e8.tar.xz
pstore/ram: Avoid NULL deref in ftrace merging failure path
[ Upstream commit 8665569e97dd52920713b95675409648986b5b0d ] Given corruption in the ftrace records, it might be possible to allocate tmp_prz without assigning prz to it, but still marking it as needing to be freed, which would cause at least a NULL dereference. smatch warnings: fs/pstore/ram.c:340 ramoops_pstore_read() error: we previously assumed 'prz' could be null (see line 255) https://lists.01.org/pipermail/kbuild-all/2018-December/055528.html Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Fixes: 2fbea82bbb89 ("pstore: Merge per-CPU ftrace records into one") Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions