]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix use-after-free when aborting corrupt attr inactivation
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 17:37:53 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Mar 2020 14:58:11 +0000 (07:58 -0700)
commite8d613a892042cd70087a39893cd1a6f1f4a40b7
tree2895ebba43ecbe674794083ec586b7c34bcd1513
parente4c1817ff9bfe4b0309f2cc5052fe0b8a59de420
xfs: fix use-after-free when aborting corrupt attr inactivation

Log the corrupt buffer before we release the buffer.

Fixes: 3f092aea7c1fe ("xfs: always log corruption errors")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_attr_inactive.c