From: Joel Stanley Date: Thu, 24 Apr 2014 07:25:35 +0000 (+0930) Subject: powerpc/powernv: Check sysfs size before copying X-Git-Tag: omap-for-v3.16/pm-signed~36^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85390378f0a6abf3bdb10c3d504d77862a2d0ec9;p=pandora-kernel.git 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 --- Reading git-diff-tree failed