Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752759AbdDLF6P (ORCPT ); Wed, 12 Apr 2017 01:58:15 -0400 Received: from mout.gmx.net ([212.227.15.19]:64819 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbdDLF6N (ORCPT ); Wed, 12 Apr 2017 01:58:13 -0400 Subject: Re: [BUG] alpha: module xxx: Unknown relocation: 1 To: Bob Tracy , Michael Cree , debian-alpha@lists.debian.org Cc: linux-kernel@vger.kernel.org References: <20170410004755.GA22356@gherkin.frus.com> <20170410094250.gxcne7imso4u2vjx@tower> <20170411034242.GA27395@gherkin.frus.com> <20170411061232.bchlfc73lqx2z2cy@tower> <20170411215716.GA29795@gherkin.frus.com> <20170412025935.GA10065@gherkin.frus.com> From: Helge Deller Message-ID: <127df124-4000-d473-148a-8de03cc48cc9@gmx.de> Date: Wed, 12 Apr 2017 07:57:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170412025935.GA10065@gherkin.frus.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ixCY6Flo/JTtwz1BtVnP7xjHbh6ZH7YWd00mnNh4/tioWpSHaFI Fm8Lw4bj9kr/T4dwLaLq+u4Dwh6+AR7w4yck4ChzshvrtqeTiN+ie1Qs2P2PJbPqo4D9uTI piZIfikehvHTHGyockP02H3vFzf9zYkqMk5DkNwlIHfFtQhlMRFyU0LdO+uLJ+nytyf66CU ZX/O3VxD1rfPJsNcFLuTQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:BhEDHmvdojA=:VWvhdmgCo+/kGGcXk6B9Ox LoekCP/BZbRVr0vdAc64cd4GeXCoZLy5uhkbkL2R+Ew3lqMjKrveVgeRyG3xdJCXDqKFgT+gN daI54kPAB6OdzfR3G8ewLdOJP/YSdI2nATa3UZY1R+og1zdwePcFmXnyH0CXxwsB1v0O+pS+R vCovmJBOLdbU+NgjkvSIX+2ZdT9zgpEq0JpMKt2nwjEEBDe2LM4bQANPNjR0n84mk+zcbfhcP FAMnUgTM6qFIM7xewaAYAVwCKSdpnZQBMkRCReMESh7gRUrpwekqL39yW/B46qQeedZCyITLo NvFnrkJvZoUIqygsie04sJdHgozuI5jt5km45vTAIOnauIWxMPkx3uxFTQ5a12r9t44B0KAty 6iH7UxrWzvoYv5Uz/JkuU+eLBJYEqKfS/K5qSsTkCxuMM+Rx43F5SLL3PYgm9pR9pO8fhygFt UBtFqZQxanOXrLPHFiLIn4+PDr+KFeXFDYeKZTYDRA6Lhoo9i9ps0LoHQ2XrCWQqoC09YlJXd jNt1EXJnePtYDDL8E+o3rIPmrDsSK+6KbTR1cdugVcdLeKrApNie011UzkTqfMdclnwiqk4qw y9/dUvau2Jb2GB1I3U+A1JlkpOQkCRPej7qqiTvPOwLRCV0xVZuBvZXu3oIh/ubRbepEpeINa 7KIEszq28W/bZBvuuLqxVejKLkzDeMv20bAcRjEx1LkiSieFZRW4mAMxz4eDVg9be7UDeWv0U DG/vzdCDHelD7Xrf/VzbNd2DhAV8DdtIR4fp5ABAZEZrJyyalJ4t5/PXukKT/vX3nCtDIy1BE ZNO3Rin Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1689 Lines: 38 On 12.04.2017 04:59, Bob Tracy wrote: > (Adding linux-kernel to the distribution. The issue seems to be > architecture-specific, but I'm trying to understand what broke.) > > The 4.10-rc1 patch set made fairly extensive modifications to > "a/kernel/module.c" (I'm leaving the "a" there so there's no doubt I > mean the top-level "kernel/module.c" file and not any of the > architecture-specific ones). > > One of the changes was to replace an include of with > . This is potentially significant because of the > mod we made to alpha's to fix the BRSGP relocation > error on __copy_user() issue. > > Bottom line is, no kernel I've built since 4.9 can load a module. All > attempts to load a module result in the error message emitted by > "arch/alpha/kernel/module.c" as follows: > > module XXX: Unknown relocation: 1 > > I'll start attempting to revert the recent module patches to see if that > helps. If anyone reading this knows what's happening, feel free to > weigh-in before I spend too much time rebuilding kernels on a slow > machine. I assume it's due this commmit "modversions: treat symbol CRCs as 32 bit quantities": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71810db27c1c853b335675bee335d893bc3d324b For parisc this patch solves it: parisc: support R_PARISC_SECREL32 relocation in modules https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f655322b1ba4bd46e26e307d04098f9c84df764 > module XXX: Unknown relocation: 1 For alpha it seems you need to add similar code to handle R_ALPHA_REFLONG to apply_relocate_add() in arch/alpha/kernel/module.c Helge