]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ACPI: fix vendor resource length computation
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Fri, 17 Feb 2006 21:59:50 +0000 (13:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Feb 2006 22:09:22 +0000 (14:09 -0800)
commitf64133d9e9394403800361bf94b0d9ebce6eb8eb
treec09177d88d8cbef4c753744c72053a0bd8f35fef
parent740ee8d526c42fe4a5a101b1af556e596a969864
[PATCH] ACPI: fix vendor resource length computation

acpi_rs_get_list_length() needs to account for all the vendor-defined data
bytes.  Failing to include these causes buffers to be sized too small,
which causes slab corruption when we later convert AML to resources and run
off the end of the buffer.

This causes slab corruption on machines that use ACPI vendor-defined
resources.  All HP ia64 machines do, and I'm told that some NEC machines
may as well.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/acpi/resources/rscalc.c