From: Davide Caratti <dcaratti@redhat.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: Cong Wang <xiyou.wangcong@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, Manish Kurup <kurup.manish@gmail.com>,
Roman Mashak <mrv@mojatatu.com>
Subject: Re: [PATCH net] net/sched: fix NULL dereference in the error path of tcf_vlan_init()
Date: Thu, 15 Mar 2018 23:21:12 +0100 [thread overview]
Message-ID: <1521152472.2666.8.camel@redhat.com> (raw)
In-Reply-To: <1521124149.2797.11.camel@redhat.com>
On Thu, 2018-03-15 at 15:29 +0100, Davide Caratti wrote:
> On Thu, 2018-03-15 at 15:21 +0100, Jiri Pirko wrote:
> ...
>
> > Acked-by: Jiri Pirko <jiri@mellanox.com>
>
> thank you for reviewing!
>
> apparently, also act_tunnel_key seem and act_csum have a similar problem.
> I will check and eventually do a followup series this afternoon.
>
> thank you,
> regards
hello David,
please drop this patch: after some tests, the following TC actions are
affected by the same problem:
act_vlan
act_csum
act_tunnel_key
act_skbmod
act_sample
so, I'm posting right now a series that fixes all of them.
In act_ife and act_bpf, the problem is potentially there, but we don't see
it crashing yet because we don't call tcf_idr_release() on the error
path.
This is causing the leak of 'index', and will be fixed in another series
tomorrow.
thank you in advance,
regards
--
davide
next prev parent reply other threads:[~2018-03-15 22:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 14:06 [PATCH net] net/sched: fix NULL dereference in the error path of tcf_vlan_init() Davide Caratti
2018-03-15 14:21 ` Jiri Pirko
2018-03-15 14:29 ` Davide Caratti
2018-03-15 22:21 ` Davide Caratti [this message]
2018-03-15 14:28 ` Roman Mashak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1521152472.2666.8.camel@redhat.com \
--to=dcaratti@redhat.com \
--cc=davem@davemloft.net \
--cc=jiri@resnulli.us \
--cc=kurup.manish@gmail.com \
--cc=mrv@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).