git: acpi - Catch infinite parser recursions
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Nov 11 18:16:59 PST 2019
commit d9bb5dfdc3905237fb704584b71c9e0a9627656c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Nov 11 18:14:07 2019 -0800
acpi - Catch infinite parser recursions
* Instrument AcpiPsParseLoop() and limited recursion depth to 5.
Generally speaking this loop can call a very deep stack of
routines and eat up the kernel stack. A depth limit of 5 might
be a bit too low, but it doesn't take much more to blow up
our current 16KB kernel stack.
This prevents the kernel from double-faulting on excessively bad
AML.
* Works around reported boot-time double-faults on some laptops.
Summary of changes:
.../dev/acpica/source/components/parser/psloop.c | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d9bb5dfdc3905237fb704584b71c9e0a9627656c
--
DragonFly BSD source repository
More information about the Commits
mailing list