diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-05-15 19:16:15 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-05-19 08:12:49 -0700 |
commit | 3ecb3ac7b950ff8f6c6a61e8b7b0d6e3546429a0 (patch) | |
tree | ae238320000d65e6bce1fd30cd8c0ae644be022b /net/unix/af_unix.c | |
parent | ea9a46e1c49251331dbfda19ced7114337966178 (diff) |
xfs: avoid mount-time deadlock in CoW extent recovery
If a malicious user corrupts the refcount btree to cause a cycle between
different levels of the tree, the next mount attempt will deadlock in
the CoW recovery routine while grabbing buffer locks. We can use the
ability to re-grab a buffer that was previous locked to a transaction to
avoid deadlocks, so do that here.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions