diff options
author | Jiri Kosina <jkosina@suse.cz> | 2016-04-07 18:06:25 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-04-07 20:42:38 +0200 |
commit | 61bf12d3304d78ff499245ea995858c3bedb162e (patch) | |
tree | e0f558a6afea387144af7561e1cc6a978c82ea48 /arch/microblaze | |
parent | Documentation: livepatch: outline Elf format and requirements for patch modules (diff) | |
download | linux-61bf12d3304d78ff499245ea995858c3bedb162e.tar.xz linux-61bf12d3304d78ff499245ea995858c3bedb162e.zip |
livepatch: robustify klp_register_patch() API error checking
Commit 425595a7fc20 ("livepatch: reuse module loader code to write
relocations") adds a possibility of dereferncing pointers supplied by the
consumer of the livepatch API before sanity (NULL) checking them (patch
and patch->mod).
Spotted by smatch tool.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Jessica Yu <jeyu@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions