aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/vm_page_grab.9
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-08-16 17:30:58 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-08-16 17:30:58 +0000
commit948137db101e7b0c7276b74b5445d646626d3e4c (patch)
tree267c9d5627f1f41f9b48e6ac5308c1c00528d9d0 /share/man/man9/vm_page_grab.9
parent2da4bcb82b5d74a106381cf8a0a98df33c243e71 (diff)
downloadsrc-948137db101e7b0c7276b74b5445d646626d3e4c.tar.gz
src-948137db101e7b0c7276b74b5445d646626d3e4c.zip
In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
allocation unwinding. Dandling buffers are released on UFS_BALLOC() failure to ensure that later attempt to allocate blocks in close range do not find the blocks with invalid content, since possible partial block allocations are unwound. As such, it is not enough to just release the buffers, the pages must also invalidated and removed from the vnode vm_object queue. Otherwise the pages might be found later and used to reconstruct indirect buffers when doing allocations at offset close to the failure point, and their stale content compromise the filesystem integrity. Note that just marking the buffer as B_INVAL is not enough, B_NOCACHE is required. To be sure, clear the B_CACHE flag as well. This complements the r174973, which started releasing buffers. Reported and tested by: pho Reviewed by: mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=304232
Diffstat (limited to 'share/man/man9/vm_page_grab.9')
0 files changed, 0 insertions, 0 deletions