[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100611.183924.45886086.davem@davemloft.net>
Date: Fri, 11 Jun 2010 18:39:24 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] econet: fix locking
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 10 Jun 2010 04:33:05 +0200
> econet lacks proper locking. It holds econet_lock only when inserting or
> deleting an entry in econet_sklist, not during lookups.
>
> - convert econet_lock from rwlock to spinlock
>
> - use econet_lock in ec_listening_socket() lookup
>
> - use appropriate sock_hold() / sock_put() to avoid corruptions.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks.
--
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