[PATCH v6 1/3] powerpc/pseries: Correct possible read beyond dlpar sysfs buffer

John Allen jallen at linux.vnet.ibm.com
Fri Oct 28 01:20:24 AEDT 2016


On 10/18/2016 12:20 PM, Nathan Fontenot wrote:
> The pasrsing of data written to the dlpar file in sysfs does not correctly
> account for the possibility of reading past the end of the buffer. Correct
> this by updating the buffer parsing code to make a local copy and use the
> strsep() and sysfs_streq() routines to parse the buffer. This also
> separates the parsing code into subroutines to make cleaner.
> 
> Signed-off-by: Nathan Fontenot <nfont at linux.vnet.ibm.com>
> ---

Reviewed-by: John Allen <jallen at linux.vnet.ibm.com>



More information about the Linuxppc-dev mailing list