Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1464852

Re: [PATCH] net: ipconfig: Fix more use after free

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] net: ipconfig: Fix more use after free
Date 2016-08-18 01:50 +0200
Message-ID <s7iKR-8h7-1@gated-at.bofh.it> (permalink)
References <s6NQK-4jo-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Thierry Reding <thierry.reding@gmail.com>
Date: Tue, 16 Aug 2016 16:45:38 +0200

> From: Thierry Reding <treding@nvidia.com>
> 
> While commit 9c706a49d660 ("net: ipconfig: fix use after free") avoids
> the use after free, the resulting code still ends up calling both the
> ic_setup_if() and ic_setup_routes() after calling ic_close_devs(), and
> access to the device is still required.
> 
> Move the call to ic_close_devs() to the very end of the function.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> This applies on top of next-20160816.

Applied, thanks.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] net: ipconfig: Fix more use after free Thierry Reding <thierry.reding@gmail.com> - 2016-08-16 16:50 +0200
  Re: [PATCH] net: ipconfig: Fix more use after free David Miller <davem@davemloft.net> - 2016-08-18 01:50 +0200

csiph-web