Message ID | 20190311135850.6537-3-i.maximets@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB76314DE for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 11 Mar 2019 14:06:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7F8A29106 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 11 Mar 2019 14:06:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC46929115; Mon, 11 Mar 2019 14:06:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 67CF729106 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 11 Mar 2019 14:06:43 +0000 (UTC) Received: from localhost ([127.0.0.1]:34121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1h3LZi-0005R1-ML for patchwork-qemu-devel@patchwork.kernel.org; Mon, 11 Mar 2019 10:06:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <i.maximets@samsung.com>) id 1h3LSf-00004s-C1 for qemu-devel@nongnu.org; Mon, 11 Mar 2019 09:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <i.maximets@samsung.com>) id 1h3LSd-0000UZ-Sf for qemu-devel@nongnu.org; Mon, 11 Mar 2019 09:59:24 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46885) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <i.maximets@samsung.com>) id 1h3LSd-0000Tp-K7 for qemu-devel@nongnu.org; Mon, 11 Mar 2019 09:59:23 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190311135920euoutp01da8fa0ffdf62aa7431f41a385f0a6dff~K7DtEAwTp1023410234euoutp01S for <qemu-devel@nongnu.org>; Mon, 11 Mar 2019 13:59:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190311135920euoutp01da8fa0ffdf62aa7431f41a385f0a6dff~K7DtEAwTp1023410234euoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1552312760; bh=GEubV4Xl2+w4QqD4xxZ2I4ZswHS5mSjjUIfJbjJnB+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QSvkkXgp5f3u85YeaFBxm+hTYeItIoBaLC3REOOgU5SIjaBkyr93JwsjPfgz/edbs OQCfWLzjL9WG8a99KuYgOSCYCexOIFEPEcTWI7r2F6/ehX9ayq7gJUqWCjJE2j17ss RXX+2dPpg8nIi3qDI6Z4EEIWrGo78BHIDNdrTIP8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190311135920eucas1p1596093e2e687e972acedd04c20aabb0e~K7DskxsP31391413914eucas1p1v; Mon, 11 Mar 2019 13:59:20 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 3D.17.04441.8B9668C5; Mon, 11 Mar 2019 13:59:20 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190311135919eucas1p11c7fad66884a0303b2637cd2d2b05cad~K7Dr1eugh2584425844eucas1p1F; Mon, 11 Mar 2019 13:59:19 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190311135919eusmtrp286389f8703aa5847567096006271cab5~K7DrnaeTE3045230452eusmtrp2e; Mon, 11 Mar 2019 13:59:19 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-cc-5c8669b88fb0 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F7.44.04284.7B9668C5; Mon, 11 Mar 2019 13:59:19 +0000 (GMT) Received: from imaximets.rnd.samsung.ru (unknown [106.109.129.180]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190311135918eusmtip12b7960c74e1a0eab3e0bdb128877b982~K7DrBdume1044510445eusmtip1D; Mon, 11 Mar 2019 13:59:18 +0000 (GMT) From: Ilya Maximets <i.maximets@samsung.com> To: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>, Eduardo Habkost <ehabkost@redhat.com> Date: Mon, 11 Mar 2019 16:58:48 +0300 Message-Id: <20190311135850.6537-3-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190311135850.6537-1-i.maximets@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKKsWRmVeSWpSXmKPExsWy7djP87o7MttiDJqeMFm8ebOGyaLhXqjF lfaf7Banj3YwWzy7dZLZYkFbO6vF/m3/WC2O9+5gceDweHJtM5PH+31X2Tz6tqxiDGCO4rJJ Sc3JLEst0rdL4MpY1d/BV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LrBC2sMSfa11s EEXfGCVuXfvDCJJgE9CROLX6CJgtIpAvsaGxkRmkiFngJ6PEi5vb2EASwgLWEr//tINNZRFQ leh6O48ZZDOvgJXE/eZCiAXyEqs3HGAGsTmByid2PAIrFwIq6dy3HczmFRCUODnzCdjRzALq EuvnCYGEmYFam7fOZp7AKDgLSdUshKpZSKoWMDKvYhRJLS3OTc8tNtQrTswtLs1L10vOz93E CIyabcd+bt7BeGlj8CFGAQ5GJR5ejsTWGCHWxLLiytxDjBIczEoivDvd2mKEeFMSK6tSi/Lj i0pzUosPMZoCfTaRWUo0OR8Y0Xkl8YamhuYWlobmxubGZhZK4rznDSqjhATSE0tSs1NTC1KL YPqYODilGhgldH307P4Xlp8xfH7x4ekjDROnsGSEfvnTvT5Gcdemdj4PYcPbimGsC67OOCez MDX5hXCRLx+LjZ3T8Vn8d/vVrLkKLCxu/vpeb+d9fonqqboO//PTTotpqcbWn7Bqd2NIZej4 bLhzv+Anyc/3nj4JnvP9UmBvSGL+4ld2R9X2d6y9z13/Zp0SS3FGoqEWc1FxIgCFU5CXsAIA AA== X-CMS-MailID: 20190311135919eucas1p11c7fad66884a0303b2637cd2d2b05cad X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190311135919eucas1p11c7fad66884a0303b2637cd2d2b05cad X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190311135919eucas1p11c7fad66884a0303b2637cd2d2b05cad References: <20190311135850.6537-1-i.maximets@samsung.com> <CGME20190311135919eucas1p11c7fad66884a0303b2637cd2d2b05cad@eucas1p1.samsung.com> Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 210.118.77.11 Subject: [Qemu-devel] [PATCH v3 2/4] memfd: always check for MFD_CLOEXEC X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ilya Maximets <i.maximets@samsung.com>, Paolo Bonzini <pbonzini@redhat.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
memfd fixes.
|
expand
|
diff --git a/util/memfd.c b/util/memfd.c index 8debd0d037..d74ce4d793 100644 --- a/util/memfd.c +++ b/util/memfd.c @@ -188,7 +188,7 @@ bool qemu_memfd_alloc_check(void) bool qemu_memfd_check(unsigned int flags) { #ifdef CONFIG_LINUX - int mfd = memfd_create("test", flags); + int mfd = memfd_create("test", flags | MFD_CLOEXEC); if (mfd >= 0) { close(mfd);