Rework how shared page related data is stored
Store the shared page address in struct vmspace. Also instead of storing absolute addresses of various shared page segments save their offsets with respect to the shared page address. This will be more useful when the shared page address is randomized. Approved by: mw(mentor) Sponsored by: Stormshield Obtained from: Semihalf Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D35393
This commit is contained in:
@@ -346,7 +346,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
|
||||
tf->tf_pc = (register_t)catcher;
|
||||
tf->tf_usr_sp = (register_t)fp;
|
||||
sysent = p->p_sysent;
|
||||
if (sysent->sv_sigcode_base != 0)
|
||||
if (PROC_HAS_SHP(p))
|
||||
tf->tf_usr_lr = (register_t)PROC_SIGCODE(p);
|
||||
else
|
||||
tf->tf_usr_lr = (register_t)(PROC_PS_STRINGS(p) -
|
||||
|
||||
Reference in New Issue
Block a user