Print this page
Code review comments from jeffpc
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/man/man3lib/libproc.3lib.man.txt
          +++ new/usr/src/man/man3lib/libproc.3lib.man.txt
↓ open down ↓ 157 lines elided ↑ open up ↑
 158  158             Plwp_getspymaster             Plwp_main_stack
 159  159             Plwp_setfpregs                Plwp_setregs
 160  160             Plwp_stack                    Pname_to_ctf
 161  161             Pname_to_loadobj              Pname_to_map
 162  162             Pobjname                      Pobjname_resolved
 163  163             Pplatform                     Ppltdest
 164  164             Ppriv                         Ppsinfo
 165  165             Pputareg                      Prd_agent
 166  166             Pread                         Pread_string
 167  167             Preset_maps                   Psetbkpt
 168      -           Psetcred                      Psetfault
 169      -           Psetflags                     Psetpriv
 170      -           Psetrun                       Psetsignal
 171      -           Psetsysentry                  Psetsysexit
 172      -           Psetwapt                      Psetzoneid
 173      -           Psignal                       Pstate
 174      -           Pstatus                       Pstop
 175      -           Pstopstatus                   Psync
 176      -           Psysentry                     Psysexit
 177      -           Puname                        Punsetflags
 178      -           Pupdate_maps                  Pupdate_syms
 179      -           Pwait                         Pwrite
 180      -           Pxecbkpt                      Pxecwapt
 181      -           Pxlookup_by_addr              Pxlookup_by_addr_resolved
 182      -           Pxlookup_by_name              Pzonename
 183      -           Pzonepath                     Pzoneroot
      168 +           Psecflags                     Psetcred
      169 +           Psetfault                     Psetflags
      170 +           Psetpriv                      Psetrun
      171 +           Psetsignal                    Psetsysentry
      172 +           Psetsysexit                   Psetwapt
      173 +           Psetzoneid                    Psignal
      174 +           Pstate                        Pstatus
      175 +           Pstop                         Pstopstatus
      176 +           Psync                         Psysentry
      177 +           Psysexit                      Puname
      178 +           Punsetflags                   Pupdate_maps
      179 +           Pupdate_syms                  Pwait
      180 +           Pwrite                        Pxecbkpt
      181 +           Pxecwapt                      Pxlookup_by_addr
      182 +           Pxlookup_by_addr_resolved     Pxlookup_by_name
      183 +           Pzonename                     Pzonepath
      184 +           Pzoneroot
 184  185  
 185  186     Thread interrogation and manipulation
 186  187       The following routines obtain information about a thread and allow
 187  188       manipulation of the thread itself.
 188  189  
 189  190             Lalt_stack                    Lclearfault
 190  191             Lclearsig                     Lctlfd
 191  192             Ldstop                        Lgetareg
 192  193             Lmain_stack                   Lprochandle
 193  194             Lpsinfo                       Lputareg
