Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp190082rdb; Tue, 19 Dec 2023 13:26:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6lJso7Fw3riA9eTljlqqcrvD7hXBC6O+YVrQ3qTqxFEpaktAofAACXRAzo4qiXvVVqz/H X-Received: by 2002:a05:620a:4891:b0:77d:9de1:a5a2 with SMTP id ea17-20020a05620a489100b0077d9de1a5a2mr23555187qkb.3.1703021219634; Tue, 19 Dec 2023 13:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703021219; cv=none; d=google.com; s=arc-20160816; b=tNrJzZ6P4IP/xzYsC0YH5sBpA3CiODRKs4rct+zdiQKN0wcIYoGHpDUQFFQATXAxU1 fOQtUOrjaIVb3G2lmrMUVL1AY8sKcqw2MHbKOs1asIwer9lGChY7JM/HiJmXOlxigwJ8 bphPUWdfbBF8zqqLGyks6jlJ6m/9RS7ZzUSueELA8dSZS1CLK+zjPBhYcics/kyb/+X3 k9qmRF0rcsLhl1BTBC0vWMSEUMGwKAT2f624Zc1Ah9DJESam4rS1JTfvE7RMwcFGnthy U/ah7VKWBRfyeL/CWsktGi7bf8pfL3EXksU4p92WPGdlQC9SwwQLRUYBnNF7LqnV+azz YOtg== 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=D/sKTtPDAr5iC0AD14IbDBFeKu8tPn0IjS+CSIpmRPg=; fh=TYMQPC82ljPToNQyBDrlseu+EpZnNEnN+0t8whQ4wxo=; b=rZwYEJXqC4dbmWhZzEkgbsg1Y4aDajoyBlDh1dkz9OMnKYd8bLNlK1p4Xjmd8D7CPA tNRFjzbGfQoQI/Ozo0z9w+vZd1egrvYYpC/s+lB6wsF8bwzjYSWjzva0CxNT5oebkl6u 4yQmPI5eU+t9pzmm+UOMJSxAxmbqvpPxf6AzFwiM8wejt7Zv7nuc8v3FGt6ELzO6rd5E z5RBasGd9ibUXxZnD+HjcVMQuZoHDJaqZXC80QQOH+Cr0RPqF602sAHOxH30Z5tDKtjM CCnq1JOR6HWZTIQulbJTEPHSFB9C1Vn3C6AGQ3Na0TvPQLEOU2Fs7Rt0yBQiTm12sAfs KSNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eXZqma5S; spf=pass (google.com: domain of linux-kernel+bounces-5969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j9-20020a05620a410900b0077f01ebc03csi27638607qko.397.2023.12.19.13.26.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:26:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eXZqma5S; spf=pass (google.com: domain of linux-kernel+bounces-5969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5969-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 658321C251C9 for ; Tue, 19 Dec 2023 21:26:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E3283B193; Tue, 19 Dec 2023 21:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="eXZqma5S" 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 06AC23A268; Tue, 19 Dec 2023 21:26:49 +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-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=D/sKTtPDAr5iC0AD14IbDBFeKu8tPn0IjS+CSIpmRPg=; b=eXZqma5SpEtW5PR+DeqkGwbNgo Tr+bTZpdqM6yceqzrZ7ODNM2R33dxSpnOAxpY9oShGTFvPwj0XbEcPkI058A8amXOsfGtgL5FLyhM s8cafTfPIHBQT+eFd4wkMaLwXym9YG7UjLPr8cDMDreZuxiJIawwNq5okpI0R8j2fu7SyR9f8aIHH cLlT9Jb5OaNFWwZgD17Ya5FN5N06TDRkdEZOtpLlP1bo2UeIfUn4vMUdtEFDb7KRovXyn6Hrq1DCy tSU5wCl6Uz6oCKw3My2ekgAVBgbgTwm7K2UwLUj23Tf8FrFfjfYyozCPOOh4kmKU0ceTz28CFp2+P gZAIgEJA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rFhc1-00FUrv-2C; Tue, 19 Dec 2023 21:26:49 +0000 Date: Tue, 19 Dec 2023 13:26:49 -0800 From: Luis Chamberlain To: deller@kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Arnd Bergmann , linux-modules@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 0/4] Section alignment issues? Message-ID: References: <20231122221814.139916-1-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=us-ascii Content-Disposition: inline In-Reply-To: <20231122221814.139916-1-deller@kernel.org> Sender: Luis Chamberlain On Wed, Nov 22, 2023 at 11:18:10PM +0100, deller@kernel.org wrote: > From: Helge Deller > My questions: > - Am I wrong with my analysis? This would typically of course depend on the arch, but whether it helps is what I would like to see with real numbers rather then speculation. Howeer, I don't expect some of these are hot paths except maybe the table lookups. So could you look at some perf stat differences without / with alignment ? Other than bootup live patching would be a good test case. We have selftest for modules, the script in selftests tools/testing/selftests/kmod/kmod.sh is pretty aggressive, but the live patching tests might be better suited. > - What does people see on other architectures? > - Does it make sense to add a compile- and runtime-check, like the patch below, to the kernel? The chatty aspects really depend on the above results. Aren't there some archs where an unaligned access would actually crash? Why hasn't that happened? Luis