Eric Dumazet
ec5b0f605b
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>
2022-04-15 14:26:11 -07:00
..
2022-03-02 22:16:10 -08:00
2022-03-03 14:38:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2022-03-26 17:00:51 -07:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:47 +00:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2022-02-28 11:11:35 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2022-03-16 19:59:36 -07:00
2022-04-08 14:45:43 -07:00
2021-08-02 10:24:38 +01:00
2022-03-03 14:38:48 +00:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2022-04-08 12:07:37 +01:00
2021-08-02 10:24:38 +01:00
2021-12-19 14:08:48 +00:00
2021-08-02 10:24:38 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2022-04-15 14:26:11 -07:00
2020-07-13 17:20:40 -07:00
2020-11-10 17:00:28 -08:00
2020-07-03 14:34:53 -07:00
2020-07-03 14:34:53 -07:00
2021-10-27 18:20:29 -07:00
2021-02-06 11:15:28 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-31 22:44:56 -07:00
2020-12-09 15:49:29 -08:00
2020-11-27 14:36:02 -08:00
2022-02-14 13:36:36 +00:00
2021-10-18 12:54:41 +01:00
2020-07-16 16:48:34 -07:00
2022-01-07 08:41:29 -08:00
2021-10-18 12:54:41 +01:00
2020-11-23 17:27:04 -08:00
2021-03-10 15:47:52 -08:00
2020-07-16 16:48:34 -07:00
2021-10-18 12:54:41 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-12-13 12:30:23 +00:00
2021-10-01 14:59:10 -07:00
2021-10-20 15:24:36 -07:00
2021-12-09 08:01:00 -08:00
2020-07-16 16:48:34 -07:00
2021-12-31 14:35:40 +00:00
2022-02-14 13:36:36 +00:00
2021-10-27 12:06:52 -07:00
2021-10-18 12:54:41 +01:00
2020-07-16 16:48:34 -07:00
2022-01-25 20:00:02 -08:00
2020-02-19 17:49:48 -08:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-11-15 13:23:23 +00:00
2020-11-10 17:00:28 -08:00
2020-07-16 16:48:34 -07:00
2021-10-18 12:54:41 +01:00
2022-01-04 12:36:51 +00:00
2021-03-10 15:47:52 -08:00
2021-07-29 22:17:37 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2022-04-11 10:51:00 +01:00
2021-10-19 12:24:51 +01:00
2021-04-08 14:14:42 -07:00