Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754630AbbBTNw4 (ORCPT ); Fri, 20 Feb 2015 08:52:56 -0500 Received: from smtp.citrix.com ([66.165.176.89]:59433 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754022AbbBTNwz (ORCPT ); Fri, 20 Feb 2015 08:52:55 -0500 X-IronPort-AV: E=Sophos;i="5.09,614,1418083200"; d="scan'208";a="228393153" Message-ID: <54E73C34.6080901@citrix.com> Date: Fri, 20 Feb 2015 13:52:52 +0000 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-Version: 1.0 To: Juergen Gross , , , , , Subject: Re: [Xen-devel] [PATCH V2 1/3] xen: mark pvscsi frontend request consumed only after last read References: <1424156569-13642-1-git-send-email-jgross@suse.com> <1424156569-13642-2-git-send-email-jgross@suse.com> In-Reply-To: <1424156569-13642-2-git-send-email-jgross@suse.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 18 On 17/02/15 07:02, Juergen Gross wrote: > A request in the ring buffer mustn't be read after it has been marked > as consumed. Otherwise it might already have been reused by the > frontend without violating the ring protocol. > > To avoid inconsistencies in the backend only work on a private copy > of the request. This will ensure a malicious guest not being able to > bypass consistency checks of the backend by modifying an active > request. Applied to stable/for-linus-3.20 and tagged for stable, thanks. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/