OpenSolaris

Printable Version Enter a New Search
Bug ID 6591195
Synopsis segvn_init() may return before checking HAT_SHARED_REGIONS support
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:vm
Keywords shctx
Responsible Engineer Paul Sandhu
Reported Against snv_68
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_72
Fixed In snv_72
Release Fixed solaris_nevada(snv_72) , solaris_10u5(s10u5_01) (Bug ID:2152016)
Related Bugs 6449192
Submit Date 9-August-2007
Last Update Date 24-September-2007
Description
There are several ways to return from segvn_init() before
it checks for HAT_SHARED_REGIONS support. The HAT_SHARED_REGIONS
support check needs to *always* be done.

segvn_init(void)
{
	...
        if (segvn_lpg_disable != 0)
                return;
        szc = maxszc = page_num_pagesizes() - 1;
        if (szc == 0) {
                segvn_lpg_disable = 1;
                return;
        }
	...

        if (segvn_use_regions && !hat_supported(HAT_SHARED_REGIONS, NULL))
                segvn_use_regions = 0;
Work Around
N/A
Comments
N/A