Home
last modified time | relevance | path

Searched hist:"85390378 f0a6abf3bdb10c3d504d77862a2d0ec9" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/powerpc/platforms/powernv/
H A Dopal-sysparam.cdiff 85390378f0a6abf3bdb10c3d504d77862a2d0ec9 Thu Apr 24 09:25:35 CEST 2014 Joel Stanley <joel@jms.id.au> powerpc/powernv: Check sysfs size before copying

The sysparam code currently uses the userspace supplied number of
bytes when memcpy()ing in to a local 64-byte buffer.

Limit the maximum number of bytes by the size of the buffer.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>