diff options
author | Alan Cox <alc@FreeBSD.org> | 2009-05-09 08:30:44 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2009-05-09 08:30:44 +0000 |
commit | 0d53a17bde39ba28d38165317ae4b0a6098a8e78 (patch) | |
tree | fd771168b6dc023886bb944cc8f9f58bba502563 /sys/netinet/sctp_lock_bsd.h | |
parent | 126b14f7e87fe56edcdf33be5ff6925de5c0290c (diff) | |
download | src-0d53a17bde39ba28d38165317ae4b0a6098a8e78.tar.gz src-0d53a17bde39ba28d38165317ae4b0a6098a8e78.zip |
Fix a race involving vnode_pager_input_smlfs(). Specifically, in the case
that vnode_pager_input_smlfs() zeroes the page, it should not mark the page
as valid until after the page is zeroed. Otherwise, the page could be
mapped for read access (e.g., by vm_map_pmap_enter()) before the page is
zeroed. Reviewed by: tegge
Eliminate gratuitous clearing of the page's dirty mask by
vnode_pager_input_smlfs(). Instead, assert that the page is clean.
Reviewed by: tegge
Eliminate some blank lines.
Eliminate pointless calls to pmap_clear_modify() and vm_page_undirty() from
vnode_pager_input_old(). The page is not mapped. Therefore, it cannot have
any page table entries that are modified.
Eliminate an incorrect comment from vnode_pager_generic_getpages().
Notes
Notes:
svn path=/head/; revision=191935
Diffstat (limited to 'sys/netinet/sctp_lock_bsd.h')
0 files changed, 0 insertions, 0 deletions