net/sched: fix NULL dereference in the error path of .init()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net/sched: fix NULL dereference in the error path of tcf_vlan_init()net/ | +2 | 0 replies | |
| 2/5 | net/sched: fix NULL dereference in the error path of tcf_csum_init()net/ | +2 | 1 reply | |
| 3/5 | net/sched: fix NULL dereference in the error path of tunnel_key_init()net/ | +5 | 1 reply | |
| 4/5 | net/sched: fix NULL dereference in the error path of tcf_sample_init()net/ | +2 | 1 reply | |
| 5/5 | net/sched: fix NULL dereference on the error path of tcf_skbmod_init()net/ | +2 | 1 reply |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Pirko | Manish Kurup |
|---|---|---|
| 1/5 | A-b | A-b |
| 2/5 | A-b | |
| 3/5 | A-b | |
| 4/5 | A-b | |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/5] net/sched: fix NULL dereference in the error path of .init()
with several TC actions it's possible to see NULL pointer dereference, when the .init() function calls tcf_idr_alloc(), fails at some point and then calls tcf_idr_release(): this series fixes all them introducing non-NULL tests in the .cleanup() function.
Davide Caratti (5):
net/sched: fix NULL dereference in the error path of tcf_vlan_init() net/sched: fix NULL dereference in the error path of tcf_csum_init() net/sched: fix NULL dereference in the error path of tunnel_key_init() net/sched: fix NULL dereference in the error path of tcf_sample_init() net/sched: fix NULL dereference on the error path of tcf_skbmod_init()
net/sched/act_csum.c | 3 ++- net/sched/act_sample.c | 3 ++- net/sched/act_skbmod.c | 3 ++- net/sched/act_tunnel_key.c | 9 +++++---- net/sched/act_vlan.c | 3 ++- 5 files changed, 13 insertions(+), 8 deletions(-)
Signature · 1 line
2.14.3