summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2020-03-16 01:46:10 -0700
committerDavid S. Miller <davem@davemloft.net>2020-03-16 01:46:10 -0700
commit4ae649e8879d5a96b0ce104c8eae6563c6f368a1 (patch)
tree1ecea3feaa0f1f092d8b606d4cf06c33f762b68a /net/sched
parentdcadaec2245616aedd94ff0129db2b13f2d8deb8 (diff)
parent09e91dbea0aa32be02d8877bd50490813de56b9a (diff)
downloadlinux-4ae649e8879d5a96b0ce104c8eae6563c6f368a1.tar.gz
linux-4ae649e8879d5a96b0ce104c8eae6563c6f368a1.tar.bz2
linux-4ae649e8879d5a96b0ce104c8eae6563c6f368a1.zip
Merge branch 'hsr-fix-several-bugs-in-generic-netlink-callback'
Taehee Yoo says: ==================== hsr: fix several bugs in generic netlink callback This patchset is to fix several bugs they are related in generic netlink callback in hsr module. 1. The first patch is to add missing rcu_read_lock() in hsr_get_node_{list/status}(). The hsr_get_node_{list/status}() are not protected by RTNL because they are callback functions of generic netlink. But it calls __dev_get_by_index() without acquiring RTNL. So, it would use unsafe data. 2. The second patch is to avoid failure of hsr_get_node_list(). hsr_get_node_list() is a callback of generic netlink and it is used to get node information in userspace. But, if there are so many nodes, it fails because of buffer size. So, in this patch, restart routine is added. 3. The third patch is to set .netnsok flag to true. If .netnsok flag is false, non-init_net namespace is not allowed to operate generic netlink operations. So, currently, non-init_net namespace has no way to get node information because .netnsok is false in the current hsr code. Change log: v1->v2: - Preserve reverse christmas tree variable ordering in the second patch. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions