diff options
| author | Darrick J. Wong <[email protected]> | 2017-05-16 02:16:15 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2017-05-19 15:12:49 +0000 |
| commit | 3ecb3ac7b950ff8f6c6a61e8b7b0d6e3546429a0 (patch) | |
| tree | ae238320000d65e6bce1fd30cd8c0ae644be022b /fs/jbd2/commit.c | |
| parent | xfs: only return detailed fsmap info if the caller has CAP_SYS_ADMIN (diff) | |
| download | kernel-3ecb3ac7b950ff8f6c6a61e8b7b0d6e3546429a0.tar.gz kernel-3ecb3ac7b950ff8f6c6a61e8b7b0d6e3546429a0.zip | |
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 <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
