Received: by 10.213.65.68 with SMTP id h4csp1073831imn; Sun, 25 Mar 2018 23:22:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELto2gwGEnJFOPc5KTJWKHOOVedz1NaF2ibEd2C3mD5/UFyD78OHJWc2qFl56o6ZJWhICrvI X-Received: by 2002:a17:902:968a:: with SMTP id n10-v6mr12828012plp.362.1522045322527; Sun, 25 Mar 2018 23:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522045322; cv=none; d=google.com; s=arc-20160816; b=FHKPpxTgwuYVI9vQhpGzo1bvE8DSZm92gS7h8hmu2t4vcwN+ncbX4DXEJoWLpFPExE 27MUxyewoJPzPSbSddCvArT7AOyCV9CFYv9w3hyE5AehiN0TtDre9vB5nORORGGWEJOn m6kEu84hA3Jhdo/aBiP1a1n9mlAA/FBJ6epYat1xKfEhe3FF4zLhA0dvLQrJC+6OE8ny qvnAEeMdkLKJak5t9s1RHjr7magKZ7lDPcZfbAUd+KE8gV9AApQ/ve9dMiLZJudfNxiC 7+4eF/du0mg+cuW4Hvt0Ak2OPsycD3gu41EocmSFtntI6CU2pyBdhXrGphsfbpJiTAHT ZMQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=F8N/x3Cph88GTKgYjXBduNDwcFw0SMkkCtlac24yPCw=; b=fJpmYfr6MTI/tdzJaBsgbyevw8fWLDcvk3zI2cLrCt0Yu9MDctcvU8mtOgIh0Xs4nL KrxQhyiMFzuoe6100qJudpQ6vbtC4Mwrp/+qddqglJtcUHPvNUypYzuxMXYbzVhebFNP bgddpHUN1ZqlK7yNnWoJBWY1PDfBwH2Fs28WVF0Uz5+768BDOihv/fPZRFtSlfpC4XYi z/dwDGshT1CfhARdqjFh4R9tg2nivkbUA5y8jMvdQ09BXSLzYz4k5JU17IlayQKoTHoE ht5hPdVikwxlZV36H3vdXnUU3OAwDZ9CrO1ypGG0laczc8npX54iVa0Md9Yvtim+v4o/ Tnew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rpDX7LFW; dkim=fail header.i=@linux-foundation.org header.s=google header.b=PPylsUo3; 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 k6si1278236pff.267.2018.03.25.23.21.47; Sun, 25 Mar 2018 23:22:02 -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=rpDX7LFW; dkim=fail header.i=@linux-foundation.org header.s=google header.b=PPylsUo3; 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 S1751047AbeCZGU5 (ORCPT + 99 others); Mon, 26 Mar 2018 02:20:57 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:45018 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750851AbeCZGUy (ORCPT ); Mon, 26 Mar 2018 02:20:54 -0400 Received: by mail-io0-f194.google.com with SMTP id d7so6431943ioc.11; Sun, 25 Mar 2018 23:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=F8N/x3Cph88GTKgYjXBduNDwcFw0SMkkCtlac24yPCw=; b=rpDX7LFWYHBp/eeKyZ4XzQ0x/0uvRZ7pZCvV+eqnfftTbfhTm4RTe0MUwU/9zEtL99 rfitscaQhn600sUnvxDRlWW4bTfKJ0pFaKcIQ9SiJru9o1BzQwPF5TrlHVVGjn+CeIOL XuJFtbkondbU6x+jKObIh5fUg2evSPBOHhkra+mdpSRVGBKWk6rQujjNSWH2xDlOhzOY OBy/5MtVx5Xp6DJXuRJNVbZOXmprkkIjYkx9+3I4XDZzwxf9WewJP34KraGWNx6cUwGO YCNFa2Pk7rr5zLviB+ON7zx71T/VSVwibT06raeQPk7UCOuVkGmLz8Altu8DZ2st7mNK Entw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=F8N/x3Cph88GTKgYjXBduNDwcFw0SMkkCtlac24yPCw=; b=PPylsUo3HORVV7PuyaXmAPYU9cWQgmfkdnmdm9ZfVefrEug3+lu4fqpsnb7KChRkkv CGrBwy1US0p2GhIxX9KSf+uedzbTa0RhxIDsS4ypyniB7eMTq/hTXuhwUKsa4T1BczVH 20POslOq70gqz5E7XZaF/+RrMySPIrVyWqKgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=F8N/x3Cph88GTKgYjXBduNDwcFw0SMkkCtlac24yPCw=; b=Z6OrYYTEYLVxJs1fSsLvcuq8Z+wLJtTtTkfZMpnhSpCXe+zVlm9wPzIuvI69Rxs6HB OEYZpQi4/ZKLsCVtUmYaDMokg5sCwjR+FTL+S4PV48EI10YkrUH3Wi5rSnJ1gjxQ4MmG AwGkTQlyEi7L0CHj4db+FAzBsZYf+T0hCDSGUak4d131IuEimYzevL/5rQzHnTnJxyDE DX6ghKcPZBUvOE701Wz9lGijpcezbqhBG7WacgRRmJYtgOkgqPypIGYtw4+XRMxMTJ0N 6RTt/i/Kps7YHFhaRrzykfhUXDwfS7c0AGgpe+Bed3o+DgpEu8qFAV1AibsbPUdAjg54 GR4A== X-Gm-Message-State: AElRT7GzCqyclS1bcDzF/Yg6tkUiukwg/5aSMJoB4y4NPfvic8w+tsYH dx7UIa+yi6gykVBE3LdNVrpt3P2aNLfEtaDFH/frIl+Y X-Received: by 10.107.182.214 with SMTP id g205mr7230756iof.203.1522045253148; Sun, 25 Mar 2018 23:20:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Sun, 25 Mar 2018 23:20:52 -0700 (PDT) In-Reply-To: References: <20180318161056.5377-1-linux@dominikbrodowski.net> <20180318161056.5377-5-linux@dominikbrodowski.net> <20180318174014.GR30522@ZenIV.linux.org.uk> <20180318181848.GU30522@ZenIV.linux.org.uk> <20180319042300.GW30522@ZenIV.linux.org.uk> <20180319092920.tbh2xwkruegshzqe@gmail.com> <20180319232342.GX30522@ZenIV.linux.org.uk> <20180322001532.GA18399@ZenIV.linux.org.uk> <20180326004017.GA2211@ZenIV.linux.org.uk> <20180326034750.GN30522@ZenIV.linux.org.uk> From: Linus Torvalds Date: Sun, 25 Mar 2018 20:20:52 -1000 X-Google-Sender-Auth: 4yfXnPHQr6Ry271lHaPL-CL-TJ4 Message-ID: Subject: Re: [RFC] new SYSCALL_DEFINE/COMPAT_SYSCALL_DEFINE wrappers To: Al Viro Cc: Ingo Molnar , 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 25, 2018 at 8:15 PM, Linus Torvalds wrote: > > HOWEVER. > > I didn't actually test any of the compat or x32 ones, and the way I > did it there also was no type-checking or other automated catching of > getting it wrong. So it's almost certainly completely buggy, but the > _intent_ is there and there is a remote possibility that it might even > work. Note: the commit message is "broken, but working, ptregs system call conversion for x86-64". The "but working" is not because it would be right, but because it booted a real 64-bit distribution successfully, and I actually used that kernel. But that only tests the native 64-bit case, it in no way tests the compat or x32 cases what-so-ever. That part was literally a "it compiles - it must be perfect" with absolutely zero testing of even the most trivial kind. And it really would have been most trivial to just do a "Hello world" and build it with "-m32". I didn't do even that, and if I had, I would have been honestly surprised had it worked. But there was a _theoretical_ chance that it could have worked. Maybe. Linus