login
Header Space

 
 

Re: 2.6.25 regression/oops on boot (ACPI related?)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jonathan McDowell <noodles@...>
Cc: <linux-kernel@...>, <linux-acpi@...>, <ming.m.lin@...>
Date: Thursday, February 28, 2008 - 7:38 pm

On Fri, 2008-02-29 at 15:54 +0800, Jonathan McDowell wrote:
We've root caused the problem and Lin Ming's patch should work for you.
Please give it a try. :)

From: Lin Ming <ming.m.lin@intel.com>

Fix a memory overflow bug when copying
NULL internal package element object to external.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/acpi/utilities/utobject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/acpi/utilities/utobject.c
===================================================================
--- linux-2.6.orig/drivers/acpi/utilities/utobject.c
+++ linux-2.6/drivers/acpi/utilities/utobject.c
@@ -432,7 +432,7 @@ acpi_ut_get_simple_object_size(union acp
 	 * element -- which is legal)
 	 */
 	if (!internal_object) {
-		*obj_length = 0;
+		*obj_length = sizeof(union acpi_object);
 		return_ACPI_STATUS(AE_OK);
 	}
 


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25 regression/oops on boot (ACPI related?), Jonathan McDowell, (Thu Feb 28, 4:08 pm)
Re: 2.6.25 regression/oops on boot (ACPI related?), Zhang, Rui, (Thu Feb 28, 1:20 pm)
Re: 2.6.25 regression/oops on boot (ACPI related?), Jonathan McDowell, (Fri Feb 29, 3:54 am)
Re: 2.6.25 regression/oops on boot (ACPI related?), Zhang, Rui, (Thu Feb 28, 7:38 pm)
Re: 2.6.25 regression/oops on boot (ACPI related?), Jonathan McDowell, (Sat Mar 1, 11:27 am)
Re: 2.6.25 regression/oops on boot (ACPI related?), Jonathan McDowell, (Mon Mar 10, 10:37 am)
Re: 2.6.25 regression/oops on boot (ACPI related?), Rafael J. Wysocki, (Mon Mar 10, 11:01 am)
speck-geostationary