From patchwork Mon Jun 27 19:05:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 12897010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B50DC433EF for ; Mon, 27 Jun 2022 19:06:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240103AbiF0TG0 (ORCPT ); Mon, 27 Jun 2022 15:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235718AbiF0TGZ (ORCPT ); Mon, 27 Jun 2022 15:06:25 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67C552627; Mon, 27 Jun 2022 12:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656356778; bh=byy4E4EiJd0hCnXHmLJQZVe2F93ir294u7Rcd5JqdM4=; h=X-UI-Sender-Class:From:To:Subject:Date; b=aE2wIFFVNNeiqP/wqCcKS3AnWp5JhwkIakaAqwFWDARR/s2WnhnlqNGrFHU4uW/3v ZLHyYPS1c22i06V0nNUK4rL7J36cKyuN8CgRHbsx5rXSXxdOXbROYxI0ivuTpW2OW5 TBfU/I7ON20RJTFlJ1duVFHlRvng5hvYSXONStvg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ls3530.fritz.box ([92.116.176.39]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M2wGs-1o4n4A2hUi-003JuJ; Mon, 27 Jun 2022 21:06:18 +0200 From: Helge Deller To: mcgrof@kernel.org, jeyu@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH 1/2] modules: Ensure natural alignment for .altinstructions and __bug_table sections Date: Mon, 27 Jun 2022 21:05:50 +0200 Message-Id: <20220627190551.517561-1-deller@gmx.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Provags-ID: V03:K1:tDjHc/AtG5ryQJBeAYXVlyFl2ik7Oe2mNxsz3suMzz3oXSq4X4w 9Hiat9N9u70hSW0Md276tcPPTDkDDYMlh/pnQjDVi5WwCtlCFn4aWAiPirAbHTS2A/PwVU3 7mrRWmNol0ejPz49RXvG9a5OOMrgeoPMIEoiN12QQx36PTUcS/mmbfq2/U0c6fINzND9/x9 Rl3xhBT3vvwzQb44fZcnA== X-UI-Out-Filterresults: notjunk:1;V03:K0:HP79HB2Hc9M=:eq+bDKebwImE9OIBQW47+y B6TS59ZEpB20QkT673aoRAgaosNayuALbVUcc02xsm/ojIpRW/kYwVabY30qDfcQSKuEIewSn aCOwNGYmwr12V6Es3y348Kf80KOoCQAS+0aeze6fIuW1Rwlzz6hOnIAzi9Fq2QVAmcOam0SGm CdkZ4TyxJLt7lflRggXKcW//UCmOxmAANDagSMuWIfgj+/zeqcB+s1kiEzGXCrbR4kZQNJHKv 0zsdoFJTsq/BvNkXS9BitIrURHGZjA6x2Lh3mafLs+YwD3pQx/tMVN6vkK7ST3TDfZtzdpx9A o3VDpeFsKWO4waSc+1WbOXKEyIgYXuMXzBaqK2fth4xoiGbDVvmeUmdhxkC9wzZrSzpUs4iMm Pm3M01vXXdjkO744HASC3x8glQZhIvsLVfZMzoz6HHn1D4dEcCIGR/hFYQLC0uboEuzmwe1oG kyAE2+RVHCzgtPecwLA6yb2AegwJlmDqHVKjgRnWRhyRbL8tdxSPA2qdFmQlvza5CGOwc3jWP kaWyMqi01V1WKNMsS4aVscdcu2SKTO54dxLI/iYT8LzeSi+rbjS18YPt7K0w4FhtZmc66nLNs udMm3Dd1JbEw+PVcWlc44ZPYpefnC7f2GkbF2YiY4AkhJEKWSI+huGtvY4kYAphX3xgg++GT7 t3VgVU5HOvsU1terHFYeRR7YU8rDN1tj7zDOBidf7PL+t5dk9jlMUwrCYIsXIOKMSY0WhxDaY GeuzXUnGMtoaDm4atwPIb3RyfuRu+hkVSI9fkzsEJY4bDvPUQ0kbnc/q6hFSCaWxwG32U1PZt pGzFWoT+4lvQ/DcdkhbU85fNL0FiCXUITLONbEsxJozno/AWmZmqDjcI6W4OCLfK8lD8jrfRv sPra+ETeD8D+LgPosdaGeDfgnDjm7JPEwma9t07tHArhiJyNfpx6LFk/Iu88RhLGcy6zQWL5I 0YOilTQacuwR9sW6nwkfU50y3X0yq1ntLnwPTFRspF6rH5bAmBzpToZFSMb82HjFiPHFiFpfV HOntSAx23rQdE+jpjUqt44GcBB+iy0uJRBfbMxV+KGxG20WdktJ4GpOsYl187Dt32uWE0Hbty mKbxQLj6XPIGJh2rzIunhysP3O4QeKPguVuyKBJk38951QjN24IwxwgtA== Precedence: bulk List-ID: In the kernel image vmlinux.lds.S linker scripts the .altinstructions and __bug_table sections are 32- or 64-bit aligned because they hold 32- and/or 64-bit values. But for modules the module.lds.S linker script doesn't define a default alignment yet, so the linker chooses the default byte-alignment, which then leads to unnecessary unaligned memory accesses at runtime. This patch adds the missing alignments. Signed-off-by: Helge Deller --- scripts/module.lds.S | 2 ++ 1 file changed, 2 insertions(+) -- 2.35.3 diff --git a/scripts/module.lds.S b/scripts/module.lds.S index 1d0e1e4dc3d2..3a3aa2354ed8 100644 --- a/scripts/module.lds.S +++ b/scripts/module.lds.S @@ -27,6 +27,8 @@ SECTIONS { .ctors 0 : ALIGN(8) { *(SORT(.ctors.*)) *(.ctors) } .init_array 0 : ALIGN(8) { *(SORT(.init_array.*)) *(.init_array) } + .altinstructions 0 : ALIGN(8) { KEEP(*(.altinstructions)) } + __bug_table 0 : ALIGN(8) { KEEP(*(__bug_table)) } __jump_table 0 : ALIGN(8) { KEEP(*(__jump_table)) } __patchable_function_entries : { *(__patchable_function_entries) } From patchwork Mon Jun 27 19:05:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 12897011 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23D81CCA47E for ; Mon, 27 Jun 2022 19:06:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240152AbiF0TG1 (ORCPT ); Mon, 27 Jun 2022 15:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240126AbiF0TG0 (ORCPT ); Mon, 27 Jun 2022 15:06:26 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1DD52633; Mon, 27 Jun 2022 12:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656356779; bh=R/qipisl2syKO7HuuaFI9NW1bwuOk9k4IT6q8rnJ5lk=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=Q71SYLwhvUoc4KOpTwY6mHTTSQyPMrWJUti8DJKu4PJHYh6ac197bnFKGlDB0S/kK iSBgMY5ZcQr22X9qNE23HSDKTI+i0icxFziOhu6RVBkPDD5if2I4Qp5ADEHJuT4686 df2tS1uEsCuwv55r57Qbg+Y3y1p4UaN2aV+Wq4Hs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ls3530.fritz.box ([92.116.176.39]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MPXd2-1oJZ4C3b7a-00MdAn; Mon, 27 Jun 2022 21:06:18 +0200 From: Helge Deller To: mcgrof@kernel.org, jeyu@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH 2/2] MAINTAINERS: Update file list for module maintainers Date: Mon, 27 Jun 2022 21:05:51 +0200 Message-Id: <20220627190551.517561-2-deller@gmx.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220627190551.517561-1-deller@gmx.de> References: <20220627190551.517561-1-deller@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:GX33wLBAVhASID2agrbjDjTpqdYIF8ASsWJcP8T7Q0fCa6QHN7S VEk2mh6wNObAhpyPImperMU+qyaY+HhMEPSS0tpUovfPCT/++P28oz9Arm5PrMqHgIvA76q lB9l+TafR0otFi/CJcvBFV+C2NArNJd5hrrYYPpSw8Wz3zWGNiTh1O8h/y2BzA6cw7m27MP jBmK2glRXhbpD2Lsq+9jA== X-UI-Out-Filterresults: notjunk:1;V03:K0:5aw0eG7G8b8=:rDHNEVwKNUkgHyGGqy853X pGJvpL7VVKE0kug0/VobqDB0R48sIVHfVjsZhxYiL9FMRJWWP8HrinmY9TtFihD7xa6K9ax0v eCwJkOj6Q8t15vak/lQSAZfaqq6dDAjfiX8kHyFgVBF97TavhVi3a8vr8JsUU14vrBUtmvbJw fr05nKvFQMRlqwuzrNVX8gR5Sr53MLvvIsqnqvN/Lf9MF4TD3KacxS+ljE01ZhqC0/8v9tp0f AyRhqh8b2HT495aI2UyzNS0Y/jshhW64+gTZj9gH+5m87ISRJ3/V+d07O7gGCR9mjVX09TlUd ZAhWyAwb6ZmbXA+P6i7p8fIiUK6yILUK7ARwy/1hrEcAjkQ+uLYEECqO08CclDOBSnNnM7Hrq bivp3apjYzAGRXhvAgHh+XPiAR6THjsN6KvLrls74TKDrLWeeGmwsi6zsggZ7ByWZj9kMqRE/ /fvdWcMh1kO6eqPwRd0bZfx4RKcIzb5d9JZccpHiITKdsT4b8KaMKklfPkPnaEPzGaRFKpQK3 eDQLdzkfelJKHoDAS2rRtUOh91JbeFwdBc/3A2zIzRXRVIkAtcLAniiKtF5u/uGxmigA4XPDl UGweKxUmxHb0Ia73Hd4dewDMh3tijwM/uGKPHMhcxapDgT+KU+Pu2L88HqyKU+2gkub50LGhN S+CveWmJkjln7D9h6oq0kNTx6lH3Dl8s+H8iWzrBHb3LffUOGu1X1ojsc2GmPDFvgd1vXVKW2 AI+gUFqZrXQiV3/2Xv7YHc3jII47cW0tBQ94LXb6gDnTbJED2D1b1K9q/4gBeT03XcPYva0dY Jo85H5Hduj5veesShItRalwWZW790ojtELZCSqCqY4wMfL+WsedsrnnNc05/j3/CkCBmT7fMA 1gMSfUw/T6Ix3UvCKFllXcwkkmzuZEcRBGdw9/YF0kfesKLKniTQGYzvCLKFipizLb7M5yL/Z f8P3O8/cgLF8DJm4cN8Ts9J9O03G4Bl6KKOW6gK5X9su0aUyn6OOeRq3ofOw77zlkFKA6WAWQ sJlxlmnk68j95b4PXWt9Cx3nvEc40PdKAYbBzFQHhX7Si2NZkbYw/BmpggpCaQH505cH3RDD+ jU5EbSe1SugF4L6NrmQIFbqR30o32G5dFxjPzVKzQX/v9+I0DsK1p+p5A== Precedence: bulk List-ID: The scripts/module.lds.S and scripts/modules-check.sh files should be maintained by the "MODULE SUPPORT" maintainers. Signed-off-by: Helge Deller --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) -- 2.35.3 diff --git a/MAINTAINERS b/MAINTAINERS index fe5daf141501..6073fc7c0fa4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13471,6 +13471,7 @@ S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git modules-next F: include/linux/module.h F: kernel/module/ +F: scripts/module* MONOLITHIC POWER SYSTEM PMIC DRIVER M: Saravanan Sekar