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=-0.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 321D1C3A5A0 for ; Mon, 19 Aug 2019 13:46:55 +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 EFA352082C for ; Mon, 19 Aug 2019 13:46:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Sg6eK/Iz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EFA352082C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzhzq-0003U1-4V for qemu-devel@archiver.kernel.org; Mon, 19 Aug 2019 09:46:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57435) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzhxk-00022B-Pg for qemu-devel@nongnu.org; Mon, 19 Aug 2019 09:44:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzhxj-00035C-Cz for qemu-devel@nongnu.org; Mon, 19 Aug 2019 09:44:44 -0400 Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342]:37457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzhxf-00033k-LS for qemu-devel@nongnu.org; Mon, 19 Aug 2019 09:44:41 -0400 Received: by mail-ot1-x342.google.com with SMTP id f17so1686856otq.4 for ; Mon, 19 Aug 2019 06:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6uJF5gDNNu5c9ZJah7h0FveRrT0hnvbRq5dEZGNIb8Q=; b=Sg6eK/IzWHIVlF2TPlyrqJ2Qac2cktnmxaK1C7SNLA/TvpMnj4FwPyi8iwLByySmTs K9gnvyFl51t4NaQuvI16q7vrn9LMmLr5dm9/GUXpRzSO0H9ncnRE6VF/3a80HgMNgvJO vqcWRkT7JurNtjWX3A44dCXKWoQfedW/4rDk/QqFpV7MIxlq8CdNn6UcyPGdN86M8gdM cmzcnfCRE7h1Zubhk5rbo8MO4Mm0dFSXFw61n0NWZVQo/2/ML7O4B393mpOvfpnwc9Xk yRJUIUCD0DL3alnSomfsMl+KkImcAJbAnOAUeJBefSUNTGzjnXY5adanJErQbKvLFV1v jSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6uJF5gDNNu5c9ZJah7h0FveRrT0hnvbRq5dEZGNIb8Q=; b=JJx5eMc6iF76JkUNKETWFva6VOtrxAMtYGPVMpakW4dwWXOzFcgLUkDwg9fHPhr0aX +ywnckQNYD43KDLTgrc4FTYaiLTHuwpO29FWl3a9Ctcuw1CFSMUPhkoXHjWvc0vilYWz 0oDl/zh2lTQaEcZrig17t1ScCN8I1opEgtw+C9Q7StIv+sktnLCrfrbSR3GG6k/YqPl3 oakcU5BrOqubEDgAPo9f7qGCdWDixKnwLJN5wV36dZ1mJF78IEipMIA7NPrTSz+THwn4 JMHUsBg5KdLcToi7OaTzeNke/pb31rMzaait/mVyOHB4inCugGr54QL7JJj/sAQiToef nnxg== X-Gm-Message-State: APjAAAX94YHmNG/RxBtwOFB5oQA/hwJYl/lXV9hfG5v7Ch1mBz/TVlwl e0Nvk1GDgt0bLjOPslMMiMr03vbyMoF4iaZ4nINl1A== X-Google-Smtp-Source: APXvYqz/eRxkWgkEfytQXXb/ohJMOYdZIMCxeASwGzop9xwlkbLDxyjK49nVN1GhOSA+kBSuswajA9oCp+KAdeF0Xoo= X-Received: by 2002:a05:6830:2103:: with SMTP id i3mr18706475otc.135.1566222278343; Mon, 19 Aug 2019 06:44:38 -0700 (PDT) MIME-Version: 1.0 References: <8fb538f3-dfdd-b427-727a-2e7c2120da09@gmail.com> <20e800e8-846b-a9c3-f840-826238b0818f@redhat.com> In-Reply-To: From: Peter Maydell Date: Mon, 19 Aug 2019 14:44:26 +0100 Message-ID: To: Aleksandar Markovic Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::342 Subject: Re: [Qemu-devel] [qemu-s390x] linux-user: s390x issue on Fedora 30 (dynamic library loader?) 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: Cornelia Huck , David Hildenbrand , Riku Voipio , Richard Henderson , Laurent Vivier , "qemu-devel@nongnu.org" , qemu-s390x Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 19 Aug 2019 at 14:34, Aleksandar Markovic wrote: > I can't repro the problem either, but I do have a patch authored by an en= gineer that left the company a while ago that seems to be at least related = to your scenario. May I ask you to test it (just apply it to QEMU ToT and r= erun the scenario to see if it changes the outcome) (feel free to experimen= t and modify the changes)? I never managed to understand the purpose of tha= t patch (I lost the contact with the former engineer, and the patch is with= out any comment), so I never dared to send it to the list, but I hope your = scenario may actually explain the purpose and the origin of the patch. It's basically a more complete implementation of the suggestion from https://bugs.launchpad.net/qemu/+bug/1701798 comment #9 (it covers more syscalls and returns a valid guest errno rather than a host one). The intention, as you've guessed, is to paper over this guest-ld.so bug by preventing it from being able to open /etc/ld.so.cache at all (which will make it fall back to working without a cache). My feelings about it are the same as they were when I wrote comment #10 in reply: that patch would prevent us from picking up a legitimate ld.so.cache for the guest (in a chroot, for instance. I'm also not a fan of trying to work around specific guest code issues: I'd much rather this was just fixed in ld.so where it ought to be. You should be able to repro this bug on real hardware by copying an x86-64 ld.so.cache onto a big-endian machine :-) thanks -- PMM