Review Board 2.0.15


Syscalls: panic when the length argument to mmap is excessive.

Review Request #1168 - Created April 28, 2012 and submitted - Latest diff uploaded

Information
Gabe Black
gem5
default
Reviewers
Default
Changeset 8974:bc9705db542b
---------------------------
Syscalls: panic when the length argument to mmap is excessive.

If the length argument to mmap is larger than the arbitrary but reasonable
limit of 4GB, there's a good chance that the value is nonsense and not
intentional. Rather than attempting to satisfy the mmap anyway, this change
makes gem5 panic to make it more apparent what's going wrong.