Il 22.05.2015 14:08 Eric Dumazet ha scritto:
On Fri, 2015-05-22 at 04:58 -0500, Eric W. Biederman wrote:
ip_error does not check if in_dev is NULL before dereferencing it.
Therefore handle this weird case by just dropping the packet if
!in_dev. It will result in dropping the packet sooner, and will not
result in an actual change of behavior.
Fixes: 251da4130115b ("ipv4: Cache ip_error() routes even when not forwarding.")
Reported-by: "Vittorio G (VittGam)" <linuxb...@vittgam.net>
Tested-by: "Vittorio G (VittGam)" <linuxb...@vittgam.net>
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
Acked-by: Eric Dumazet <eduma...@google.com>
Thanks !
I've no problem using my real name here, so:
Reported-by: Vittorio Gambaletta <linuxb...@vittgam.net>
Tested-by: Vittorio Gambaletta <linuxb...@vittgam.net>
Signed-off-by: Vittorio Gambaletta <linuxb...@vittgam.net>
Signed-off too, since this is actually v2 of my patch with the warning removed.
Thanks!
Vittorio
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html