Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp48578rdb; Thu, 21 Dec 2023 02:23:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHokhkmQDE4PcDPY7telPBSGjRLBsOGt98swQjXcCgDO6joLHRBZHpvOhO1m2wpjxXuNMN X-Received: by 2002:a05:6e02:1489:b0:35f:d227:b328 with SMTP id n9-20020a056e02148900b0035fd227b328mr1675254ilk.0.1703154184124; Thu, 21 Dec 2023 02:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703154184; cv=none; d=google.com; s=arc-20160816; b=glnv1FPIlkoPGXZ8tT3y0stUcWaekvjCD2c9e7bQo6Qv0cOkKC/cZUAi2m1yGEGHBw BK4diqwI7F3uwjut8bXSPYldyQXbOTwRoF/ynwaiGzPEYo2hpe1eGwNHXvogY4Pjuh/m TpTvs5clEKJP18Bvdu8Y6XrTTX8pjwOB9jRMgX1MHDSuU1ZVI+Aonb/4tZT2OLMylNEW tdMIYQHl1DZW74UjktKoKTeTxTUc3HyfHH59Izp8dLr5aSVOfhkKc/WjC781rUeAQRf3 0tB1Wbyj3zV0RhLbUsBaplk5yiarmjOASZOpYoq5OROjxLWXn/oJOaJg6PQ7YHtisx66 P41Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=hCC0/cpTb4RXC/DJO9bresMr5wY9Zfccm6BOWXIDPUQ=; fh=3oLi19GBkyhJDnfPDVreUUqO1j4ttvrJvxlwBFT/HZY=; b=s2ul/QCFUBNiTNDrpaXfTD7cgqUZRxJO33YytaEJHXovygBziPASLc27DnGgbE6mZn MwvaK50SdVqZk7QytkC2zr/Mfg8x9QtydejcX18aIguc2uRYPIpvzssJtjqt+fp1iOF3 CYYF9+TDt5pEffIzHLtkCSub7pXWebimhqZhCs2ykuhFb79QWC6yISUAShbTCIvdpKp1 mMu31Kicm00j5nMu7skxWGWeY2mAaRYO0Ij64286sHGr8na17kCiq886wHx2jFjvFodS PX72q4fHOevGzcdlKcdVDKuCds7BZbxlrl3SCdr3gcHkYN1LpnKzhjcaAXaqX2iyXl8k Anjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JHXejGAb; spf=pass (google.com: domain of linux-kernel+bounces-8195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8195-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 u190-20020a6385c7000000b005cd88fb7743si1303954pgd.644.2023.12.21.02.23.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:23:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8195-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=@kernel.org header.s=k20201202 header.b=JHXejGAb; spf=pass (google.com: domain of linux-kernel+bounces-8195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8195-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 33C5AB207B1 for ; Thu, 21 Dec 2023 10:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03B895102E; Thu, 21 Dec 2023 10:22:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JHXejGAb" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 30CA04F203; Thu, 21 Dec 2023 10:22:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C148FC433C9; Thu, 21 Dec 2023 10:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703154168; bh=NLQdNdVs2WfO85/N+bwgl3CF/QIMJF8sPAIBnqfHoyE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JHXejGAbJLvIX1eOdwwOFJuPDKanbcOepVaqG+OgyvvDJHLSOBeO0hvWXVEjxN6tT dY4cSa/6VyYyV78nKvrhu3dBt53Y7+i3hLxeZ99x/Gay4Cnq8Op9uOsyW+ByrLRamF YdIb2+SJzPNrAMM03DSqndLVhpCgItRgZmzmjlZs6IDpKgGSXBnYRO7xUxzoK9MOiF /G9/I2JRPfnBPcbF6rHOFxZZIPTVNQC9dGAO/m2U9oX2gN8IXmVCWdfi+olAiaDVax lOnw/fG950c8sUbB+eT6kwYGg8du/3ER4/qcKt3gBSwvwFc1oBuh1JmTfMpbFCqnS1 QeCDIqvlYW64A== Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-204235d0913so367630fac.1; Thu, 21 Dec 2023 02:22:48 -0800 (PST) X-Gm-Message-State: AOJu0Yyc+8TqvNLH4rq+Dks+QlOtmI+dx5P2r30XjiGL7GMHMtVKv+dP HYLGgInI/pcvSqtJrsAA37uTYSxk7i0QLrvH6cY= X-Received: by 2002:a05:6870:1702:b0:203:bcd8:c5c2 with SMTP id h2-20020a056870170200b00203bcd8c5c2mr1469312oae.78.1703154168121; Thu, 21 Dec 2023 02:22:48 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231122221814.139916-1-deller@kernel.org> <20231122221814.139916-2-deller@kernel.org> In-Reply-To: <20231122221814.139916-2-deller@kernel.org> From: Masahiro Yamada Date: Thu, 21 Dec 2023 19:22:11 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] linux/export: Fix alignment for 64-bit ksymtab entries To: deller@kernel.org Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , linux-modules@vger.kernel.org, linux-arch@vger.kernel.org, Luis Chamberlain Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 23, 2023 at 7:18=E2=80=AFAM 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") > --- > include/linux/export-internal.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/include/linux/export-internal.h b/include/linux/export-inter= nal.h > index 69501e0ec239..cd253eb51d6c 100644 > --- a/include/linux/export-internal.h > +++ b/include/linux/export-internal.h > @@ -16,10 +16,13 @@ > * and eliminates the need for absolute relocations that require runtime > * processing on relocatable kernels. > */ > +#define __KSYM_ALIGN ".balign 4" > #define __KSYM_REF(sym) ".long " #sym "- ." > #elif defined(CONFIG_64BIT) > +#define __KSYM_ALIGN ".balign 8" > #define __KSYM_REF(sym) ".quad " #sym > #else > +#define __KSYM_ALIGN ".balign 4" > #define __KSYM_REF(sym) ".long " #sym > #endif > > @@ -42,7 +45,7 @@ > " .asciz \"" ns "\"" "= \n" \ > " .previous" "= \n" \ > " .section \"___ksymtab" sec "+" #name "\", \"a\"" "= \n" \ > - " .balign 4" "= \n" \ > + __KSYM_ALIGN "= \n" \ > "__ksymtab_" #name ":" "= \n" \ > __KSYM_REF(sym) "= \n" \ > __KSYM_REF(__kstrtab_ ##name) "= \n" \ > -- > 2.41.0 > --=20 Best Regards Masahiro Yamada