Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3712936rdb; Wed, 27 Dec 2023 18:19:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrnI0W7rCGPdNwpFJZ1CGwGx00R5SGEK9HJQOC/1N0AZy70bIV8MYtmpXtJhZ9CkHwAcpd X-Received: by 2002:a17:906:4696:b0:a26:ee0d:1c07 with SMTP id a22-20020a170906469600b00a26ee0d1c07mr1929872ejr.177.1703729948307; Wed, 27 Dec 2023 18:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703729948; cv=none; d=google.com; s=arc-20160816; b=BnlABzkIoDEdzhDllbVO+rZyIHPb/pAarO4cKk/buTNt+SMVwLL9xY3HAIB1tzX5c0 QV4ztELTKbbPrl601d/udNiXVQ5IqV35DdOwgt2rOI9BFwER1qY5bUkigglWDJaXjjyr p1SSWHJTiefa0UCoJPACht4I/W68wy888POQOtH4jWricnfuo2OkSbftv/dFQKEPOP21 faaaVJJ+8Mlc+yDK0y3rgpuVLq6mfkVLI6+uXvLwyGf8690skltn5xg6W3Xnk5IPJWuH xLvh7H5bt/Yma/Q/JzeU5N4hWI14qFYqWRhEsA2+jOJnHfd1gy443/9kPLrTPMB0ktpH 1Hcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=UjI/k3eS7O6HB0+dpx4a96mA1fLx2yo/8peSNdY8Cd0=; fh=+zcKEXzycMlWkScvT3WjqIcB8zmnYfw7qD3k66R8q1c=; b=LNki9/+0jzNyIacvNelz8uZjTgFXl2mSQAl1W6kDONIOw57OVDUVxiFWUIlC9xcXh0 2bkHCTeX9K1WEbMg070UP/WY+WHCoD8u44LLGVwGC+lh4IwjpsUZ1vVWxPP9fjqc1f7D sz0/moYuPFN92wItJfBYcPNtJQpfWV5wMxtcUOBR0dF4HfR/l2q6EM7A7rjKEA8ZNR9A 0QgmRaqv9rm/T7MeDlJ5AGSndJezeMsiBd68KdJdyTjgBkttA3Ev5p1B7C+6I8UmS9Ns t/n1/ypyZDskpIMYecs5Id9n7vREJgz0jxIprQ6GTcanfN1HpMMztmZ8i10G1BYVLlBR 4SIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023121201 header.b=g4RhtE1B; spf=pass (google.com: domain of linux-kernel+bounces-12391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b19-20020a170906151300b00a234e27ebf4si4452255ejd.462.2023.12.27.18.19.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 18:19:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023121201 header.b=g4RhtE1B; spf=pass (google.com: domain of linux-kernel+bounces-12391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 123881F21978 for ; Thu, 28 Dec 2023 02:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FDC533E7; Thu, 28 Dec 2023 02:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="g4RhtE1B" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 A4B442568 for ; Thu, 28 Dec 2023 02:19:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [127.0.0.1] ([76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 3BS2HbeK901683 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 27 Dec 2023 18:17:37 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 3BS2HbeK901683 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023121201; t=1703729859; bh=UjI/k3eS7O6HB0+dpx4a96mA1fLx2yo/8peSNdY8Cd0=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=g4RhtE1BUHXsYo8g5EjEHEKsjLkFfvZekSXLp7nart7XP4ecF+ZFHC18HWy5YVOFL cfE/7gHNg0rh6VBOaJuLntVcGNEcSyEkBtbxStwb/i5jFcdhmkQc+Hue+qgs+A74FU btketTrP3DNPPHIBMUCHZKEXUMW3wNX8Rc+nceBCgKxG/NNbtnpB2i4GwtjNxeHWlp o5+7AhDn93arHzyMkoQb4n4sxTU6xCavYWFUoUtGH9F5AqP4ztOJZ0KCSs/ITarYiI tR7uy/nYMcEHKLCsH7eq5Mi/frSkKGRqtP5B4tG7qUM7tyup98kCR7AHzqokw57Yik 5oa+Sq9ZIe5CA== Date: Wed, 27 Dec 2023 18:17:35 -0800 From: "H. Peter Anvin" To: Al Viro CC: Tanzir Hasan , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH] x86/syscalls: shrink entry/syscall_32.i via IWYU User-Agent: K-9 Mail for Android In-Reply-To: <20231228002614.GI1674809@ZenIV> References: <20231227-syscall32-v1-1-9621140d33bd@google.com> <20231227233444.GH1674809@ZenIV> <8B198413-0C9B-40A2-8478-F22206AAE6FA@zytor.com> <20231228002614.GI1674809@ZenIV> Message-ID: <7068F1FF-1266-447D-ACC8-2F1AD774F230@zytor.com> 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=utf-8 Content-Transfer-Encoding: quoted-printable On December 27, 2023 4:26:14 PM PST, Al Viro wrote: >On Wed, Dec 27, 2023 at 03:50:33PM -0800, H=2E Peter Anvin wrote: >> > /* >> > * Only the low 32 bits of orig_ax are meaningful, so we return int= =2E >> > * This importantly ignores the high bits on 64-bit, so comparisons >>=20 >> __visible is for LTO, no? > >If we need it in cases when array defined in entry/syscall_32=2Ec and >used in entry/common=2Ec, I would respectfully suggest that whatever >we need it for is misguided garbage=2E I don't think that LTO does >need it, though=2E How is arch/x86/entry/{syscall_32,common}=2Ec >different from e=2Eg=2E fs/{namespace,d_path}=2Ec, where we have >fs/namespace=2Ec:100:__cacheline_aligned_in_smp DEFINE_SEQLOCK(mount_lock= ); >and >fs/d_path=2Ec:166: read_seqbegin_or_lock(&mount_lock, &m_seq); >respectively? You're correct of course; __visible for LTO is for functions called from a= ssembly *at the point of definition*, not declaration and certainly not as = a type=2E