linux-stable/fs/quota
Jan Kara 56cad01c54 quota: Fix rcu annotations of inode dquot pointers
[ Upstream commit 179b8c97eb ]

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 quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
Makefile quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
compat.h quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
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 quota: Fix memory leak when handling corrupted quota file 2021-01-05 14:42:18 +01:00
quotaio_v1.h
quotaio_v2.h