Re: [PATCH v6 1/3] powerpc/pseries: Correct possible read beyond dlpar sysfs buffer
From: John Allen <hidden>
Date: 2016-10-27 14:20:31
From: John Allen <hidden>
Date: 2016-10-27 14:20:31
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 <redacted> ---
Reviewed-by: John Allen <redacted>