Received: by 10.213.65.68 with SMTP id h4csp200865imn; Fri, 30 Mar 2018 03:59:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+4VgFVjysdgAyJGYFRpa52teq176Xj9hy58Ww2owvjQO/oMelTGz6nYqU5XZdO4GmPX+Na X-Received: by 2002:a17:902:41:: with SMTP id 59-v6mr12671953pla.248.1522407577022; Fri, 30 Mar 2018 03:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522407576; cv=none; d=google.com; s=arc-20160816; b=cflAjyS/w7mJZhOWrjQe8FvcShC1rDEDOiI5yOVd8i5EBNcNlXdMlDSqPYiY+UyP/l KAxOvfuaYIVOOyu9TIPj6ASIqFl6qQl89kZ+GjyUw/22HoXJStogE74efpoDan7vQS5+ 1+DLRK4RgO66Y7KVmtrQXBM+DYD1RsXZcxMpGEjr8Bh7zneciPHXZ/vQ90MNjHL9FU10 b61+5uQtslPPgx42KQAQZhi7Jpc4iHt1fiGrq0iSDIJiGq1LWxBNZzxcWcbjna22IbzE ABi7QUv/wqXzUgSjw3hNw+Al89dVqIVsNwRZPP6pmGT0cVBOn1DraxO6zwCvME3JAvwI d5mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=L6JOxp19XShDg4QwZ2D0LBToAZHdJMOHiTKXCztA0xQ=; b=H+bdZuw4+G4vbCfdtDKzJqfL4tf1dgCHaBOypqH4b+gPPudMzYESTj2FTE0lfQlZZs CbkxNefspILlI7JoW4Hb5fvYpsrYl+YhmTeCX3qZ4jwYeD0EZrRUS6ZtS8gfcqRlNIkn MPStoIen3ckb7otHc4DpgFfyLvq5ZGWql0R3R5ljrFcdvJ+3NbzHcVgi1ZppokFlgcsT TPeJuISjoRwIHYz0WP6XNK3m2/KJ5OTzE8dUBLkYuVZC0lAO9yPl4dqNFLKLbzR+S7PP Ks84jlEbrILe+95uRF+TxUEg0SIKu0GzfyoKxPHe3ufKTzcw9wlBV1EabSX2OL/0Zg7U 5wYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kKPHqoIt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22-v6si8091871plk.235.2018.03.30.03.59.23; Fri, 30 Mar 2018 03:59:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kKPHqoIt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751313AbeC3K6K (ORCPT + 99 others); Fri, 30 Mar 2018 06:58:10 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:46517 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbeC3K6H (ORCPT ); Fri, 30 Mar 2018 06:58:07 -0400 Received: by mail-wr0-f195.google.com with SMTP id d1so7728387wrj.13; Fri, 30 Mar 2018 03:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=L6JOxp19XShDg4QwZ2D0LBToAZHdJMOHiTKXCztA0xQ=; b=kKPHqoIth1k+xRngcLlqtdh1P6XuuYEcNbIeBjs5ELocS3KIgIbT9P2clIlH4oJXAI wb5OhcDrKYC0v6PPW6F50DSQKGf8bTYKtAE5cvjwt6BjqKiAwK0NX8ZPY/MQ6FLIoZiM OGvtsHdvQBBxao/QxJ6L4HIuxsZPypiVGa06z5eqoePpIsJcdL2eB1DQa444xLHd2H7x feiINABWMOTiCFZoDJ/yqunZJvHve7gwBnvf/TPHHED+0l6VM3akqbkZp7C/SuXf3L7j FbjnKd0vYwsewY6QF9SZrKOjK2/iezGk5erueY3mCoGs6zHV+4JQsLV3bEaP/X2o8hX3 TA5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=L6JOxp19XShDg4QwZ2D0LBToAZHdJMOHiTKXCztA0xQ=; b=JfYg9K+R0DomWmMGstvvqTYLtn0bIne9sSgwr/zsUfUxl0qjjAWxdsBHM6KZfYyxoO 0xjXC5JuUtCXT5fZPbphmlS7uV6VLC4VcFL9lFY+wTX9ZRjzRiyw0UMbjTkD67GzglG8 bsVZkfWJ162HWK0rrgfrxxWM96tYkObRH81SjrU9FEshrDZzI8J9gbTrOuGlwfxwvvQ9 QZp6fdaRWMaZXwU00IxPXugTtqSDj4Qq/uicxvl0abCPV2WSbn139EDtPFeWaRF3XXk7 kLeqMCwSLe1R0VFNPGhPQBnpkdOGhh4qFhUvcUPebuHhctaNrBmLh/2AAAHXYnVct4/K 1l4Q== X-Gm-Message-State: AElRT7EPnRjapnc1Yl2ca2GkHYv+iUVHXjzdqXn7PGe4whmJX9wEHcAp Zv/Ql9SpoBXHULA3kwsOui8= X-Received: by 10.223.150.56 with SMTP id b53mr9838943wra.79.1522407486072; Fri, 30 Mar 2018 03:58:06 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id w82sm7565wmd.0.2018.03.30.03.58.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Mar 2018 03:58:05 -0700 (PDT) Date: Fri, 30 Mar 2018 12:58:02 +0200 From: Ingo Molnar To: John Paul Adrian Glaubitz Cc: Linus Torvalds , Al Viro , Dominik Brodowski , Linux Kernel Mailing List , Arnd Bergmann , linux-arch , Ralf Baechle , James Hogan , linux-mips , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , ppc-dev , Martin Schwidefsky , Heiko Carstens , linux-s390 , "David S . Miller" , sparclinux@vger.kernel.org, Ingo Molnar , Jiri Slaby , the arch/x86 maintainers Subject: Re: [RFC] new SYSCALL_DEFINE/COMPAT_SYSCALL_DEFINE wrappers Message-ID: <20180330105802.7df5pacjfqsqwa6l@gmail.com> References: <20180319232342.GX30522@ZenIV.linux.org.uk> <20180322001532.GA18399@ZenIV.linux.org.uk> <20180326004017.GA2211@ZenIV.linux.org.uk> <20180326034750.GN30522@ZenIV.linux.org.uk> <428751c8-6920-096b-8694-a3f1b8990bdf@physik.fu-berlin.de> <8a8ee344-fb19-3ed9-f7dc-db63f703e6d3@physik.fu-berlin.de> <7753539f-c72d-9e5a-eb2d-939e5514404b@physik.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7753539f-c72d-9e5a-eb2d-939e5514404b@physik.fu-berlin.de> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * John Paul Adrian Glaubitz wrote: > On 03/27/2018 12:40 PM, Linus Torvalds wrote: > > On Mon, Mar 26, 2018 at 4:37 PM, John Paul Adrian Glaubitz > > wrote: > >> > >> What about a tarball with a minimal Debian x32 chroot? Then you can > >> install interesting packages you would like to test yourself. > > > > That probably works fine. > > I just created a fresh Debian x32 unstable chroot using this command: > > $ debootstrap --no-check-gpg --variant=minbase --arch=x32 unstable debian-x32-unstable http://ftp.ports.debian.org/debian-ports > > It can be downloaded from my Debian webspace along checksum files for > verification: > > > https://people.debian.org/~glaubitz/chroots/ > > Let me know if you run into any issues. Here's the direct download link: $ wget https://people.debian.org/~glaubitz/chroots/debian-x32-unstable.tar.gz Checksum should be: $ sha256sum debian-x32-unstable.tar.gz 010844bcc76bd1a3b7a20fe47f7067ed8e429a84fa60030a2868626e8fa7ec3b debian-x32-unstable.tar.gz Seems to work fine here (on a distro kernel) even if I extract all the files as a non-root user and do: ~/s/debian-x32-unstable> fakechroot /usr/sbin/chroot . /usr/bin/dpkg -l | tail -2 ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ii util-linux:x32 2.31.1-0.5 x32 miscellaneous system utilities ii zlib1g:x32 1:1.2.8.dfsg-5 x32 compression library - runtime So that 'dpkg' instance appears to be running inside the chroot environment and is listing x32 installed packages. Although I did get this warning: ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. Even with that warning, is still still a sufficiently complex test of x32 syscall code paths? BTW., "fakechroot /usr/sbin/chroot ." crashes instead of giving me a bash shell. Thanks, Ingo