diff options
| author | Kees Cook <[email protected]> | 2018-12-04 00:39:01 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2018-12-04 01:11:02 +0000 |
| commit | 8665569e97dd52920713b95675409648986b5b0d (patch) | |
| tree | bdada3a5c2f1cd06ab97f37dd9736217d7167bc8 /scripts/gcc-plugins/arm_ssp_per_task_plugin.c | |
| parent | pstore: Convert buf_lock to semaphore (diff) | |
| download | kernel-8665569e97dd52920713b95675409648986b5b0d.tar.gz kernel-8665569e97dd52920713b95675409648986b5b0d.zip | |
pstore/ram: Avoid NULL deref in ftrace merging failure path
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 <[email protected]>
Fixes: 2fbea82bbb89 ("pstore: Merge per-CPU ftrace records into one")
Cc: "Joel Fernandes (Google)" <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/arm_ssp_per_task_plugin.c')
0 files changed, 0 insertions, 0 deletions
