From nobody Tue Feb 10 11:15:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1623854630; cv=none; d=zohomail.com; s=zohoarc; b=eDCju4xv743TZ+CllSRV0Za2EQovhs3vWcfid02AYUm1mfSyWCcJNv9x1CgiL+AdRrVKncP1qHLuZG8I1REzsRuIvQ8LXwsUQZn6xYmL1ULlWCvFBQv2Ub3lxbkjFRmCRqEKZVzNZxJ+vRFCQV1ySPTOgQ7uc0VUFGzIeEgEm8Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623854630; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=fKULMeUXfmVrCVmVDhYu2L9+CZLfHs4b31xT1ty4foo=; b=N7/sQVdHxIRaLTLaEyvoGkvciE7NmI5w2csGRkVMoMogUKbnaQs+y5F15hi0h+rt/37f4vV2f67+byCsXnilp4ZV8o5C/A9vWuOkFEnplgyGLzNUG2L66FbbsdvJRaoQh8+iJ4Sysjs3ZEqAw0tB6879qkQTFHD8nnnst5fSqds= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 162385463085812.66865217216241; Wed, 16 Jun 2021 07:43:50 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.143284.264163 (Exim 4.92) (envelope-from ) id 1ltWlU-0006Cl-Re; Wed, 16 Jun 2021 14:43:36 +0000 Received: by outflank-mailman (output) from mailman id 143284.264163; Wed, 16 Jun 2021 14:43:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltWlU-0006BQ-IP; Wed, 16 Jun 2021 14:43:36 +0000 Received: by outflank-mailman (input) for mailman id 143284; Wed, 16 Jun 2021 14:43:35 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltWlT-00064H-Qb for xen-devel@lists.xenproject.org; Wed, 16 Jun 2021 14:43:35 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltWlS-0004Do-Qy; Wed, 16 Jun 2021 14:43:34 +0000 Received: from 54-240-197-235.amazon.com ([54.240.197.235] helo=ufe34d9ed68d054.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWlS-0007D0-IH; Wed, 16 Jun 2021 14:43:34 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=fKULMeUXfmVrCVmVDhYu2L9+CZLfHs4b31xT1ty4foo=; b=KXkJfhVMqSRa/+S2GRnCjEDdU HWFmyaOk78Yma8CB6ovb7dkMDNwYuZNUYC8WEO7NDWzue6ckQuGp7+KdibTHe0f8Qfn0fJw0+nshB O8l4YNMeVVboKM1Epm8CzaK1REWCwGrqTDcaCGRLnDiGRWFXZXKfxkP9dKRlsPg8TROGk=; From: Julien Grall To: xen-devel@lists.xenproject.org Cc: raphning@amazon.co.uk, doebel@amazon.de, Julien Grall , Ian Jackson , Wei Liu , Juergen Gross , Julien Grall Subject: [PATCH 05/10] tools/xenstored: xenstored_core.h should include fcntl.h Date: Wed, 16 Jun 2021 15:43:19 +0100 Message-Id: <20210616144324.31652-6-julien@xen.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210616144324.31652-1-julien@xen.org> References: <20210616144324.31652-1-julien@xen.org> X-ZohoMail-DKIM: pass (identity @xen.org) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Julien Grall xenstored_core.h will consider live-udpate is not supported if O_CLOEXEC doesn't exist. However, the header doesn't include the one defining O_CLOEXEC (i.e. fcntl.h). This means that depending on the header included, some source file will think Live-Update is not supported. I am not aware of any issue with the existing. Therefore this is just a latent bug so far. Prevent any potential issue by including fcntl.h in xenstored_core.h Fixes: cd831ee438 ("tools/xenstore: handle CLOEXEC flag for local files and= pipes") Signed-off-by: Julien Grall Reviewed-by: Juergen Gross Reviewed-by: Luca Fancellu --- tools/xenstore/xenstored_core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xenstore/xenstored_core.h b/tools/xenstore/xenstored_cor= e.h index 34839b34f6e9..dac517156993 100644 --- a/tools/xenstore/xenstored_core.h +++ b/tools/xenstore/xenstored_core.h @@ -24,6 +24,7 @@ =20 #include #include +#include #include #include #include --=20 2.17.1