From: David Miller <davem@davemloft.net>
To: vincent.stehle@laposte.net
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jiri@mellanox.com
Subject: Re: [PATCH] mlxsw: spectrum_router: Fix use after free
Date: Sun, 14 Aug 2016 21:33:15 -0700 (PDT) [thread overview]
Message-ID: <20160814.213315.1476217194881057932.davem@davemloft.net> (raw)
In-Reply-To: <1471181909-22187-1-git-send-email-vincent.stehle@laposte.net>
From: Vincent Stehlé <vincent.stehle@laposte.net>
Date: Sun, 14 Aug 2016 15:38:29 +0200
> In mlxsw_sp_router_fib4_add_info_destroy(), the fib_entry pointer is used
> after it has been freed by mlxsw_sp_fib_entry_destroy(). Use a temporary
> variable to fix this.
>
> Fixes: 61c503f976b5449e ("mlxsw: spectrum_router: Implement fib4 add/del switchdev obj ops")
> Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
> Cc: Jiri Pirko <jiri@mellanox.com>
Applied.
prev parent reply other threads:[~2016-08-15 4:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-14 13:38 [PATCH] mlxsw: spectrum_router: Fix use after free Vincent Stehlé
2016-08-14 15:49 ` Ido Schimmel
2016-08-15 4:33 ` David Miller [this message]
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=20160814.213315.1476217194881057932.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jiri@mellanox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vincent.stehle@laposte.net \
/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).