Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3682773rdb; Wed, 27 Dec 2023 16:46:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1W+jGBkZWckemUc/MBkM3Ql8P7rERNxFo4xyDMSQUeVLwRQpt2BE1sgWskexrQjwXysgm X-Received: by 2002:a05:6870:8091:b0:1fb:75b:2fb3 with SMTP id q17-20020a056870809100b001fb075b2fb3mr10621205oab.74.1703724390412; Wed, 27 Dec 2023 16:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703724390; cv=none; d=google.com; s=arc-20160816; b=kLJH636HS06xUX2ug9Vu+KBlayHdTybcLT8gpeoq53LuLzzHNY4NMcsYWI7eoinWmF tmZNhDZIcSVfBndgb8CeMwT3+lWrV2PKJvqUexnlaxtvQUW0fbdevrnMtUM/zK2RLvcM OVsqsf19wZwQkkwizVvHDeXXApLv2ok2GOCvOQyM5DpXk04adqnpq7w7YmnVNjwATRAs 7o4UFcU528gv2p3HM/3hVB4zZ15izk45v88K+0O+By94CkxXnhRWp54C11BN/fX/PKmG jpkWo3Es0rXsYy5rYGtY4yT3w0i3PRqs02A9GBdJtzrFNvczcL8Gf1Bg8UPWxoMX+51C 97nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=fQ45L/V9FHUmoJgpgPF98iGYhFCLPLvTto8GWmM6kgY=; fh=63gJIMg6njRep2uAEJd1YVpQuz97nZa8pfUlQVnPYoU=; b=Yn5Oqg0LPvIS73f+HuT5iC78CbpqAKpCdVHfLZCUQKhpKGNuRrk04HTD8eyOOQBst4 4pGgpwZd4zooOMfRa3vNmXE3opnFNAyENz02KCGAlnIRNQbWF6wGC65rD7kLMkhtOgsY AjhQ/XuQM5tssDEilhy01sUdDre5n6c3FQNlqiSZ9Sv7DRZhJsMOkJ/LEUmrFG83AKm7 LKtRktRiLbmnHx37ufNHM02homksgi4QhlIHw6nAJClTGkb9TIhHNIv2n6HUpdAmtuKd sIREdAJ/T4d7RzlJkBY9dSWjRvgxI4HunhGRnh+V5qm5OVpdx/MVzackm4ChwrGPv62e utEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=MpNhr8GQ; spf=pass (google.com: domain of linux-kernel+bounces-12329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l9-20020a63ba49000000b005ce05e5d57asi7687604pgu.660.2023.12.27.16.46.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 16:46:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=MpNhr8GQ; spf=pass (google.com: domain of linux-kernel+bounces-12329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9C7A3B2285C for ; Thu, 28 Dec 2023 00:46:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCAFFA3D; Thu, 28 Dec 2023 00:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="MpNhr8GQ" X-Original-To: linux-kernel@vger.kernel.org Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D46F637 for ; Thu, 28 Dec 2023 00:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fQ45L/V9FHUmoJgpgPF98iGYhFCLPLvTto8GWmM6kgY=; b=MpNhr8GQw7sFsj3LXjALSsEhsP tFowr5vjwJuvWAsloCXub7tNOBC/66Bcq1Upj2qqRVZvybltkwb7noDGj4sWKYm8WGkSnZwTxlbHD joEy8DYuCh9lfNdYKnADC9WPeT/BElo+6rs40UCjGN23Yx68skr/1OuxVr2JLrGcn4pl2423JTOMC wSqeasnFAkgaHyvbUgwBsQmC/aZYmXUkzvw3IQZnkUstVXA0kvP+LE0UvwXMaA8p08I+Hrk2eAfPp i+lwXDLvz7/fel+xucYAo6vBM2K81Ycwop2XDI5Ry81oOTZgR7cOSArY/2b1s7kLQ3UX5GQtHcEEf bs2b2LDA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rIeX0-00BoUc-0q; Thu, 28 Dec 2023 00:45:50 +0000 Date: Thu, 28 Dec 2023 00:45:50 +0000 From: Al Viro To: Tanzir Hasan Cc: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH] x86/syscalls: shrink entry/syscall_32.i via IWYU Message-ID: <20231228004550.GJ1674809@ZenIV> References: <20231227-syscall32-v1-1-9621140d33bd@google.com> <20231227233444.GH1674809@ZenIV> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231227233444.GH1674809@ZenIV> Sender: Al Viro On Wed, Dec 27, 2023 at 11:34:44PM +0000, Al Viro wrote: > That's _it_. The same goes for syscall_64.c and syscall_x32.c. > Oh, and lose the __visible/asmlinkage junk in there - none of that > stuff is used from asm these days. See the patch below - > Untested But Should Work(tm): Unfortunately, there's this in kernel/trace/trace_syscalls.c: unsigned long __init __weak arch_syscall_addr(int nr) { return (unsigned long)sys_call_table[nr]; } How is that supposed to work for anything biarch? Including amd64 with CONFIG_COMPAT enabled? Confused...