From patchwork Tue Feb 28 20:15:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 9596687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9447C60429 for ; Tue, 28 Feb 2017 20:16:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8623A208C2 for ; Tue, 28 Feb 2017 20:16:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 791492807E; Tue, 28 Feb 2017 20:16:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D7527208C2 for ; Tue, 28 Feb 2017 20:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YYqlIUCmT5TUkd6mz1M5LjV1YlV4xtyOsPbCizSQ7Sc=; b=cUKwCCkdE7WqbUpesoPHe5mke K2IppQxJ2QT47c0W/TQJ5vmtQE6qjvW/HNXH4RLnZZjv76o2Z8nneewS5Dqs39maVudMeasw2KMiy OeSNEPHfs+o14kPxd8fO52F6ZebSkyaiFEOtVN2tAVpFLIALq5dqgOEhlBk1ToLVdI2Q3rQyZF4fN p+7SfZJVtzlrc0ukIj5JB1fDRSHNGsbEUuLGj9eySS1zsUms93VM+fL3Opv/4mvdk7uAgnvwg1Hzk nhFBiL5PF2G/+mlELWY1tULKPqvDeAvmtuIILOgishLqZoeyvtV2GF13Oy312mBNCeJqiwQr/MuwO 3sQus697Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cioC7-000738-Dj; Tue, 28 Feb 2017 20:16:23 +0000 Received: from mail-by2nam01on0627.outbound.protection.outlook.com ([2a01:111:f400:fe42::627] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cioBK-0006p4-UF for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 20:15:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Qeuud18Wuj2agM1S6TnXS9UMy4lkl30tLN+jqseEkzg=; b=UmWQkSy+Sk1MhJz3NLG0wLh3dXAVilG2DnR3tqa7nL+Mji0OrvZgGxgdqfGWwYvQIaOxaLosDDYNKh6NpWUy+k/4lOQl5KqaAYuynOYdS4KOKan3H1FdpqRhK+6onamEnDoQZWHs4bD+ISiL4q0b/leXMmqSlZCTE/qf7o8q6EA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@cavium.com; Received: from ddl.caveonetworks.com (50.233.148.156) by BY2PR07MB2422.namprd07.prod.outlook.com (10.166.115.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Tue, 28 Feb 2017 20:15:11 +0000 Subject: Re: [PATCH] jump_label: align jump_entry table to at least 4-bytes To: Jason Baron , David Daney , Steven Rostedt , Sachin Sant References: <1488221364-13905-1-git-send-email-jbaron@akamai.com> <93219edf-0f6d-5cc7-309c-c998f16fe7ac@akamai.com> <20170227160601.5b79a1fe@gandalf.local.home> <6db89a8d-6053-51d1-5fd4-bae0179a5ebd@caviumnetworks.com> <20170227170911.2280ca3e@gandalf.local.home> <7fa95eea-20be-611c-2b63-fca600779465@caviumnetworks.com> <20170227173630.57fff459@gandalf.local.home> <7bd72716-feea-073f-741c-04212ebd0802@caviumnetworks.com> <68fe24ea-7795-24d8-211b-9d8a50affe9f@akamai.com> <510FF566-011D-4199-86F7-2BB4DBF36434@linux.vnet.ibm.com> <20170228112144.65455de5@gandalf.local.home> <1de00727-de97-f887-78bd-dd49131cdf61@akamai.com> <999e2c3f-698c-703c-67a9-26aea3c97dc0@caviumnetworks.com> <542488db-5c59-afa5-6d1d-a437c87bc613@akamai.com> From: David Daney Message-ID: <912fa97a-aa1d-c0e4-dc83-fc5c745db1c1@caviumnetworks.com> Date: Tue, 28 Feb 2017 12:15:10 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <542488db-5c59-afa5-6d1d-a437c87bc613@akamai.com> X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR07CA0044.namprd07.prod.outlook.com (10.169.230.30) To BY2PR07MB2422.namprd07.prod.outlook.com (10.166.115.14) X-MS-Office365-Filtering-Correlation-Id: cd2ef268-e43b-4f48-ba07-08d46016806f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR07MB2422; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2422; 3:X3+ug+6ty8MuU6plMmb8PQDcruM/xF1rI446jmqvgSu+MLCAbld1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20:JLlC0zZuF1HhdyxwMtIxua4SDKz5+8zGA6LXnmSlRyesovcwdb80Vp0sotjJbb4XbWwg7COkAGeVcp86+BT1HEhDtYaH9ih+ek2/2fhmkWW2dfvLEEjgcTO+riKqWvm40+c0E9AvnvGU3eBjo+LGPwzqzhPOkdcz8xMTIX80/deoCTqGN7E8dPZCLPiAnTIZlp9vE9TOPNKFXuLCLzN5U8Qwv9hNBqQQs06QN55sbNhA3vC7P1s+Xq6Q6vIwqTNihoR4b7A1wRX0v+/h0NL8YIbj6N0YZX40L/riXqjkXR8T93q5NmFFx8qNMVlJSIAG/+4OUdymozl/XznN7235XB+Q6QloNRGWtwcv2SVAOZUjp1fCW+H2RfVh47gy4IX1DV+d4ubstw5zegj6xkE/1ZUe23hqrSIrltN1xJFSMgCtCz3WRsPqzZJ4H9AahtibNqzf26ouEcIfGytfbq/YuJeMS9D107yYl7t9T5kRO3oER8amNjx6qdXG9aqtEYcWihRT49EOkuZwU69GoOMFc1auT+yvpMJiWac1yENHo8Ma4y8gMRHtJ9SVsm/X8VlPIMhFJ9SsIQrg21DFEqU2r1QkAt4hABTN8PzhA8g4OwE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415395)(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123558025)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:BY2PR07MB2422; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2422; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2422; 4:oEl6g9yIy3yDlKlfYUMfD9VIKs9jEx0Sg2tXMRaoyaJU5Xr9M+M6tPBXba9+cSlMWvjTGmV1CTzxH9Kid1lhHhvdscG0kGJ7DAfipyvx6PPXY4f+l2bqTP/IHezTrm7ctyd/EGVp2ONPEb7j63xfr+XkD7PfiAF6xgA9trWqtiQvVwz3u9UKGyXMHXdQsK+zRFBagj2fEMh3MiKEqkDDcoy8RdjnupMRIHY6xobK9dEeDSu+dZZtshAE6XbKCAPP6dFsXUYhlG6135tFXKU3ICJ9aNAgM7oXT0kaJLoEGqW5tjWY1EelE2qKmRwq+g4I6HWhCmsKV9dk//40QcgR40dJ2yjovMqthz7rEIIwEndyTOyEAjeDAFwHi+wcrhCytk+qZ51ldnot90OrsBFsSgXbcUY/twjbk2FMi71nt5j/8e3UVEdUKHbrycb380BEFhXnKnBs0KiWC8vMBcxlgHzOG8LGPjOMjuLUMdl1tq3eiOslWQYl1YIhv46rki9Jv9hfgyubDNF06Nug7zcFUElIiaxp9ix+rdENyEc10EsRjLc5e2vS/RkFAdI/f2GJAJlpGzlCnoPM+xGe7P3cLfSJOLWh0DBgrH5ICUOfDmMcpW89H6yHtE5hnWeSr8Ez X-Forefront-PRVS: 0232B30BBC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(189002)(377454003)(199003)(24454002)(305945005)(106356001)(105586002)(7736002)(68736007)(65806001)(7416002)(53416004)(42186005)(54356999)(568964002)(81156014)(8676002)(31696002)(65826007)(4326008)(69596002)(81166006)(25786008)(2950100002)(93886004)(42882006)(33646002)(5660300001)(229853002)(83506001)(38730400002)(3846002)(76176999)(6116002)(53936002)(84326002)(6506006)(53546006)(6246003)(64126003)(31686004)(5890100001)(270700001)(92566002)(6512007)(66066001)(54906002)(36756003)(65956001)(4610100001)(4001350100001)(2906002)(6486002)(50986999)(189998001)(97736004)(2476003)(101416001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB2422; H:ddl.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB2422; 23:wfuWtL4m5437KxZiHgkpCZf3L9Zh4+813hXliSNSU?= =?us-ascii?Q?Y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AQAD/EvMJNy6bals6E5BdfFhu4ynTb6VQoJtn1i4+LKxDn2sxNx3tbj0q0bvEfsrXcTuMUYQ==; 5:3x89/QxkcI7VKB6C95n2TXg13q+yjzB53y3fXGI/bgexJbfgbj1UTJP7XB0udBW+tdYFm9vCz4blPDcnrB8bGUS4JzSrh1w8NkITTtFb0G+2H+tRUG9mAF6M1bT0Mfp3Tgezqc09EV4dXJ6TJcMS6uXLwQOt7iZMqj6pqg3tR7M=; 24:A9UTMD1E10lXqtjKTRPMWhAVHVCAHVJlSqdtclcONyNiC8hq4WUkUQsyEne8h6WHIOsOwX2tX4ylnY8Llpvc4MtwkX7hAothXwJcD6wVr7U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2422; 7:Bfn7r1LH/ufF4jI5H5Js8lW4SCXM+EzHyZitzhxkpLH283QYKarAOwoD+Zf/9fEt+BDe/vL/OGJbnTlENCX6nmwcSPE4/AdvKJmZX4Pwxa2G4EcR9YK3fv8Egymfj0IeXVaZfVM+xE6aEa8uesi3Ljqw4xQR2VF6YiG0dxTEG/WiOSjthbzxK6eup0leJwfxycEDjmgPAw/POhbfvUpsMICh48wvm4zyl7smD8W4aAzy/TZftk1R27Mf+b04GlDe7uiXTD6mwE9aoDFT+1XZQj2BQd2LsuHSmb+ibDFppZH6MYUanqn/LgafhLlSyqJv7Fk0uWYrjFAJZuF+DjIjYQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2017 20:15:11.6903 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2422 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170228_121535_116738_9EF8ABF7 X-CRM114-Status: GOOD ( 19.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mips@linux-mips.org, Chris Metcalf , Michael Ellerman , Russell King , Ralf Baechle , LKML , Rabin Vincent , Paul Mackerras , Anton Blanchard , linuxppc-dev@lists.ozlabs.org, Ingo Molnar , linux-arm-kernel@lists.infradead.org, Zhigang Lu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On 02/28/2017 11:34 AM, Jason Baron wrote: > > > On 02/28/2017 02:22 PM, David Daney wrote: >> On 02/28/2017 11:05 AM, David Daney wrote: >>> On 02/28/2017 10:39 AM, Jason Baron wrote: >>>> >> [...] >>>>> I suspect that the alignment of the __jump_table section in the .ko >>>>> files is not correct, and you are seeing some sort of problem due to >>>>> that. >>>>> >>>>> >>>> >>>> Hi, >>>> >>>> Yes, if you look at the trace that Sachin sent the module being loaded >>>> that does the WARN_ON() is nfsd.ko. >>>> >>>> That module from Sachin's trace has: >>>> >>>> [31] __jump_table PROGBITS 0000000000000000 03fd77 0000c0 >>>> 18 WAM 0 0 1 >>> >>> The problem is then the section alignment (last column) for power. >>> >>> On mips with no patches applied, we get: >>> >>> [17] __jump_table PROGBITS 0000000000000000 00d2c0 000048 >>> 00 WA 0 0 8 >>> >>> Look, proper alignment! >>> >>> The question I have is why do the power ".llong" and ".long" assembler >>> directives not force section alignment? Is there an alternative that >>> could be used that would result in the proper alignment? Would ".word" >>> work? >>> >>> If not, then I would say patch only power with your balign thing. 8-byte >>> alignment for 64-bit kernel, 4-byte alignment for 32-bit kernel >>> >> >> I think the proper fix is either: >> >> A) Modify scripts/module-common.lds to force __jump_table alignment for >> all architectures. >> >> B) Add arch/powerpc/kernel/module.lds to force __jump_table alignment >> for powerpc only. >> >> David. >> >> > > Ok, I can try adding it to the linger script. > > FWIW, here is my before and after with the .balign thing for the nfsd.ko > module on powperc (using a cross-compiler): > > before: > > [31] __jump_table PROGBITS 0000000000000000 03ee3e 0000f0 > 00 WA 0 0 1 > > after: > > [31] __jump_table PROGBITS 0000000000000000 03ee40 0000f0 > 00 WA 0 0 4 > Try the (lightly tested) attached. If it works and Steven likes it, perhaps someone can merge it. David. From 89d4deafbc920351b93afb1ac4b4124995e1f19d Mon Sep 17 00:00:00 2001 From: David Daney Date: Tue, 28 Feb 2017 12:10:02 -0800 Subject: [PATCH] module: set __jump_table alignment to 8 For powerpc the __jump_table section in modules is not aligned, this causes an OOPS when loading a module containing a __jump_table. Fix by forcing __jump_table to 8, which is the same alignment used for this section in the kernel proper. Signed-off-by: David Daney --- scripts/module-common.lds | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/module-common.lds b/scripts/module-common.lds index 73a2c7d..53234e8 100644 --- a/scripts/module-common.lds +++ b/scripts/module-common.lds @@ -19,4 +19,6 @@ SECTIONS { . = ALIGN(8); .init_array 0 : { *(SORT(.init_array.*)) *(.init_array) } + + __jump_table 0 : ALIGN(8) { KEEP(*(__jump_table)) } } -- 2.9.3