Re: [PATCH v3 5/7] pppoatm: take ATM socket lock in pppoatm_send()

2012-11-06 Thread Woodhouse, David
On Tue, 2012-11-06 at 23:17 +0100, Krzysztof Mazur wrote: > + if (sock_owned_by_user(sk_atm(vcc))) > + goto nospace; I still think this one can lead to an infinite stall of the PPP channel, because we return 0 from pppoatm_send() but never make a later call to ppp_output_wakeup

[PATCH v3 5/7] pppoatm: take ATM socket lock in pppoatm_send()

2012-11-06 Thread Krzysztof Mazur
The pppoatm_send() does not take any lock that will prevent concurrent vcc_sendmsg(). This causes two problems: - there is no locking between checking the send queue size with atm_may_send() and incrementing sk_wmem_alloc, and the real queue size can be a little higher