[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121207.121429.1891539902462905192.davem@davemloft.net>
Date: Fri, 07 Dec 2012 12:14:29 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: caiqian@...hat.com
Cc: netdev@...r.kernel.org, ncardwell@...gle.com
Subject: Re: [PATCH stable] ipv4: avoid passing NULL to inet_putpeer() in
icmpv4_xrlim_allow()
From: CAI Qian <caiqian@...hat.com>
Date: Fri, 7 Dec 2012 10:46:40 -0500 (EST)
> David, this patch looks applicable for the stable releases.
>
> From Neal Cardwell <ncardwell@...gle.com>
>
> inet_getpeer_v4() can return NULL under OOM conditions, and while
> inet_peer_xrlim_allow() is OK with a NULL peer, inet_putpeer() will
> crash.
>
> This code path now uses the same idiom as the others from:
> 1d861aa4b3fb08822055345f480850205ffe6170 ("inet: Minimize use of
> cached route inetpeer.").
>
> Signed-off-by: Neal Cardwell <ncardwell@...gle.com>
> Signed-off-by: David S. Miller <davem@...emloft.net>
>
> Upstream-ID: e1a676424c290b1c8d757e3860170ac7ecd89af4
> Stable-trees: 3.6.x
> Signed-off-by: CAI Qian <caiqian@...hat.com>
Please stop submitting networking -stable changes.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists