Re: [PATCH v2] mm: annotate data race in update_hiwater_rss

From: Pedro Falcato
Date: Mon Mar 31 2025 - 16:08:53 EST


On Mon, Mar 31, 2025 at 09:57:05PM +0200, Ignacio Encinas wrote:
> mm_struct.hiwater_rss can be accessed concurrently without proper
> synchronization as reported by KCSAN.
>
> This data race is benign as it only affects accounting information.
> Annotate it with data_race() to make KCSAN happy.
>
> Reported-by: syzbot+419c4b42acc36c420ad3@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://lore.kernel.org/all/67e3390c.050a0220.1ec46.0001.GAE@xxxxxxxxxx/
> Suggested-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
> Signed-off-by: Ignacio Encinas <ignacio@xxxxxxxxxxxx>

Looks good, thank you for the contribution!
Acked-by: Pedro Falcato <pfalcato@xxxxxxx>

--
Pedro