[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181123.112053.1864681887827786186.davem@davemloft.net>
Date: Fri, 23 Nov 2018 11:20:53 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dcaratti@...hat.com
Cc: edumazet@...gle.com, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, netdev@...r.kernel.org, ivecera@...hat.com
Subject: Re: [PATCH net] net/sched: act_police: add missing spinlock
initialization
From: Davide Caratti <dcaratti@...hat.com>
Date: Wed, 21 Nov 2018 18:23:53 +0100
> commit f2cbd4852820 ("net/sched: act_police: fix race condition on state
> variables") introduces a new spinlock, but forgets its initialization.
> Ensure that tcf_police_init() initializes 'tcfp_lock' every time a 'police'
> action is newly created, to avoid the following lockdep splat:
...
> Fixes: f2cbd4852820 ("net/sched: act_police: fix race condition on state variables")
> Reported-by: Cong Wang <xiyou.wangcong@...il.com>
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Applied.
Powered by blists - more mailing lists