Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp104561rdg; Wed, 11 Oct 2023 23:19:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHB4q3yU+RbeMDbFVU0Ed/YdbicvDyMflDK+JagQN18bZPvsBKiEEw5GOgYhYYq9KnpNlx+ X-Received: by 2002:a0d:eb0b:0:b0:59f:4ef0:b4b6 with SMTP id u11-20020a0deb0b000000b0059f4ef0b4b6mr24745836ywe.26.1697091570054; Wed, 11 Oct 2023 23:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697091570; cv=none; d=google.com; s=arc-20160816; b=hV4lgpJ43nC9KwmnPCT2MtOvvpLllbqxV8HbWVOS9pdCUY8Oe1uwroezIDlJ6q+Zq4 P5e0KDtQtKSkqztEwN67PXv6HS2ED/iextxjaL6O16jeVKJl4VtrrnDA0NX6tVpsfreV 9+Z5tMlMBX37Ysa0WGuMHrhxSgQjdteCon9Pjj9xFO2anoZvxzaXrX72e3Ux3qbawe6S cpgyDHvaza50s+6gx3harTgHz1qRRIJc0b1GIQrEr8OhCT2ZXshfBlR4kU/jvNc7fNVs 8W2UBv+dqGfir6YtJ2sBBj8WnU7leAyU6Yx2ANfvw4Og+CgM5hY0Hql4haeyXC6HCSYg FXkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=OP6CltxnY4Me7Dc35n6Y2Bjbp3x6k8MvTeVPFVgLbUU=; fh=GOrnRLoXLHVXt5EM/3gEWpQiZbbNKycrGICa9eJXhj8=; b=ZbwOrELbVAL2eFSUUJGQoLYdgfqjEuUBqPbJV663TY2JSybflQlIPyHD/bdMRTq0Ez KvOBj4eLJmTEWqZVPV91JFBO9wKax8Exp+3yvHbTE7HiF+Occ2qOJTJuV69RqTFVU24y shLz7mda+8n4K5Tbs3hFLO/9N0YmfnIvaDmJX6/KriKGDE/6Ed6EfgGlL8MyymtoFqqr MZRyQUAEyuo1TB2y+/Nv8B6KUM9FhmKeUfwxdUpcsIVJ6l417xJw3O3zxA7GQZA5Q67Z vtNlZA/I73P0XEF3D0I390YCT9fZso2ado9rmQKQ6coOXMnmO0X8GJMMl30YRs36wpPe h3MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JrpF20nG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e17-20020a17090ab39100b0027909685905si1432237pjr.149.2023.10.11.23.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JrpF20nG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 309228212A94; Wed, 11 Oct 2023 23:19:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377344AbjJLGTY (ORCPT + 99 others); Thu, 12 Oct 2023 02:19:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377391AbjJLGTV (ORCPT ); Thu, 12 Oct 2023 02:19:21 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0535DCC for ; Wed, 11 Oct 2023 23:19:20 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53b8f8c6b1fso1077519a12.0 for ; Wed, 11 Oct 2023 23:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697091558; x=1697696358; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=OP6CltxnY4Me7Dc35n6Y2Bjbp3x6k8MvTeVPFVgLbUU=; b=JrpF20nG0NeQS9N2jllu71jtRtwDuY0MYv1Mx8nIuSFFDK1i+QwOwZdVMhFx2KnLKj 59fOZY2YutA3x9YcOd6T1G5H1VL+ie6JQ4UZBUnXMwEUK/8SizaXNA4RV+UGevynDWEF nC2stWqp99Rl+kj1lhgsrPf942M4wUHaOCrAzldYuThKhrGTm4X2yFjfUJM8ziQ2CG9L W8agLKMSftkKNatM6wF6ZucACp0WZEVeUIvix7SW77ZVyQjuz0iF/39MJT5yiOGIMa/h msI/guBk/PRJMcsO7TfM0gg+T9zANzD2j5TIw6AXiQCe3ygkHuR1h5WKygLMLOLIMpJL VDIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697091558; x=1697696358; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OP6CltxnY4Me7Dc35n6Y2Bjbp3x6k8MvTeVPFVgLbUU=; b=B/CoPNlAvghDP4dJgkoMgH8nCz92uPk0AcUsjjPR14Rur1Lt3ke/M3h4zd1ut1Hcxb VPAjQawViyhAhsfXse91vTyolZ8URPmkw4w30KHk8kN1dg+Ja0eMvj5R/XSAQuwNU/2p O5nOA0yAI3KiSBEIwqbqLNVNzZip0kOCRKHss2PKYwr2e4+MgKSK77dmkx4Wt/Z2Ar+l 36MN/s4zrqb+u57uN/RkjV3zABCWop9WcrtcQiDSJvD9HY8nUWPDZDyE2HAbd+qfVDkX c+zDRhwG/bm34Q2tiyzYuNEBIaRWABWRejqZoKNanQGdSmhgZkOsTBwEV/jZBPQWp+u/ dxVQ== X-Gm-Message-State: AOJu0YzjIlvpVNTwsgH0UpZ+DVmb9aFcVhM6dMAkRNXNE5qsQbVuSFeo 2IeNFgmyYtL3u3RT8JinPFM= X-Received: by 2002:a17:906:318e:b0:9b2:d554:da0e with SMTP id 14-20020a170906318e00b009b2d554da0emr18382302ejy.69.1697091558223; Wed, 11 Oct 2023 23:19:18 -0700 (PDT) Received: from gmail.com (1F2EF405.nat.pool.telekom.hu. [31.46.244.5]) by smtp.gmail.com with ESMTPSA id j16-20020a170906051000b0099bcf1c07c6sm10688100eja.138.2023.10.11.23.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:19:16 -0700 (PDT) Sender: Ingo Molnar Date: Thu, 12 Oct 2023 08:19:14 +0200 From: Ingo Molnar To: Josh Poimboeuf Cc: "H. Peter Anvin" , Linus Torvalds , Uros Bizjak , x86@kernel.org, linux-kernel@vger.kernel.org, Nadav Amit , Andy Lutomirski , Brian Gerst , Denys Vlasenko , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() Message-ID: References: <9b71932a-d410-4b92-b605-d6acc5d35069@zytor.com> <20231012013507.jrqnm35p7az6atov@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012013507.jrqnm35p7az6atov@treble> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 23:19:29 -0700 (PDT) * Josh Poimboeuf wrote: > Though, another problem is that .text has a crazy amount of padding > which makes it always the same size, due to the SRSO alias mitigation > alignment linker magic. We should fix that somehow. We could emit a non-aligned end-of-text symbol (we might have it already), and have a script or small .c program in scripts/ or tools/ that looks at vmlinux and displays a user-friendly and accurate list of text and data sizes in the kernel? And since objtool is technically an 'object files tool', and it already looks at sections & symbols, it could also grow a: objtool size command that does the sane thing ... I'd definitely start using that, instead of 'size'. /me runs :-) Thanks, Ingo