↓ open down ↓ 476 lines elided ↑ open up ↑
 670  671       Pgetauxval(3PROC), Pgetauxvec(3PROC), Pgetenv(3PROC), Pisprocdir(3PROC),
 671  672       Pissyscall_prev(3PROC), Plmid(3PROC), Plmid_to_loadobj(3PROC),
 672  673       Plmid_to_map(3PROC), Plookup_by_addr(3PROC), Plookup_by_name(3PROC),
 673  674       Plwp_alt_stack(3PROC), Plwp_getfpregs(3PROC), Plwp_getpsinfo(3PROC),
 674  675       Plwp_getregs(3PROC), Plwp_getspymaster(3PROC), Plwp_main_stack(3PROC),
 675  676       Plwp_setfpregs(3PROC), Plwp_setregs(3PROC), Plwp_stack(3PROC),
 676  677       Pname_to_ctf(3PROC), Pname_to_loadobj(3PROC), Pname_to_map(3PROC),
 677  678       Pobjname(3PROC), Pobjname_resolved(3PROC), Pplatform(3PROC),
 678  679       Ppltdest(3PROC), Ppriv(3PROC), Ppsinfo(3PROC), Pputareg(3PROC),
 679  680       Prd_agent(3PROC), Pread(3PROC), Pread_string(3PROC), Preset_maps(3PROC),
 680      -     Psetbkpt(3PROC), Psetcred(3PROC), Psetfault(3PROC), Psetflags(3PROC),
 681      -     Psetpriv(3PROC), Psetrun(3PROC), Psetsignal(3PROC), Psetsysentry(3PROC),
 682      -     Psetsysexit(3PROC), Psetwapt(3PROC), Psetzoneid(3PROC), Psignal(3PROC),
 683      -     Pstate(3PROC), Pstatus(3PROC), Pstop(3PROC), Pstopstatus(3PROC),
 684      -     Psync(3PROC), Psysentry(3PROC), Psysexit(3PROC), Puname(3PROC),
 685      -     Punsetflags(3PROC), Pupdate_maps(3PROC), Pupdate_syms(3PROC),
 686      -     Pwait(3PROC), Pwrite(3PROC), Pxecbkpt(3PROC), Pxecwapt(3PROC),
 687      -     Pxlookup_by_addr(3PROC), Pxlookup_by_addr_resolved(3PROC),
 688      -     Pxlookup_by_name(3PROC), Pzonename(3PROC), Pzonepath(3PROC),
 689      -     Pzoneroot(3PROC)
      681 +     Psecflags(3PROC), Psetbkpt(3PROC), Psetcred(3PROC), Psetfault(3PROC),
      682 +     Psetflags(3PROC), Psetpriv(3PROC), Psetrun(3PROC), Psetsignal(3PROC),
      683 +     Psetsysentry(3PROC), Psetsysexit(3PROC), Psetwapt(3PROC),
      684 +     Psetzoneid(3PROC), Psignal(3PROC), Pstate(3PROC), Pstatus(3PROC),
      685 +     Pstop(3PROC), Pstopstatus(3PROC), Psync(3PROC), Psysentry(3PROC),
      686 +     Psysexit(3PROC), Puname(3PROC), Punsetflags(3PROC), Pupdate_maps(3PROC),
      687 +     Pupdate_syms(3PROC), Pwait(3PROC), Pwrite(3PROC), Pxecbkpt(3PROC),
      688 +     Pxecwapt(3PROC), Pxlookup_by_addr(3PROC),
      689 +     Pxlookup_by_addr_resolved(3PROC), Pxlookup_by_name(3PROC),
      690 +     Pzonename(3PROC), Pzonepath(3PROC), Pzoneroot(3PROC)
 690  691  
 691  692       Lalt_stack(3PROC), Lclearfault(3PROC), Lclearsig(3PROC), Lctlfd(3PROC),
 692  693       Ldstop(3PROC), Lgetareg(3PROC), Lmain_stack(3PROC), Lprochandle(3PROC),
 693  694       Lpsinfo(3PROC), Lputareg(3PROC), Lsetrun(3PROC), Lstack(3PROC),
 694  695       Lstate(3PROC), Lstatus(3PROC), Lstop(3PROC), Lsync(3PROC), Lwait(3PROC),
 695  696       Lxecbkpt(3PROC), Lxecwapt(3PROC)
 696  697  
 697  698       pr_access(3PROC), pr_close(3PROC), pr_creat(3PROC), pr_door_info(3PROC),
 698  699       pr_exit(3PROC), pr_fcntl(3PROC), pr_fstat(3PROC), pr_fstat64(3PROC),
 699  700       pr_fstatvfs(3PROC), pr_getitimer(3PROC), pr_getpeername(3PROC),
↓ open down ↓ 25 lines elided ↑ open up ↑
 725  726       proc_str2sig(3PROC), proc_str2sigset(3PROC), proc_str2sys(3PROC),
 726  727       proc_str2sysset(3PROC), proc_sysname(3PROC), proc_sysset2str(3PROC),
 727  728       proc_unctrl_psinfo(3PROC), proc_walk(3PROC)
 728  729  
 729  730       Pldt(3PROC), proc_get_ldt(3PROC),
 730  731  
 731  732       Plwp_getgwindows(3PROC), Plwp_getxregs(3PROC), Plwp_setxregs(3PROC),
 732  733  
 733  734       Plwp_getasrs(3PROC), Plwp_setasrs(3PROC)
 734  735  
 735      -illumos                           May 8, 2016                          illumos
      736 +illumos                          June 6, 2016                          illumos
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX