Project

General

Profile

Actions

Bug #1804

closed

Bug #1450: Illumos should be buildable with GCC4

hat_sfmmu should verify that shared context identifiers are in-bounds

Added by Rich Lowe almost 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2011-11-21
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

GCC4 notices that we don't check the bounds of the region cookie when unlocking a shared region on SPARC. It is very likely that the (passed-in) cookie will always be valid, and in fact we assert it is so in DEBUG kernels. We may as well VERIFY it, instead, so that the check is in release builds and GCC is happy.

Actions

Also available in: Atom PDF