Re: [PATCH 1/2] libxfs: zero the struct xfs_mount when unmounting the filesystem

Christoph Hellwig
2020-02-25T17:40:40Z

On Mon, Feb 24, 2020 at 04:11:20PM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> Since libxfs doesn't allocate the struct xfs_mount *, we can't just free
> it during unmount. Zero its contents to prevent any use-after-free.

I don't really this at all. Seems to be cargo-cult style programming.