Thread (2 messages) flat view 2 messages, 2 authors, 2016-11-22

Re: powerpc/pseries: Correct possible read beyond dlpar sysfs buffer

From: Michael Ellerman <hidden>
Date: 2016-11-22 00:34:17

On Thu, 2016-11-17 at 16:38:10 UTC, 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. The code
assumes that all pieces of the command witten to the sysfs file are present
in the form "<resource> <action> <id_type> <id>".

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 patch
also separates the parsing code into subroutines for each piece of the
command.

Signed-off-by: Nathan Fontenot <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/25b587fba9a4198e7ea2e2319d62e2

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help