net: sched: do not allocate a tracker in tcf_exts_init()
authorEric Dumazet <edumazet@google.com>
Mon, 10 Jan 2022 09:47:50 +0000 (01:47 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jan 2022 04:40:16 +0000 (20:40 -0800)
commitcb963a19d99fc42d9abf4238968ef85fcc2ef3e3
tree9da1ee6289e9e4ed831e5433c1bbd278475d9a72
parent29b3881b7977db792f93ebe440423811d5cfee56
net: sched: do not allocate a tracker in tcf_exts_init()

While struct tcf_exts has a net pointer, it is not refcounted
until tcf_exts_get_net() is called.

Fixes: dbdcda634ce3 ("net: sched: add netns refcount tracker to struct tcf_exts")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Link: https://lore.kernel.org/r/20220110094750.236478-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/pkt_cls.h