Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3677182rdb; Wed, 27 Dec 2023 16:27:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGjDdoxMzyZRFREMI1TNZ1qebufKmIveWEGKtLLS1GfM/Rf+oCCVxycDXdUXvb7v6Y8jts X-Received: by 2002:a05:6870:b61d:b0:203:fca4:43ab with SMTP id cm29-20020a056870b61d00b00203fca443abmr12150322oab.7.1703723224888; Wed, 27 Dec 2023 16:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703723224; cv=none; d=google.com; s=arc-20160816; b=mBt2yq6mS01g4YIds81CgzXsqQUI9dfaMI2tuPXArRiQYsLOC4m+FZhOjoqEXStNIF DQZQk0XrW2lH8eO3mUPDAE2uiDl2mSsTishtO6k7OMbmUbzvYykCD/Q88kpTgis/9hIk SCUqTe6CBqhAEnwHGzfmWH8/xuRKiOFamB7/373BE7d6PBqXm4RMv4sKW0mUYvjsaXwx OSNz5uIzNK4SGtlVKfABSNomohKgwrxLS1yV5fGyV6QFjsXwO+otV8W2qLkJqAOAIz5j WI+bRk9JvEWQU2MgyZfbUgpxXXun/vzFNiATfpX3zAQUk/sEAPG1WsBeAd3TKYp/a1fI HC0Q== 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=MP16u6EN11eo7xZ2yXWU55KJjCzR/dx7xVgAy3OFLzU=; fh=m4ABqXbi10zPUl43+HmhKlrRw7Dw3oXuunKf1L9nPvc=; b=bTfHCGAzv1WqRKGwz8UfQ8dvHWQgwWzDSQBi3sKos85xMYzw1lJbaTzV4XqPc7z947 m4ZCcxnBgbERv4hmblqiXJIDtPLWqth4K4F8u6Tr8Qn7V2lb5KXJo90wNxRULHJE7SnA Kc9yD+aJP1mh4w4TJeqBuvf1ogqBAMHXd0tcHOHKxwArwyrdOQyhIsbJeh2REAOMHZbG nnuJ8/4uZIU/a0Cr0AJaObFoMKPy3J9fiWBFGXLo3avQI/Dpew0rjrfD12Fu5Y3AhiEt furON1w83A89I+fU+s9qXiWwwzjH2Ox7sjUB9xLSSaCcdP51BZU2xPCNgW9O0ZHiS90t kfXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=DKGjIDec; spf=pass (google.com: domain of linux-kernel+bounces-12322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12322-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 24-20020a630c58000000b005cd8486d5ccsi12199566pgm.65.2023.12.27.16.27.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 16:27:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12322-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=DKGjIDec; spf=pass (google.com: domain of linux-kernel+bounces-12322-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12322-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 A811BB22962 for ; Thu, 28 Dec 2023 00:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5364B23B7; Thu, 28 Dec 2023 00:26:38 +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="DKGjIDec" 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 1A5531C3D for ; Thu, 28 Dec 2023 00:26:34 +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=MP16u6EN11eo7xZ2yXWU55KJjCzR/dx7xVgAy3OFLzU=; b=DKGjIDectkRFa7HaOtXNKUroOX s7hFzpKTYX3vBXDREusrkX8XEgXJYL0mKuFEdoVe8SfLk2NojBvBBtUWCtDYCALDz6meul2f2nOOT jHqCjZ6wNl1aQh812Ku9gp2HHHjT8u1yqVs9rlGTJRUJVfovZYiTMbtlNj6+S4mn7oy8fbXNDnuiu aNIb56x7mZ/0MBkencnLWcoU+LUdruPSmYn9Gy1l57SWCZvybP6ID4xIxdomKSimkYV7wO3Xy1dl+ aJiIlO/lYAW9SDHd/iV6uXwsAYifQFmyDNcQIHiDBZb3ty4xJIMTTMDpfTLeEXTU2KwhkWAfxVOHA xC18zzAQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rIeE2-00BnnV-2g; Thu, 28 Dec 2023 00:26:14 +0000 Date: Thu, 28 Dec 2023 00:26:14 +0000 From: Al Viro To: "H. Peter Anvin" 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 Message-ID: <20231228002614.GI1674809@ZenIV> References: <20231227-syscall32-v1-1-9621140d33bd@google.com> <20231227233444.GH1674809@ZenIV> <8B198413-0C9B-40A2-8478-F22206AAE6FA@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=us-ascii Content-Disposition: inline In-Reply-To: <8B198413-0C9B-40A2-8478-F22206AAE6FA@zytor.com> Sender: Al Viro On Wed, Dec 27, 2023 at 03:50:33PM -0800, H. Peter Anvin wrote: > > /* > > * Only the low 32 bits of orig_ax are meaningful, so we return int. > > * This importantly ignores the high bits on 64-bit, so comparisons > > __visible is for LTO, no? If we need it in cases when array defined in entry/syscall_32.c and used in entry/common.c, I would respectfully suggest that whatever we need it for is misguided garbage. I don't think that LTO does need it, though. How is arch/x86/entry/{syscall_32,common}.c different from e.g. fs/{namespace,d_path}.c, where we have fs/namespace.c:100:__cacheline_aligned_in_smp DEFINE_SEQLOCK(mount_lock); and fs/d_path.c:166: read_seqbegin_or_lock(&mount_lock, &m_seq); respectively?