From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 7A680C433E0 for ; Mon, 22 Feb 2021 15:09:01 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 0809364DF0 for ; Mon, 22 Feb 2021 15:09:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0809364DF0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lECpX-0005rr-QN for qemu-devel@archiver.kernel.org; Mon, 22 Feb 2021 10:08:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lECjc-00081n-O5 for qemu-devel@nongnu.org; Mon, 22 Feb 2021 10:02:55 -0500 Received: from mout.gmx.net ([212.227.17.20]:37607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lECjW-0004ug-Eg for qemu-devel@nongnu.org; Mon, 22 Feb 2021 10:02:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1614006145; bh=E7G8vYdSgFhiAcWn4whZpbzoBhXqlAFslgqc830M2NA=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=QkTuVqc62Y+64ltN7RI2I2uXZJBe/euYLnc7GhoDuJVCrRGEIjJkA7zRbic7Gawk9 cVOFcEgscLhiJllG7l8TlcMTEa/a1B/E21TOsQ4a6yDIaWfxsd0b0P2BC1lo5OJ2WJ gcONI/qNnO7AZCR5nWtdd2whuBc7fSeavIZGhivk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.169.144]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVvLB-1lNn081mZp-00RqpA; Mon, 22 Feb 2021 16:02:25 +0100 Subject: Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag To: Michael Tokarev , John Paul Adrian Glaubitz , Laurent Vivier , qemu-devel@nongnu.org References: <20210222105004.1642234-1-laurent@vivier.eu> <0ee2b107-1533-3098-9797-040633964300@physik.fu-berlin.de> <09fefe8c-c3bb-1303-9e85-d207c6ec4ffc@msgid.tls.msk.ru> <1f1c6fa9-a9cc-b169-1c9a-57008752efb4@physik.fu-berlin.de> <644a53ea-852e-b60c-973d-10e37096d99e@msgid.tls.msk.ru> From: Helge Deller Message-ID: Date: Mon, 22 Feb 2021 16:02:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <644a53ea-852e-b60c-973d-10e37096d99e@msgid.tls.msk.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: qu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G4SmARvdDJJReK6VaJ0FQS2T0vQ wisg3ZbQjQKr9OAV4rKvyFYEaYuxSIQj3uGZyEdamKZYu9DoryiDvHHKPc4P2JdEZIrosvp8l tbMAbgFzfjVg+S2VB6bA== Received-SPF: pass client-ip=212.227.17.20; envelope-from=deller@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 2/22/21 3:58 PM, Michael Tokarev wrote: > 22.02.2021 17:54, John Paul Adrian Glaubitz wrote: > >> OK, gotcha. Is it supposed to work with systemd-binfmt? It looks like i= t depends >> on the old binfmt-support package. > > the qemu 4-line patch does not depend on any particular system, it relie= s on a > special name of its own argv[0] when registering the binfmt entry.=C2=A0= In order to > utilize it, we create a special-named symlink to qemu-foo and register t= hat one > with the binfmt-misc subsystem, no matter if it is systemd or binfmt-sup= port or > whatever else. ... which is pretty hackish (although it apparently works; I haven't teste= d myself). The big question remains: Is this "hack" just a temporary workaround which should be kept, or is the support via the kernel-patch from Laurent the long-term and better = solution? Helge