Searched hist:d9f65018 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/acpi/ |
H A D | proc.c | d9f65018 Sat Sep 26 13:50:25 CDT 2009 Arjan van de Ven <arjan@linux.intel.com> ACPI: Fix bound checks for copy_from_user in the acpi /proc code
The ACPI /proc write() code takes an unsigned length argument like any write() function, but then assigned it to a *signed* integer called "len". Only after this is a sanity check for len done to make it not larger than 4.
Due to the type change a len < 0 is in principle also possible; this patch adds a check for this.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com> d9f65018 Sat Sep 26 13:50:25 CDT 2009 Arjan van de Ven <arjan@linux.intel.com> ACPI: Fix bound checks for copy_from_user in the acpi /proc code The ACPI /proc write() code takes an unsigned length argument like any write() function, but then assigned it to a *signed* integer called "len". Only after this is a sanity check for len done to make it not larger than 4. Due to the type change a len < 0 is in principle also possible; this patch adds a check for this. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
|