Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2010236pxk; Sat, 19 Sep 2020 09:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRZhMF2Yee/5BYsUdk5j+EvJq15DCPH4WyZQ9VcQWjVBIqa1hYH4zf+PbSzEES/JBqapul X-Received: by 2002:a17:906:bcd5:: with SMTP id lw21mr41934542ejb.430.1600532709622; Sat, 19 Sep 2020 09:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600532709; cv=none; d=google.com; s=arc-20160816; b=JnHy8+uCA2BN6XdYBxMjjkM5PoCsAuZUEQMBi8OZ39s0ycym3KxmCWtBMG8nACicse 2WAj0W4zitdSq8gjCsizKKtm3WEZVzu2yLf1HMAk6enfMmfDjiDf4RWEHN9/TuvAkyP3 JAUuBpUtjYytVBUqOiI9QzDs+2G0WVf38rOUIdt9dT+rLWhWaGhcblbXrwqU7REo65QC dtTzec72wcbhO2jZg6nbTssYzd1wyeOxyLuh1EuV1Z7zzLNezr2n5X2bV0opMtd59RGi rUuvgLLhfw0yKbtAo6vE6RKzi7epq0gfHQvIc6T6ai5nvVI/kPtRKJ5t0tA5qYu4Jjcb AgPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5sTRBl4FOpslG9Jr68VjqpsiqeZXKdqrUaMCk96DScQ=; b=A9W53+dFSlXuTv/Ah11djRcnoCYeLB1PmNxiLpdzr4aEPqasguYrdziCMu9UsfpwvW KMjapzmKxzXvHmDqQSLiZYjln0dAHNMrkNCKNE4ZNQN8YhN5kf5Ea2L+yxB32lzMyfMP h82thmF2chKkwyU5vhd1LfvHWdyg44uAlTuN7//GIj8kiOOYUF6CNOD/kPoNoSqtfgSA xJTrlr/7uUmxrxQGr4HuptVu/3W2QZUOWFvnM4UdIZfxIcdWiQG3WGDtdhqwIn8ASVfI E3wVw6kHKDB7MJQ14TjD+twRwnPb5GkmdHkhHiw8UIXsNtHYJOsrn9T2LMSR/kLncqZx dGXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YUs5z6A+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si6533034edj.252.2020.09.19.09.24.45; Sat, 19 Sep 2020 09:25:09 -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=@kernel.org header.s=default header.b=YUs5z6A+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbgISQXh (ORCPT + 99 others); Sat, 19 Sep 2020 12:23:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbgISQXg (ORCPT ); Sat, 19 Sep 2020 12:23:36 -0400 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 0E51221D43 for ; Sat, 19 Sep 2020 16:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600532616; bh=yIMDaLtf/+YFizwPnR8klP42GqyYZ5ElGRoZQu6X97M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YUs5z6A+jbyOjViAggfd75LfVJAXVlL6S70XXy/bSyZscAbDzqAWG4OVuiRPoKllX 8iDAYtkYLMWVWSGiZALQNnGWPtgEG54QgPP0UeehdM25bePxbkLBmtaA7MbAPhserV gTh/eYz4pD8V9OCDj3Y0DZjZnifKA2vn2zkFrfDg= Received: by mail-wm1-f53.google.com with SMTP id q9so8095929wmj.2 for ; Sat, 19 Sep 2020 09:23:35 -0700 (PDT) X-Gm-Message-State: AOAM531bo4kUDWcksKBlwJ0nYuRHFEM9Zf+/pRmX508kK7+mLfNT0m36 S6467fyMTHaz9mC2W+E3iN0l3erLtUHE6DlpB5EUdQ== X-Received: by 2002:a1c:7e15:: with SMTP id z21mr21042180wmc.21.1600532614589; Sat, 19 Sep 2020 09:23:34 -0700 (PDT) MIME-Version: 1.0 References: <20200918132439.1475479-1-arnd@arndb.de> <20200918132439.1475479-2-arnd@arndb.de> <20200919053514.GI30063@infradead.org> In-Reply-To: <20200919053514.GI30063@infradead.org> From: Andy Lutomirski Date: Sat, 19 Sep 2020 09:23:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] x86: add __X32_COND_SYSCALL() macro To: Christoph Hellwig Cc: 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 , "H . Peter Anvin" , Andy Lutomirski , Christoph Hellwig , Brian Gerst Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2020 at 10:35 PM Christoph Hellwig wrote: > > 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. > > > > Change the COND_SYSCALL() definition on x86 to also include > > the redirection for x32. > > > > Signed-off-by: Arnd Bergmann > > 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: > > https://lkml.org/lkml/2020/6/16/664 > > 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.. I'm fine with either solution.