summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_device.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-04-13 19:35:42 +0200
committerJakub Kicinski <kuba@kernel.org>2022-04-15 23:26:11 +0200
commitec5b0f605b105457f257f2870acad4a5d463984b (patch)
treec6bc22db7a85cf9dd8db4918bb9143a9f8eeb93c /net/xfrm/xfrm_device.c
parentnet/sched: cls_u32: fix netns refcount changes in u32_change() (diff)
downloadlinux-ec5b0f605b105457f257f2870acad4a5d463984b.tar.xz
linux-ec5b0f605b105457f257f2870acad4a5d463984b.zip
net/sched: cls_u32: fix possible leak in u32_init_knode()
While investigating a related syzbot report, I found that whenever call to tcf_exts_init() from u32_init_knode() is failing, we end up with an elevated refcount on ht->refcnt To avoid that, only increase the refcount after all possible errors have been evaluated. Fixes: b9a24bb76bf6 ("net_sched: properly handle failure case of tcf_exts_init()") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Cong Wang <xiyou.wangcong@gmail.com> Cc: Jiri Pirko <jiri@resnulli.us> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/xfrm/xfrm_device.c')
0 files changed, 0 insertions, 0 deletions