mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Protect the per-process UAC field with the proc lock where it isn't already
protected.
This commit is contained in:
parent
693f4477b1
commit
00e93b4d53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113610
@ -119,7 +119,9 @@ cpu_fork(td1, p2, td2, flags)
|
||||
td2->td_pcb = (struct pcb *)
|
||||
(td2->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
|
||||
td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED;
|
||||
PROC_LOCK(p2);
|
||||
p2->p_md.md_uac = p1->p_md.md_uac;
|
||||
PROC_UNLOCK(p2);
|
||||
|
||||
/*
|
||||
* Cache the physical address of the pcb, so we can
|
||||
|
@ -62,7 +62,7 @@ struct mdthread {
|
||||
#define MDP_UAC_MASK (MDP_UAC_NOPRINT | MDP_UAC_NOFIX | MDP_UAC_SIGBUS)
|
||||
|
||||
struct mdproc {
|
||||
u_int md_uac; /* Unaligned Access Check flags. */
|
||||
u_int md_uac; /* (c) Unaligned Access Check flags. */
|
||||
};
|
||||
|
||||
#endif /* !_MACHINE_PROC_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user