Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2045486pxk; Sat, 19 Sep 2020 10:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfRgNAOUp2LAcDyO8mHz+clnc6J4YDBhhfrvw0hDzgxziAmm13NaJy+2yPtUHOKItQ9oPN X-Received: by 2002:aa7:ce97:: with SMTP id y23mr45861933edv.128.1600537293221; Sat, 19 Sep 2020 10:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600537293; cv=none; d=google.com; s=arc-20160816; b=t243YKqySvbbtcctNVpDOSG+2sewYNMS9Kmjx6RDJzLLGbncOSz1JkaX/rUmUKU4lF CB1UuSF1FwDHxmKIgwFKrDKtDwo9vQdIO8sGvi4rc8SOXd4O2/JGpi/H9bU6vWBgHqhg Ubng8jOVlTkauPnen4HMGD2t6w0wcjSS36PafpcKA+4oWDBYfrPJQtpZOK0vvesOtHWw Kni6l4T6EpyRpX1sHul9oq57Gtr7ITYvGlBsB5b8x80r6UPrntxj5iTkboOs3fnUdOe5 3L2jRl3ZRoBTlnieNNhjXPMvKFh/zNg08d38qmsO/JeLCYVxFS+B9pIHGA2boAgnIowA mbvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=VX3X8B9i2JuVY8GKzUZczdeUGgzu+mz4I4B7H1L1Mi4=; b=Z/lTdcoeD/Z6JIZTptG0Zy8iL6/W1FbciOnSpzQfTVyXZJikxYMbQDQnRmzT0R+/7m +fNP/Pi/zPfjHPUhylI3urOubPNokc4J7AGnMzZoP7YtBwn0CUF6/PWw1uYnD4mAzzNQ lqfQrSa8vCpnnI8VvPxSVZwV/iTVl+I3wcmcjoQZlL4es/ws+fWspsR/G+cTpO4APY9J Kc160cS+OJcxjrCOaZhN8YhehmhPTJEPW7R5tonvsEUD0/l7FO1Zv4FZM3FRQL5WmwSb 7E0Zt6SjuIfJx+ZCZxGw2VS7HC4fr9v35MvM+2TMy46EaJtrtbi9LeAQRn9L42ZeJ8Xn Zwvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=yNPYVlEt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si4959405ejx.162.2020.09.19.10.41.07; Sat, 19 Sep 2020 10:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=yNPYVlEt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726575AbgISRjh (ORCPT + 99 others); Sat, 19 Sep 2020 13:39:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbgISRjg (ORCPT ); Sat, 19 Sep 2020 13:39:36 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5334C0613CF for ; Sat, 19 Sep 2020 10:39:36 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d9so5580554pfd.3 for ; Sat, 19 Sep 2020 10:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=VX3X8B9i2JuVY8GKzUZczdeUGgzu+mz4I4B7H1L1Mi4=; b=yNPYVlEt8KLUpDj0nIzrfQfQyOdEE2/k8kLlUB7RQ5n6+/jDfT84IduqimvSwqUnN+ O8cF1Vj9icMa6rtMohIfNPMBvBf+j5VOOL/nVKGeLwQaWHmre9d1e1eyeGjPlO0i185k 19M+FaJ2tfK5IgYz44rWxcBDCTmpp0Z3ZkuYLoAJ7sEpVZWAkov/AWsGiTkdIM78GAWZ 2SydI0qut+RoG6GfTRienTfRUllaANJil5Y4kTZKmgGH3olgwZI6GM0CUjDKWTHCvMx5 O22OBQlNd7hvBXTdnCIrUc+v+PA4zcggLM3FBA+YKoFQ9LtbqGzxxsi8TrAMrtNnfamF lVPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=VX3X8B9i2JuVY8GKzUZczdeUGgzu+mz4I4B7H1L1Mi4=; b=HaTSFCxvEkMduoZRvqbw2Lc3aGKxc7D8HLRoSNB5oz3zcg42/UxUAz188EfU6Wnudi 9sJtVvcr7cXn3+JQPDuLROETOgal7oTxadH9Yg5p2LfQzbjrIM59x2apJWv52xNa9dif cZyUdfq4bMirqz0InaiLrFN4n9T/jHD752UEBypAKY1rnkjf0gAgJts9RkvIWl9Z0U0r D3OzFdThrswHavvIj08QDwFYp22QjkyjSb2OWbNLbNHXGyCiJGk6p5aXvLLuf+n+uMGr r2sALJPIa/gqFK+e5SR7KW131sX3y82n7ISUkGqluN9zfw6q249u3l9AwB/HaS9XsHaM MPmA== X-Gm-Message-State: AOAM531jbEc2ogfoAmNnZlmGCj4gxhqa5S7+e9kmsPLHWEOPId/DWpzj VZaacnHnFxWOZlT9bwU6HNummA== X-Received: by 2002:a63:725d:: with SMTP id c29mr8480027pgn.234.1600537175557; Sat, 19 Sep 2020 10:39:35 -0700 (PDT) Received: from localhost.localdomain ([2601:646:c200:1ef2:384f:efa4:98e3:a556]) by smtp.gmail.com with ESMTPSA id o19sm7291347pfp.64.2020.09.19.10.39.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Sep 2020 10:39:34 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 1/4] x86: add __X32_COND_SYSCALL() macro Date: Sat, 19 Sep 2020 10:39:32 -0700 Message-Id: <027BAF5D-1473-4A35-8A58-D80315D52073@amacapital.net> References: <85F32523-4E9E-443A-A150-10A9E5EB0CE3@zytor.com> Cc: Andy Lutomirski , Christoph Hellwig , Arnd Bergmann , Alexander Viro , Eric Biederman , Andrew Morton , LKML , linux-arm-kernel , linux-arch , Linux-MM , kexec@lists.infradead.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Christoph Hellwig , Brian Gerst In-Reply-To: <85F32523-4E9E-443A-A150-10A9E5EB0CE3@zytor.com> To: hpa@zytor.com X-Mailer: iPhone Mail (18A373) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 19, 2020, at 10:14 AM, hpa@zytor.com wrote: >=20 > =EF=BB=BFOn September 19, 2020 9:23:22 AM PDT, Andy Lutomirski wrote: >>> On Fri, Sep 18, 2020 at 10:35 PM Christoph Hellwig >>> wrote: >>>=20 >>> On Fri, Sep 18, 2020 at 03:24:36PM +0200, Arnd Bergmann wrote: >>>> sys_move_pages() is an optional syscall, and once we remove >>>> the compat version of it in favor of the native one with an >>>> in_compat_syscall() check, the x32 syscall table refers to >>>> a __x32_sys_move_pages symbol that may not exist when the >>>> syscall is disabled. >>>>=20 >>>> Change the COND_SYSCALL() definition on x86 to also include >>>> the redirection for x32. >>>>=20 >>>> Signed-off-by: Arnd Bergmann >>>=20 >>> Adding the x86 maintainers and Brian Gerst. Brian proposed another >>> problem to the mess that most of the compat syscall handlers used by >>> x32 here: >>>=20 >>> https://lkml.org/lkml/2020/6/16/664 >>>=20 >>> hpa didn't particularly like it, but with your and my pending series >>> we'll soon use more native than compat syscalls for x32, so something >>> will need to change.. >>=20 >> I'm fine with either solution. >=20 > My main objection was naming. x64 is a widely used synonym for x86-64, and= so that is confusing. >=20 >=20 The way I deal with the syscall wrappers is that I assume the naming makes n= o sense whatsoever, and I go from there. With this perspective, the patches a= re neither an improvement nor a worsening of the current situation. (Similarly, the last column of the tables is useless garbage. My last attem= pt to fix that stalled.)=