Thread (3 messages) flat view 3 messages, 3 authors, 2015-01-27

Re: [PATCH] ping: Fix race in free in receive path

From: Eric Dumazet <hidden>
Date: 2015-01-23 23:07:45

On Fri, 2015-01-23 at 22:26 +0000, subashab@codeaurora.org wrote:
An exception is seen in ICMP ping receive path where the skb
destructor sock_rfree() tries to access a freed socket. This happens
because ping_rcv() releases socket reference with sock_put() and this
internally frees up the socket. Later icmp_rcv() will try to free the
skb and as part of this, skb destructor is called and which leads
to a kernel panic as the socket is freed already in ping_rcv().
...
Signed-off-by: Subash Abhinov Kasiviswanathan <redacted>
Cc: Eric Dumazet <edumazet@google.com>
---
Thanks !

Signed-off-by: Eric Dumazet <edumazet@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help