Re: [PATCH] livepatch: robustify klp_register_patch() API error checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 07, 2016 at 06:06:25PM +0200, Jiri Kosina wrote:
> From: Jiri Kosina <jkosina@xxxxxxx>
> 
> 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@xxxxxxxxxx>
> Signed-off-by: Jiri Kosina <jkosina@xxxxxxx>

Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>


-- 
Josh
--
To unsubscribe from this list: send the line "unsubscribe live-patching" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux