WSL2-Linux-Kernel/fs/quota
Jan Kara 56cad01c54 quota: Fix rcu annotations of inode dquot pointers
[ Upstream commit 179b8c97ebf63429589f5afeba59a181fe70603e ]

Dquot pointers in i_dquot array in the inode are protected by
dquot_srcu. Annotate the array pointers with __rcu, perform the locked
dereferences with srcu_dereference_check() instead of plain reads, and
set the array elements with rcu_assign_pointer().

Fixes: b9ba6f94b2 ("quota: remove dqptr_sem")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402061900.rTuYDlo6-lkp@intel.com/
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:27 -04:00
..
Kconfig
Makefile
compat.h
dquot.c quota: Fix rcu annotations of inode dquot pointers 2024-03-26 18:21:27 -04:00
kqid.c
netlink.c
quota.c quota: Change quotactl_path() systcall to an fd-based one 2021-06-07 12:11:24 +02:00
quota_tree.c quota: Check next/prev free block number after reading from quota file 2022-10-26 12:34:21 +02:00
quota_tree.h
quota_v1.c
quota_v2.c
quotaio_v1.h
quotaio_v2.h