From: Ian Jackson Subject: Re: [PATCH RFC] libxc: Protect xc_domain_resume from clobbering domain registers Date: Mon, 19 May 2014 12:35:12 +0100 Message-ID: <21369.60528.191493.678550@mariner.uk.xensource.com> References: <1400342483-18476-1-git-send-email-andryuk@aero.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400342483-18476-1-git-send-email-andryuk@aero.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jason Andryuk Cc: Stefano Stabellini , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Jason Andryuk writes ("[PATCH RFC] libxc: Protect xc_domain_resume from clobbering domain registers"): > xc_domain_resume() expects the guest to be in state SHUTDOWN_suspend. > However, nothing verifies the state before modify_returncode() modifies > the domain's registers. This will crash guest processes or the kernel > itself. I think this patch is a step in the right direction and would have applied it if you hadn't tagged it "RFC". Thanks, Ian.