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)
Sat, Mar 15, 11:19 PM
Unknown Object (File)
Feb 14 2025, 2:30 AM
Unknown Object (File)
Feb 13 2025, 5:38 PM
Unknown Object (File)
Feb 7 2025, 4:40 PM
Unknown Object (File)
Jan 26 2025, 10:25 PM
Unknown Object (File)
Jan 25 2025, 6:46 PM
Unknown Object (File)
Jan 11 2025, 4:35 AM
Unknown Object (File)
Nov 7 2024, 2:40 AM
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