From: Ian Jackson Subject: Re: [PATCH] xenconsole: merge pty access check into when it is opened [and 1 more messages] Date: Fri, 13 Dec 2013 17:01:12 +0000 Message-ID: <21163.15704.53104.985508@mariner.uk.xensource.com> References: <529BC659.8010602@citrix.com> <1385952098-30095-1-git-send-email-mattd@bugfuzz.com> <1385782972-22793-1-git-send-email-mattd@bugfuzz.com> <529B2086.1080804@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <529BC659.8010602@citrix.com>, List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matthew Daley , Andrew Cooper Cc: Stefano Stabellini , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("Re: [Xen-devel] [PATCH] xenconsole: merge pty access check into when it is opened"): > Even as the patch currently stands, the behaviour of the loop has > changed. Before, it would eat any error from access(), and only die in > the toctou case where open() subsequently failed. I concur, and v2 of the patch does the same. This is probably correct as Andrew and I discussed. But the deliberate (or, at least, probably-desirable) behaviour change is not reflected in the commit message which only discusses removing the race and saving a leak. Matthew Daley writes ("Re: [PATCH v2] xenconsole: merge pty access check into when it is opened"): > Pingy ping? Sorry for not making this clear sooner, but: I think this patch is a bugfix and should go into 4.4 so I am happy to apply it but the commit message should be improved. Would you like to do that ? Thanks, Ian.