]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cls_u32: add missing RCU annotation.
authorPaolo Abeni <pabeni@redhat.com>
Fri, 2 Feb 2018 15:02:22 +0000 (16:02 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 13 Feb 2018 13:30:21 +0000 (07:30 -0600)
commitb49f9c8819ddbe806db92b7fd52ef7eaec485ff6
tree74d5a82cb61f669ecba675c2c06125427681f0cd
parentb7c8feb6197e0ae8b8da6da9a032d705c9f16baa
cls_u32: add missing RCU annotation.

BugLink: http://bugs.launchpad.net/bugs/1749191
[ Upstream commit 058a6c033488494a6b1477b05fe8e1a16e344462 ]

In a couple of points of the control path, n->ht_down is currently
accessed without the required RCU annotation. The accesses are
safe, but sparse complaints. Since we already held the
rtnl lock, let use rtnl_dereference().

Fixes: a1b7c5fd7fe9 ("net: sched: add cls_u32 offload hooks for netdevs")
Fixes: de5df63228fc ("net: sched: cls_u32 changes to knode must appear atomic to readers")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/sched/cls_u32.c