From mboxrd@z Thu Jan 1 00:00:00 1970 From: chas williams - CONTRACTOR Subject: Re: [PATCH v2 2/3] pppoatm: fix race condition with destroying of vcc Date: Thu, 1 Nov 2012 10:26:28 -0400 Message-ID: <20121101102628.6e3d3cae@thirdoffive.cmf.nrl.navy.mil> References: <1350926091-12642-2-git-send-email-krzysiek@podlesie.net> <201210301426.q9UEQkI7007209@thirdoffive.cmf.nrl.navy.mil> <20121030182001.GA30373@shrek.podlesie.net> <20121031094147.GA1004@shrek.podlesie.net> <20121031160352.68353ecc@thirdoffive.cmf.nrl.navy.mil> <20121031220435.GA25157@shrek.podlesie.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, dwmw2@infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Krzysztof Mazur Return-path: In-Reply-To: <20121031220435.GA25157@shrek.podlesie.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, 31 Oct 2012 23:04:35 +0100 Krzysztof Mazur wrote: > There are also some minor potential issues in pppoatm driver: > > - locking issues, but now only between pppoatm_send() and > vcc_sendmsg() and maybe some other functions, these have been around for a while. i agree that something should be done about it. just not sure what should be synchronizing this mess. > - missing check for SS_CONNECTED in pppoatm_ioctl, in practice you will never run into this because a pvc is immediately put into SS_CONNECTED mode (right before the userspace open() returns). however, should it check? yes. i dont see anything preventing you from running ppp on svc's.