]> git.itanic.dy.fi Git - linux-stable/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)
commit496b9bcd62b0b3a160be61e3265a086f97adcbd3
tree2895ebba43ecbe674794083ec586b7c34bcd1513
parent3e6e8afd3abb745871ee215738a899a495c54a66
xfs: fix use-after-free when aborting corrupt attr inactivation

Log the corrupt buffer before we release the buffer.

Fixes: a5155b870d687 ("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