Page MenuHomeFreeBSD

gic_acpi: Limit the number of CPUs to GIC_MAXCPU
ClosedPublic

Authored by jhb on Sep 9 2023, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 3:04 AM
Unknown Object (File)
Wed, Apr 8, 10:49 PM
Unknown Object (File)
Sun, Apr 5, 4:25 PM
Unknown Object (File)
Sat, Apr 4, 8:24 PM
Unknown Object (File)
Tue, Mar 24, 10:37 PM
Unknown Object (File)
Mar 17 2026, 9:15 PM
Unknown Object (File)
Mar 17 2026, 8:59 PM
Unknown Object (File)
Mar 6 2026, 5:33 PM
Subscribers

Details

Summary

madt_table_data contains an array of pointers for each CPU and was
allocated on the stack. If MAXCPU is raised to a sufficiently large
value this can overflow the kernel stack. Cap the stack growth by
using GIC_MAXCPU instead as for other parts of the gicv1/v2 driver in
commit a0e20c0ded1a.

Suggested by: andrew
Obtained from: CheriBSD
Sponsored by: DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable