lkml.org 
[lkml]   [2021]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] xfrm: policy: Read seqcount outside of rcu-read side in xfrm_policy_lookup_bytype
On Fri, May 28, 2021 at 06:44:37PM +0200, Ahmed S. Darwish wrote:
> On Fri, May 28, 2021, Varad Gautam wrote:
> >
> > Thead 1 (xfrm_hash_resize) Thread 2 (xfrm_policy_lookup_bytype)
> >
> > rcu_read_lock();
> > mutex_lock(&hash_resize_mutex);
> > read_seqcount_begin(&xfrm_policy_hash_generation);
> > mutex_lock(&hash_resize_mutex); // block
> > xfrm_bydst_resize();
> > synchronize_rcu(); // block
> > <RCU stalls in xfrm_policy_lookup_bytype>
> >
> ...
> >
> > Fixes: 77cc278f7b20 ("xfrm: policy: Use sequence counters with associated lock")
> > Signed-off-by: Varad Gautam <varad.gautam@suse.com>
>
> Acked-by: Ahmed S. Darwish <a.darwish@linutronix.de>

Applied, thanks a lot!

\
 
 \ /
  Last update: 2021-06-03 10:17    [W:0.169 / U:0.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site