mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Correct a sanity check in vnode_pager_generic_putpages(). The cast used
to implement the sanity check should have been changed when we converted the implementation of vm_pindex_t from 32 to 64 bits. (Thus, RELENG_4 is not affected.) The consequence of this error would be a legimate write to an extremely large file being treated as an errant attempt to write meta- data. Discussed with: tegge@
This commit is contained in:
parent
bb28d112bb
commit
d8fed1d050
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138406
@ -1013,7 +1013,7 @@ vnode_pager_generic_putpages(vp, m, bytecount, flags, rtvals)
|
||||
for (i = 0; i < count; i++)
|
||||
rtvals[i] = VM_PAGER_AGAIN;
|
||||
|
||||
if ((int) m[0]->pindex < 0) {
|
||||
if ((int64_t)m[0]->pindex < 0) {
|
||||
printf("vnode_pager_putpages: attempt to write meta-data!!! -- 0x%lx(%lx)\n",
|
||||
(long)m[0]->pindex, (u_long)m[0]->dirty);
|
||||
rtvals[0] = VM_PAGER_BAD;
|
||||
|
Loading…
Reference in New Issue
Block a user