git: DragonFly_RELEASE_5_0 kernel - Fix cluster_awrite() race
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Oct 29 14:50:25 PDT 2017
commit 482ea7304770ff52628dc03d9f5fc706a4b0b78c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Oct 28 15:14:02 2017 -0700
kernel - Fix cluster_awrite() race
* Fix a race between cluster_awrite() and vnode destruction. We
have to finish working the cluster pbuf before disposing of the
component elements. b_vp in the cluster pbuf is held only by
the presence of the components.
* Fixes NULL pointer indirection panic associated with heavy
paging during tmpfs operations. This typically only occurs
when maxvnodes is set to a relatively low value, but it can
eventually occur in any modestly paging environment when
tmpfs is used.
Summary of changes:
sys/kern/vfs_cluster.c | 36 +++++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/482ea7304770ff52628dc03d9f5fc706a4b0b78c
--
DragonFly BSD source repository
More information about the Commits
mailing list