diff options
| author | Jaeyeon Lee <jaeyeon.lee.dev@gmail.com> | 2026-07-08 13:19:41 +0200 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-07-26 22:49:15 -0700 |
| commit | fe7ed12b12ae33d65dbcb2eaed16c574b5ca2617 (patch) | |
| tree | f9e79131bd2db27dcb46ac6fb72afac40d1e15db /drivers/of | |
| parent | 11b62eb8d8f7383950f0cf8da2883ddfe6c3d73b (diff) | |
| download | linux-next-fe7ed12b12ae33d65dbcb2eaed16c574b5ca2617.tar.gz linux-next-fe7ed12b12ae33d65dbcb2eaed16c574b5ca2617.zip | |
mm/shmem: annotate benign data-race in shmem_getattr()
shmem_getattr() reads info->alloced, info->swapped and i_mapping->nrpages
without info->lock to decide whether shmem_recalc_inode() should be
called. shmem_recalc_inode() recomputes these under info->lock, so a
stale read here only affects whether shmem_recalc_inode() runs.
Annotate data_race() to silence KCSAN.
Link: https://lore.kernel.org/20260708111941.35460-1-jaeyeon.lee.dev@gmail.com
Signed-off-by: Jaeyeon Lee <jaeyeon.lee.dev@gmail.com>
Reported-by: syzbot+dfb578404df369f6599b@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=dfb578404df369f6599b
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Marco Elver <elver@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions
