]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
SRAT: Don't overflow domain_pxm table
authorConrad Meyer <cem@FreeBSD.org>
Wed, 20 Apr 2016 01:10:07 +0000 (01:10 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Wed, 20 Apr 2016 01:10:07 +0000 (01:10 +0000)
commit3765b809934386dda7010960d5494fcb77dd0a8a
treeb9f8dea5a7f009cf635f4f619f02755f980ec635
parentfb4e4bd7f93133aa06a38b3fec97b1e163daed79
SRAT: Don't overflow domain_pxm table

If we reached MAXMEMDOM, we would previously try to insert an additional
element and only detect overflow after causing (probably trivial) memory
overflow.  Instead, detect the ndomain > MAXMEMDOM case before we write past
the end.

Reported by: Coverity
CID: 1354783
Sponsored by: EMC / Isilon Storage Division
sys/x86/acpica/srat.c