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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 AC8B5C433E0 for ; Mon, 22 Feb 2021 12:23:14 +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 1961A64E44 for ; Mon, 22 Feb 2021 12:23:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1961A64E44 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=vivier.eu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEAF6-0007Yn-Tg for qemu-devel@archiver.kernel.org; Mon, 22 Feb 2021 07:23:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEADt-0006ih-TC for qemu-devel@nongnu.org; Mon, 22 Feb 2021 07:21:57 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:47317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEADs-0002So-2g for qemu-devel@nongnu.org; Mon, 22 Feb 2021 07:21:57 -0500 Received: from [192.168.100.1] ([82.252.134.158]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.103]) with ESMTPSA (Nemesis) id 1MIdS1-1l1m9l2jIr-00Ecds; Mon, 22 Feb 2021 13:21:36 +0100 Subject: Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag To: John Paul Adrian Glaubitz , qemu-devel@nongnu.org References: <20210222105004.1642234-1-laurent@vivier.eu> <0ee2b107-1533-3098-9797-040633964300@physik.fu-berlin.de> From: Laurent Vivier Message-ID: <2869185a-df62-4b28-5e73-57a21c72e5ea@vivier.eu> Date: Mon, 22 Feb 2021 13:21:35 +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: <0ee2b107-1533-3098-9797-040633964300@physik.fu-berlin.de> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:h+rGY52m57m0AtPFQwoYFQ4lAUI2gFQnXGrvh6hUVhIeydkxgRy JlXY1pthfh0wnVdeMT7dL0saxsQjQx304nn4UaC5bje/nXlKzmYcNesLzdEhxujMgJjA1wU a6AuZhfZx8ttHzyQ+zsmuojDOo5lMzlGqBeJhFQF5CXTjYWG9HGwirJyP1kJ6ZRuxhoYzgw VpXHWpW5fBB4CpKEB9Hgw== X-UI-Out-Filterresults: notjunk:1;V03:K0:MZYkTiGI1F4=:Mw7ubzTBx24rTSsj9sJAL5 e7mv10hdVHEfoESj6+PsIm6NjjFCgC0Ii+44IuQPsOLzj4dywT3LW3T8wIaKKICAYtL2UYilt rMygP6i+BvJlAwyY1O8HK3STzulW9MkOhdP+Dp0LhzqVfjCtzjrM0QimQBo3Oiugz+Hc6UiVG B2A04Nhj/L5K8r1cxv6Vtrk7n9Juq6Fh3nvNHGcYJRTh6DmV6UomQcVvLyNXCdNReb+aA8Cwb 8IeeJGGD4/QEiRMLPRbdmtl7c8d5vmNcDoz+7JxNFe0P83pHXay6jphg5IxnIl6QYrmCR1Wna rIbNATbU05pEaDYpIwydvnm5KCFwfyCehhKapPHwyF63Tt+pT4zVathlL6lJZhnlSPjsv9TOg Ea5JMMXWH1XHkc0DICumcI1YVSC1Y3CdpSmBE/gyVQkYbMQ0+u9VFzg+YNArB Received-SPF: none client-ip=212.227.126.131; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: Helge Deller , Michael Tokarev Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Le 22/02/2021 à 11:58, John Paul Adrian Glaubitz a écrit : > Hi Laurent! > > On 2/22/21 11:50 AM, Laurent Vivier wrote: >> Add --preserve-argv0 in qemu-binfmt-conf.sh to configure the preserve-argv0 >> flag. >> >> This patch allows to use new flag in AT_FLAGS to detect if >> preserve-argv0 is configured for this interpreter: >> argv[0] (the full pathname provided by binfmt-misc) is removed and >> replaced by argv[1] (the original argv[0] provided by binfmt-misc when >> 'P'/preserve-arg[0] is set) > > Would this patch finally fix the issue with the perl package in Debian? [1] I think so. Helge can confirm that I guess. But you need the kernel support (the one merged by Helge) as described in the patch message. 2347961b11d4 ("binfmt_misc: pass binfmt_misc flags to the interpreter") > Adrian > >> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974004 > Thanks, Laurent