From: Vasiliy Kulikov Date: Sat, 19 Feb 2011 13:18:08 +0000 (+0100) Subject: ACPI / debugfs: Fix buffer overflows, double free X-Git-Tag: v2.6.38-rc8~42^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2949ad50711cc161721cf788711722eeeca33764;p=pandora-kernel.git ACPI / debugfs: Fix buffer overflows, double free File position is not controlled, it may lead to overwrites of arbitrary kernel memory. Also the code may kfree() the same pointer multiple times. One more flaw is still present: if multiple processes open the file then all 3 static variables are shared, leading to various race conditions. They should be moved to file->private_data. Signed-off-by: Vasiliy Kulikov Reviewed-by: WANG Cong Reviewed-by: Eugene Teo Cc: stable@kernel.org Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed