Files
scoutfs/kmod
Zach Brown 995e43aa18 scoutfs: hold the alloc sem during truncate
The super info's alloc_rwsem protects the local node free segment and
block bitmap items.  The truncate code wasn't holding using the rwsem so
it could race with other local node allocator item users and corrupt the
bitmaps.  In the best case this could corrupt structures that trigger
EIO.  The corrupt items could also create duplicate block allocations
that clobber each other and corrupt data.

Signed-off-by: Zach Brown <zab@versity.com>
2018-03-16 09:18:50 -07:00
..