net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc
stable inclusion from linux-4.19.167 commit bd7233f43b4526ccf7ef34e9e244dd56926f32c6 -------------------------------- [ Upstream commit fb250385 ] Accesses to dev->xps_cpus_map (when using dev->num_tc) should be protected by the rtnl lock, like we do for netif_set_xps_queue. I didn't see an actual bug being triggered, but let's be safe here and take the rtnl lock while accessing the map in sysfs. Fixes: 184c449f ("net: Add support for XPS with QoS via traffic classes") Signed-off-by:Antoine Tenart <atenart@kernel.org> Reviewed-by:
Alexander Duyck <alexanderduyck@fb.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Signed-off-by:
Aichun Li <liaichun@huawei.com> reviewed-by:
wangxiaopeng <wangxiaopeng7@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Signed-off-by:
Cheng Jian <cj.chengjian@huawei.com>
Loading
Please sign in to comment