]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust vnode_pager_input_smlfs() to not attempt to BMAP blocks beyond the
authordillon <dillon@FreeBSD.org>
Mon, 5 Nov 2001 18:58:47 +0000 (18:58 +0000)
committerdillon <dillon@FreeBSD.org>
Mon, 5 Nov 2001 18:58:47 +0000 (18:58 +0000)
commita08a119cfc5cdcc2e9aa2e6a8e257da8df5db914
treeba5e3b8a064134f4c5603f9029ed25d20102e653
parent094cb29b1151595b1d62c786f4f942d3a11fe157
Adjust vnode_pager_input_smlfs() to not attempt to BMAP blocks beyond the
file EOF.  This works around a bug in the ISOFS (CDRom) BMAP code which
returns bogus values for requests beyond the file EOF rather then returning
an error, resulting in either corrupt data being mmap()'d beyond the file EOF
or resulting in a seg-fault on the last page of a mmap()'d file (mmap()s of
CDRom files).

Reported by: peter / Yahoo
MFC after: 3 days
sys/vm/vnode_pager.c