Re: [PATCH v2] buffer: Annotate the remote buffer LRU occupancy check

From: Christian Brauner

Date: Wed Nov 18 2026 - 07:38:33 EST


On Thu, 12 Nov 2026 09:50:47 +0800, Zhu Jun wrote:
> has_bh_in_lru() reads another CPU's buffer LRU while that CPU may install
> or invalidate entries. The local BH LRU lock does not serialize this
> remote occupancy check, which KCSAN reports as a data race.
>
> The check only decides whether to send a drain IPI and never dereferences
> the sampled pointer. Mark the occupancy check as an intentional data
> race with data_race().
>
> [...]

Applied to the vfs-7.5.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.5.misc 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-7.5.misc

[1/1] buffer: Annotate the remote buffer LRU occupancy check
https://git.kernel.org/vfs/vfs/c/d72eb13a6fee