Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52583C63697 for ; Wed, 18 Nov 2020 12:09:32 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CEEFE2463B for ; Wed, 18 Nov 2020 12:09:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="llr7NXcV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CEEFE2463B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.29769.59410 (Exim 4.92) (envelope-from ) id 1kfMGv-00064m-BK; Wed, 18 Nov 2020 12:09:13 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 29769.59410; Wed, 18 Nov 2020 12:09:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfMGv-00064f-6q; Wed, 18 Nov 2020 12:09:13 +0000 Received: by outflank-mailman (input) for mailman id 29769; Wed, 18 Nov 2020 12:09:12 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfMGu-00064a-Iu for xen-devel@lists.xenproject.org; Wed, 18 Nov 2020 12:09:12 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 8d7db6a5-d020-445b-af43-8a626f7669df; Wed, 18 Nov 2020 12:09:11 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5FA3EAC65; Wed, 18 Nov 2020 12:09:10 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfMGu-00064a-Iu for xen-devel@lists.xenproject.org; Wed, 18 Nov 2020 12:09:12 +0000 X-Inumbo-ID: 8d7db6a5-d020-445b-af43-8a626f7669df Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 8d7db6a5-d020-445b-af43-8a626f7669df; Wed, 18 Nov 2020 12:09:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1605701350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B51N5t6CHg+x5iuz3QWjnqchcxRlQVlx4OBPL4gazGc=; b=llr7NXcVyRgqVtQcm2FshdvgsHxfoy2tGdyVXfXiSt0MJ7OqW4xumC9Ym0Jz7+T0/m6P3M 1rvj6qQ6LlXHJP4PsYW6momNLsdMhAFkQfzdFByTGPHk8XoDErHi9C7OkDL72yXACW+T55 nykyOs3vDpClCLro2t7QULQhtUt5mKk= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5FA3EAC65; Wed, 18 Nov 2020 12:09:10 +0000 (UTC) Subject: Re: [PATCH v6 0/3] XSA-343 followup patches To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Cc: Andrew Cooper , George Dunlap , Ian Jackson , Stefano Stabellini , Wei Liu , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Daniel De Graaf , "committers@xenproject.org" , xen-devel@lists.xenproject.org, Julien Grall References: <20201109163826.13035-1-jgross@suse.com> <1b54d0bb-deab-f4bd-b773-67a716a1fde1@suse.com> <4cb2e205-49e2-7dc6-9ae6-39e5335d5a66@suse.com> From: Jan Beulich Message-ID: <4c6009de-148e-fd06-7890-fb9b6d4ff7a8@suse.com> Date: Wed, 18 Nov 2020 13:09:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <4cb2e205-49e2-7dc6-9ae6-39e5335d5a66@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 18.11.2020 09:41, Jürgen Groß wrote: > On 18.11.20 09:22, Jan Beulich wrote: >> On 17.11.2020 19:13, Julien Grall wrote: >>> On 09/11/2020 16:38, Juergen Gross wrote: >>>> Juergen Gross (3): >>>> xen/events: access last_priority and last_vcpu_id together >>>> xen/evtchn: rework per event channel lock >>>> xen/evtchn: revert 52e1fc47abc3a0123 >>> >>> While looking at the list of commits, I noticed that the first patch >>> hasn't been committed. They were all acked/reviewed, so I am a bit >>> puzzled why this was omitted... >>> >>> I have nearly missed as I was expecting the 3 patches to be committed >>> together. May I suggest that in the future we reply to the cover letter >>> and mention which patches are (or not) committed? >>> >>> Regarding patch #1, I will commit it tomorrow unless there are strong >>> objections against. >> >> Without a clear outline of what would break with the present logic, >> I had previously indicated I'm not convinced of the change. This >> isn't a strong objection, no, but I still wouldn't want to see my >> name associated with it in such a case. Furthermore I clearly view >> this as not a backporting candidate, while the other two are (as I >> did previously indicate). Hence the latter two patches wanted >> re-basing ahead of the first one anyway, to ease the backports. > > Consider an NMI during evtchn_fifo_set_pending() between updating > last_vcpu_id and last_priority, while on another cpu a concurrent > evtchn_fifo_set_pending() is being called. On that other cpu > lock_old_queue() might return a wrong queue as it will read only > the new last_vcpu_id, but not the new last_priority value. Which has become possible only as of patch 2 of this series, i.e. this one really was a prereq without its description making this clear. Now that it'll go in on top of the other two, there's no strict need to change the description anymore, though. But I take from this that I should also queue it up for backporting then. Jan