From: Marcel Holtmann Date: Mon, 15 Mar 2010 21:12:58 +0000 (-0700) Subject: Bluetooth: Fix potential bad memory access with sysfs files X-Git-Tag: v2.6.34-rc3~84^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=101545f6fef4a0a3ea8daf0b5b880df2c6a92a69;p=pandora-kernel.git Bluetooth: Fix potential bad memory access with sysfs files When creating a high number of Bluetooth sockets (L2CAP, SCO and RFCOMM) it is possible to scribble repeatedly on arbitrary pages of memory. Ensure that the content of these sysfs files is always less than one page. Even if this means truncating. The files in question are scheduled to be moved over to debugfs in the future anyway. Based on initial patches from Neil Brown and Linus Torvalds Reported-by: Neil Brown Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed