Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mlsetup.c
          +++ new/usr/src/uts/i86pc/os/mlsetup.c
↓ open down ↓ 313 lines elided ↑ open up ↑
 314  314          p0.p_stat = SRUN;
 315  315          p0.p_flag = SSYS;
 316  316          p0.p_tlist = &t0;
 317  317          p0.p_stksize = 2*PAGESIZE;
 318  318          p0.p_stkpageszc = 0;
 319  319          p0.p_as = &kas;
 320  320          p0.p_lockp = &p0lock;
 321  321          p0.p_brkpageszc = 0;
 322  322          p0.p_t1_lgrpid = LGRP_NONE;
 323  323          p0.p_tr_lgrpid = LGRP_NONE;
      324 +        psecflags_default(&p0.p_secflags);
      325 +
 324  326          sigorset(&p0.p_ignore, &ignoredefault);
 325  327  
 326  328          CPU->cpu_thread = &t0;
 327  329          bzero(&cpu0_disp, sizeof (disp_t));
 328  330          CPU->cpu_disp = &cpu0_disp;
 329  331          CPU->cpu_disp->disp_cpu = CPU;
 330  332          CPU->cpu_dispthread = &t0;
 331  333          CPU->cpu_idle_thread = &t0;
 332  334          CPU->cpu_flags = CPU_READY | CPU_RUNNING | CPU_EXISTS | CPU_ENABLE;
 333  335          CPU->cpu_dispatch_pri = t0.t_pri;
↓ open down ↓ 179 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX