linux-stable/fs/quota
Jan Kara ca1cd5605a 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:56 -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:56 -04:00
kqid.c
netlink.c
quota.c \n 2020-10-15 14:56:15 -07:00
quota_tree.c quota: Check next/prev free block number after reading from quota file 2022-10-26 13:25:09 +02:00
quota_tree.h
quota_v1.c quota: minor code cleanup for v1_format_ops 2019-10-17 10:30:28 +02:00
quota_v2.c quota: Fix memory leak when handling corrupted quota file 2021-03-04 11:37:53 +01:00
quotaio_v1.h quota: avoid time_t in v1_disk_dqblk definition 2019-12-16 14:15:30 +01:00
quotaio_v2.h