Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp606170rdb; Thu, 21 Dec 2023 22:07:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9Cp3ikpl/m13f6IpR4xpGZZP/A9KY7+QaF5DRBaSMAj9Q/2o1/dhd6GsOpR1qs0b2Ziha X-Received: by 2002:a17:90a:bf05:b0:28b:de5a:2556 with SMTP id c5-20020a17090abf0500b0028bde5a2556mr623981pjs.74.1703225249860; Thu, 21 Dec 2023 22:07:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703225249; cv=none; d=google.com; s=arc-20160816; b=XrMnJHLtXif63+koA6Multc3bqXOjZYL/q+55gYYcp9nUyBqbAs34XLk9wAwGpyIqT t3eisVngPpBqznHzENA07DQ7Tdf6KQ3Ax3zQjgJamkPHhFn8BoEb/4R/4axAxahVHKTK 3dn91yoFcuHnaujL2/rzmHaQ7gdgAXZh903fhsIAz3UJrw4LngCtbePH23UigRCnpc8k ku6jY4rjHHfYpWTWSCQ0YmDPDekHdzz3H3+J1guLFAlN9Qivm7Y5wEuOYL/z2vqH4pcU H363q6GfyhrLklIUJLWUKmRCHPoooSWI2Y0MsZaywn6h0BdSOVBD0Mroe71POE7XrI8v PFUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w9MY9eXNL5W2g7BPEGUzibaZ91+MkZJyljEwF4Vk5yA=; fh=lRTbFD/MB86GU0lR7h3bN31k8Mh/Je6BhWRxsiCNPcs=; b=FD+9ijv3ngvMt+PLcpQlhjaeEF/PdCEYjwvEydoCH2QF53kcDym7DRu7eeyKHEJEEN aySJazmG9Lihi6Am8dPVPNa38jM8XGz+qskyFLcDgwj3bWUEJDokbLjVAFSxjTkYnfav vhfhbiLT7Ltrw9SPGmUyVXC5E/DJqM3QJQe33korrICxeuXTA9D/oR9Y7ZRRxLHRktgQ aVU/o08uwyJk18mrKtgAZSs3HWX5wCFZWX6uCfEE9Qk3D06q6DlZeliVAyUrUoNb0eXb UcZihoDPNAzrA6SdNmTY+0duSPDukVY1LXVRv+0dmXkDI9MzV/oHREpZh3IUD+UC9uTe oKFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2WhdYAI2; spf=pass (google.com: domain of linux-kernel+bounces-9385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a4-20020a17090a8c0400b0028bce5c7247si4436744pjo.95.2023.12.21.22.07.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 22:07:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9385-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=@infradead.org header.s=bombadil.20210309 header.b=2WhdYAI2; spf=pass (google.com: domain of linux-kernel+bounces-9385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 794C0B2177E for ; Fri, 22 Dec 2023 06:07:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 624D76FD9; Fri, 22 Dec 2023 06:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="2WhdYAI2" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 80BB279C4; Fri, 22 Dec 2023 06:07:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=w9MY9eXNL5W2g7BPEGUzibaZ91+MkZJyljEwF4Vk5yA=; b=2WhdYAI2Pjno84kZFvAuqepLxb 2DC69uXoDn0Gzt1zQzYyTV7E7m6RUC1aNGv8kRJsrgBS4gg4aAwYvaz3ev5IBj/WjOFNoq8fwunbf 1mJTpowR5VunDkux3hiU9uFBMkzjXes+inf8P2PJ7J8c1pi/xYvnNgfRfcGW4PTdd+dTr6DY2be+p MNuOEUrPA3tQOdpBWjvly8kLii4Ft0+aLaAHoXX3CLsABsSt3+ktn2kglpkKXl58Nmx1PnY3bl973 uYKy/t0DHV1Q4SGMF6zUPrpsKeTcj2Nz4Go/XVq6bkWzA2VWxDeCEAzB8O8bnfdenNggYFffrPJf2 MrjqEAOA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rGYgk-0052pK-04; Fri, 22 Dec 2023 06:07:14 +0000 Date: Thu, 21 Dec 2023 22:07:13 -0800 From: Luis Chamberlain To: Masahiro Yamada Cc: deller@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-modules@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 1/4] linux/export: Fix alignment for 64-bit ksymtab entries Message-ID: References: <20231122221814.139916-1-deller@kernel.org> <20231122221814.139916-2-deller@kernel.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Luis Chamberlain On Fri, Dec 22, 2023 at 01:01:23AM +0900, Masahiro Yamada wrote: > On Thu, Dec 21, 2023 at 7:22 PM Masahiro Yamada wrote: > > > > On Thu, Nov 23, 2023 at 7:18 AM wrote: > > > > > > From: Helge Deller > > > > > > An alignment of 4 bytes is wrong for 64-bit platforms which don't define > > > CONFIG_HAVE_ARCH_PREL32_RELOCATIONS (which then store 64-bit pointers). > > > Fix their alignment to 8 bytes. > > > > > > Signed-off-by: Helge Deller > > > > > > This is correct. > > > > Acked-by: Masahiro Yamada > > > > Please add > > > > > > Fixes: ddb5cdbafaaa ("kbuild: generate KSYMTAB entries by modpost") > > > > > > > If there is no objection, I will pick this up > to linux-kbuild/fixes. The new selftests I've suggested should help get perf data to cover both modules and built-in kernel symbols given find_symbol() will first hit built-in symbols first before modules with one caveat: we'd want to extend the selftest with a part which builds a module built-in with also tons of other symbols. So I'm all for you taking this but I don't think we need to rush for the same reasons I mentioned in my reply to Helge. I think it would be nice to get real perf data with perf stat as I suggested, and include that in the commit logs. I think it would also be useful to include a description about the fact that there is no real fix and that the performance hit is all that happens as the architecture just emulates the aligment. In the worst case, if exception handlers are broken we could crash but that is rare although it does happen. If we want to go bananas we could even get a graph of size of modules Vs cost on misaligment as a relationship with time. Without this, frankly cost on "performance" is artificial. Thoughts? Luis