diff options
| author | Dave Chinner <[email protected]> | 2023-06-28 18:04:34 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2023-06-29 16:28:24 +0000 |
| commit | 2bed0d82c2f78b91a0a9a5a73da57ee883a0c070 (patch) | |
| tree | b716d96226cb2c8463128b6d6b88e637ea635a3a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | xfs: AGF length has never been bounds checked (diff) | |
| download | kernel-2bed0d82c2f78b91a0a9a5a73da57ee883a0c070.tar.gz kernel-2bed0d82c2f78b91a0a9a5a73da57ee883a0c070.zip | |
xfs: fix bounds check in xfs_defer_agfl_block()
Need to happen before we allocate and then leak the xefi. Found by
coverity via an xfsprogs libxfs scan.
[djwong: This also fixes the type of the @agbno argument.]
Fixes: 7dfee17b13e5 ("xfs: validate block number being freed before adding to xefi")
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
