Re: [PATCH] exit: use READ_ONCE() to read mm->owner
From: Christian Brauner
Date: Tue Nov 17 2026 - 13:11:09 EST
On Tue, 27 Oct 2026 16:09:23 -0400, Mani Tofigh wrote:
> mm->owner is written with WRITE_ONCE() when ownership moves to another
> task, but mm_update_next_owner() reads it with a plain load. The race
> is expected, so read it with READ_ONCE() to match the writer.
>
> [ 14.915975] BUG: KCSAN: data-race in mm_update_next_owner / try_to_set_owner
>
> [ 14.916154] write (marked) to 0xff11000004471b80 of 8 bytes by task 71 on cpu 0:
> [ 14.916204] try_to_set_owner+0x100/0x140
> [ 14.916302] mm_update_next_owner+0x177/0x300
> ...
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] exit: use READ_ONCE() to read mm->owner
https://git.kernel.org/vfs/vfs/c/daa40a6bde22