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=-8.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 08D87C4727F for ; Tue, 29 Sep 2020 08:49:46 +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 7281B2067D for ; Tue, 29 Sep 2020 08:49:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="KDhO6IhG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7281B2067D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kNBKB-0001NX-6g; Tue, 29 Sep 2020 08:49:27 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kNBK9-0001NS-Ei for xen-devel@lists.xenproject.org; Tue, 29 Sep 2020 08:49:25 +0000 X-Inumbo-ID: 805d3371-ca81-4cca-864e-89111b8c210c Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 805d3371-ca81-4cca-864e-89111b8c210c; Tue, 29 Sep 2020 08:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=iG08JebPUihEMEo8XWFgiGnnHff003PLHKIbYZ9ghjU=; b=KDhO6IhGWNdadpqs6r8sBijxqM Fk8A3cXuQjU9Oi3gdqbez54tGa1mSElG5FFQ5B3X6n3Fy1CKl08mVEmUePPaxB9o0oYNkYiCPy6Wf ZDJuOqusLji56Vg8PoceBmDEO6Pgc5bWcDA/uWZyHmOGuRw4sJ01hPR8bcE9lihOhB/w=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kNBK5-0005KG-HJ; Tue, 29 Sep 2020 08:49:21 +0000 Received: from [54.239.6.186] (helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kNBK5-0007iY-4e; Tue, 29 Sep 2020 08:49:21 +0000 Subject: Re: [PATCH 01/12] evtchn: refuse EVTCHNOP_status for Xen-bound event channels To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Ian Jackson , Wei Liu , Stefano Stabellini References: <0d5ffc89-4b04-3e06-e950-f0cb171c7419@suse.com> From: Julien Grall Message-ID: <035484d6-4472-c8ec-bc65-756b94ff98b4@xen.org> Date: Tue, 29 Sep 2020 09:49:19 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi Jan, On 28/09/2020 11:56, Jan Beulich wrote: > Callers have no business knowing the state of the Xen end of an event > channel. > > Signed-off-by: Jan Beulich Acked-by: Julien Grall Cheers, > > --- a/xen/common/event_channel.c > +++ b/xen/common/event_channel.c > @@ -933,6 +933,11 @@ int evtchn_status(evtchn_status_t *statu > } > > chn = evtchn_from_port(d, port); > + if ( consumer_is_xen(chn) ) > + { > + rc = -EACCES; > + goto out; > + } > > rc = xsm_evtchn_status(XSM_TARGET, d, chn); > if ( rc ) > -- Julien Grall