From: Lv Zheng Date: Fri, 13 Sep 2013 05:13:30 +0000 (+0800) Subject: ACPI / IPMI: Fix potential response buffer overflow X-Git-Tag: v3.13-rc1~96^2~22^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b68f03f95e3f0aeea0c47799aecb296276a7cd6;p=pandora-kernel.git ACPI / IPMI: Fix potential response buffer overflow This patch enhances sanity checks on message size to avoid potential buffer overflow. The kernel IPMI message size is IPMI_MAX_MSG_LENGTH(272 bytes) while the ACPI specification defined IPMI message size is 64 bytes. The difference is not handled by the original codes. This may cause crash in the response handling codes. This patch closes this gap and also combines rx_data/tx_data to use single data/len pair since they need not be seperate. Signed-off-by: Lv Zheng Reviewed-by: Huang Ying Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed