[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1345489533.5158.354.camel@edumazet-glaptop>
Date: Mon, 20 Aug 2012 21:05:33 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Pavel Emelyanov <xemul@...allels.com>
Cc: David Miller <davem@...emloft.net>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] packet: Protect packet sk list with mutex
On Mon, 2012-08-20 at 22:10 +0400, Pavel Emelyanov wrote:
> AFAIU now this is the case for e.g. TCP sockets since they can be created in
> rx code. For packet I've found no places where these stats can be modified other
> than those two in af_packet.c
sock_prot_inuse_add() uses __this_cpu_add(), and on non x86, needs to be
safe against preemption ( or irq if applicable)
Changing spin_lock_bh() to mutex_lock() breaks this.
--
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