Don't include T_USER in si_trapno reported to userland.
Signals are only reported for user traps, so T_USER is redundant. It is also a software convention and not included in the value reported by the hardware. Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D25769
This commit is contained in:
parent
c2895f1934
commit
e21c0b0753
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363613
@ -1107,7 +1107,7 @@ trap(struct trapframe *trapframe)
|
||||
ksi.ksi_signo = i;
|
||||
ksi.ksi_code = ucode;
|
||||
ksi.ksi_addr = (void *)addr;
|
||||
ksi.ksi_trapno = type;
|
||||
ksi.ksi_trapno = type & ~T_USER;
|
||||
trapsignal(td, &ksi);
|
||||
out:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user