Re: [PATCH 1/3] ext4: introduce macro sbi_array_rcu_deref() to access rcu protected fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 18, 2020 at 07:08:49PM -0800, Suraj Jitindar Singh wrote:
> The s_group_desc field in the super block info (sbi) is protected by rcu to
> prevent access to an invalid pointer during online resize operations.
> There are 2 other arrays in sbi, s_group_info and s_flex_groups, which
> require similar rcu protection which is introduced in the subsequent
> patches. Introduce a helper macro sbi_array_rcu_deref() to be used to
> provide rcu protected access to such fields.
> 
> Also update the current s_group_desc access site to use the macro.
> 
> Signed-off-by: Suraj Jitindar Singh <surajjs@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx

Thanks, applied with the simplification suggested by Balbir.  Also
note that I generally use stable@xxxxxxxxxx instead of
stable@xxxxxxxxxxxxxxx, since that avoids sending excess mail to
stable@xxxxxxxxxxxxxxx mailing list.  (The stable kernel scripts look
for stable@xxxxxxxxxx as well as stable@xxxxxxxxxxxxxxx.)  I've made
that change in the version of the patch that I applied.

	     	       	   	      	  - Ted



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux