summaryrefslogtreecommitdiffstats
path: root/tools/nfsd
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-02-11 10:55:42 +0200
committerDavid S. Miller <davem@davemloft.net>2019-02-12 13:41:33 -0500
commit726d061286ceeeabda54ba6f080d0cb8f187a9d7 (patch)
tree1bbd36ec6d6bf3e1a53c1de07c9c9ed4560eabd1 /tools/nfsd
parent8b64678e0af8f4d62a40149baedebe78503a5255 (diff)
downloadlinux-stable-726d061286ceeeabda54ba6f080d0cb8f187a9d7.tar.gz
linux-stable-726d061286ceeeabda54ba6f080d0cb8f187a9d7.tar.bz2
linux-stable-726d061286ceeeabda54ba6f080d0cb8f187a9d7.zip
net: sched: prevent insertion of new classifiers during chain flush
Extend tcf_chain with 'flushing' flag. Use the flag to prevent insertion of new classifier instances when chain flushing is in progress in order to prevent resource leak when tcf_proto is created by unlocked users concurrently. Return EAGAIN error from tcf_chain_tp_insert_unique() to restart tc_new_tfilter() and lookup the chain/proto again. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/nfsd')
0 files changed, 0 insertions, 0 deletions