diff options
author | John Baldwin <jhb@FreeBSD.org> | 2002-02-27 18:30:01 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2002-02-27 18:30:01 +0000 |
commit | 65e3406d28b159fab93b499d25ed079b2c978ff7 (patch) | |
tree | 2a10480f644fa7d553c28438685c71db5365dc83 /sys/netinet | |
parent | 0c934a5eed829453c69ef7c66c2740bef07fbe72 (diff) |
Temporarily lock Giant while we update td_ucred. The proc lock doesn't
fully protect p_ucred yet so Giant is needed until all the p_ucred
locking is done. This is the original reason td_ucred was not used
immediately after its addition. Unfortunately, not using td_ucred is
not enough to avoid problems. Since p_ucred could be stale, we could
actually be dereferencing a stale pointer to dink with the refcount, so
we really need Giant to avoid foot-shooting. This allows td_ucred to
be safely used as well.
Notes
Notes:
svn path=/head/; revision=91405
Diffstat (limited to 'sys/netinet')
0 files changed, 0 insertions, 0 deletions