Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3523514imu; Fri, 18 Jan 2019 11:55:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN4og0+KGKacLrK5Rgzft9pAOEJmE20F1eGIDVRpD/LJL8j/cU3CnGr0rYoYWhNC4wxx81FB X-Received: by 2002:a62:5d0c:: with SMTP id r12mr21489415pfb.0.1547841309883; Fri, 18 Jan 2019 11:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547841309; cv=none; d=google.com; s=arc-20160816; b=ny7R4wWF1g8gh5G+HANQqyttsHYGMbDWJjxmgeARN9TwPbux1paHl6l+/6kTjWK1Y7 PSWA1PF0j7pJgn7S/N0pZlOQa15Jyu831O+Y02LRL0/Gh7CChrEescBw7TJrhoPyixf0 O9JbqGv4sEKbGMC3dOIAgEI440gHISVBZ8ky4SPotJyk5SqEEnvz3qawBrWjoDnCdU8+ nSVkiSSYO9H4Uq4YDyf88qcLD9dvyjOyY7t3KYsrTpvcaBJvMCYvk2VDe6So2RACy0dO s8MKckd3jnGUUdOOHI1P+S61tvqTI86zPKTiIrEmhcPoQ0P4rnwKv4FcPVL9/kxUSc3B JZFg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=EzCCkn1/yjvdv7sZitGOFhJLVvmL5i7QjM4SCm+oy0s=; b=LcqnJdwd5ng0ArdO22orNzOgqlghJD1byl9wIjVeH53KujnbAw9X2Y/vWQ1QlP1r4V Qlp7g3V6xQPtSj7+US5YoghEXsWMc5HLoUKjIjNvsWEd+qgdNa4lPWE4N6NIWydpf4+9 C/xmSmtmKXJ0JMugtbC55sbBLmT5BgydcMcAwQ0cEEP5E+luxVORvW9dL8/96O40zVFI 8lminSxY2vOExa8ykDxWAzejNSxoxOJxpL8+3/OQaJ3sOklgqHmMge2yOZYf3JHrls3C +GfBC+9QsfEyWbsTBBjJrRZr5bY7q85WJHa/iUpPTU1m4p9SItgnC4Cu/j9+D9rHjauy 4YaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fek6XmzI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20si5017037plr.106.2019.01.18.11.54.53; Fri, 18 Jan 2019 11:55:09 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=Fek6XmzI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729407AbfARTxm (ORCPT + 99 others); Fri, 18 Jan 2019 14:53:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:51552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729368AbfARTxj (ORCPT ); Fri, 18 Jan 2019 14:53:39 -0500 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5415521741 for ; Fri, 18 Jan 2019 19:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547841218; bh=Y+Mkku2hpjHuuxfJcSbx0NCmyP047W00KgMfbKQs2v4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Fek6XmzI3RB5hhpnqRChjLWz9CecII0oj9FJZYhcZkZlCsMwIMOwCM6H7NLbz9m6l GxAlvuVbgpgARyS0HbZHB87lFlmNkbe62cMyspTN5HAUGuFkyH2I3MIlh4WtR3jMjq DDORul8S0oHQkyv/GpmH1TOyMPAOdHTNweIZn7Sw= Received: by mail-wr1-f50.google.com with SMTP id c14so16557940wrr.0 for ; Fri, 18 Jan 2019 11:53:38 -0800 (PST) X-Gm-Message-State: AJcUukeP+CQYpIqQnqJ5s1PTT+I9WdQJpMflwdiHrCJmnkDLkELDu2m/ qinH1X4xGmJzpehmU3vSH3CVMnKmcgEfrkFv5xpcKg== X-Received: by 2002:a5d:550f:: with SMTP id b15mr18669734wrv.330.1547841216670; Fri, 18 Jan 2019 11:53:36 -0800 (PST) MIME-Version: 1.0 References: <20190118161835.2259170-1-arnd@arndb.de> <20190118161835.2259170-30-arnd@arndb.de> In-Reply-To: From: Andy Lutomirski Date: Fri, 18 Jan 2019 11:53:25 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 29/29] y2038: add 64-bit time_t syscalls to all 32-bit architectures To: Arnd Bergmann Cc: Andy Lutomirski , y2038 Mailman List , Linux API , LKML , linux-arch , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , Michal Simek , Paul Burton , Helge Deller , Benjamin Herrenschmidt , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , Rich Felker , "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Max Filippov , Andrew Morton , Deepa Dinamani , "Eric W. Biederman" , Firoz Khan , alpha , linux-arm-kernel , linux-ia64@vger.kernel.org, linux-m68k , linux-mips@vger.kernel.org, Parisc List , linuxppc-dev , linux-s390 , Linux-sh list , sparclinux , Network Development , Linux FS Devel 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 Fri, Jan 18, 2019 at 11:33 AM Arnd Bergmann wrote: > > On Fri, Jan 18, 2019 at 7:50 PM Andy Lutomirski wrote: > > On Fri, Jan 18, 2019 at 8:25 AM Arnd Bergmann wrote: > > > - Once we get to 512, we clash with the x32 numbers (unless > > > we remove x32 support first), and probably have to skip > > > a few more. I also considered using the 512..547 space > > > for 32-bit-only calls (which never clash with x32), but > > > that also seems to add a bit of complexity. > > > > I have a patch that I'll send soon to make x32 use its own table. As > > far as I'm concerned, 547 is *it*. 548 is just a normal number and is > > not special. But let's please not reuse 512..547 for other purposes > > on x86 variants -- that way lies even more confusion, IMO. > > Fair enough, the space for those numbers is cheap enough here. > I take it you mean we also should not reuse that number space if > we were to decide to remove x32 soon, but you are not worried > about clashing with arch/alpha when everything else uses consistent > numbers? > I think we have two issues if we reuse those numbers for new syscalls. First, I'd really like to see new syscalls be numbered consistently everywhere, or at least on all x86 variants, and we can't on x32 because they mean something else. Perhaps more importantly, due to what is arguably a rather severe bug, issuing a native x86_64 syscall (x32 bit clear) with nr in the range 512..547 does *not* return -ENOSYS on a kernel with x32 enabled. Instead it does something that is somewhat arbitrary. With my patch applied, it will return -ENOSYS, but old kernels will still exist, and this will break syscall probing. Can we perhaps just start the consistent numbers above 547 or maybe block out 512..547 in the new regime? --Andy