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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ftrace.c | ||
inode.c | ||
internal.h | ||
platform.c | ||
pmsg.c | ||
ram.c | ||
ram_core.c |