Re: [PATCH v1] xfs: set healthmon mount cookie before publishing it

From: Carlos Maiolino

Date: Tue Nov 03 2026 - 05:10:43 EST


On Thu, 15 Oct 2026 16:02:25 +0800, Binbin Deng wrote:
> xfs_ioc_health_monitor() allocates the healthmon object with kzalloc(), so
> mount_cookie starts as zero. zero is also DETACHED_MOUNT_COOKIE, but
> xfs_healthmon_attach() publishes hm through mp->m_healthmon before storing
> the mount cookie. A concurrent reporter can therefore acquire hm from
> xfs_healthmon_get(), see the detached cookie in xfs_healthmon_push(), and
> drop the event even though the monitor is being attached.
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: set healthmon mount cookie before publishing it
commit: 0344a9492efac4c79202a07cf284a382f7054170

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>