From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37132 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932539AbeCOXBE (ORCPT ); Thu, 15 Mar 2018 19:01:04 -0400 From: Davide Caratti To: Cong Wang , Jiri Pirko , "David S. Miller" Cc: Roman Mashak , Manish Kurup , netdev@vger.kernel.org Subject: [PATCH net 0/5] net/sched: fix NULL dereference in the error path of .init() Date: Fri, 16 Mar 2018 00:00:52 +0100 Message-Id: Sender: netdev-owner@vger.kernel.org List-ID: 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(-) -- 2.14.3