git: acpi - Catch infinite parser recursions
dillon at crater.dragonflybsd.org
Mon Nov 11 18:16:59 PST 2019
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
* 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(+)
DragonFly BSD source repository
More information about the Commits