lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YcNvUAMaRKBzUUcy@archlinux-ax161>
Date:   Wed, 22 Dec 2021 11:32:48 -0700
From:   Nathan Chancellor <nathan@...nel.org>
To:     Naresh Kamboju <naresh.kamboju@...aro.org>
Cc:     llvm@...ts.linux.dev, open list <linux-kernel@...r.kernel.org>,
        Linux-Next Mailing List <linux-next@...r.kernel.org>,
        Linux ARM <linux-arm-kernel@...ts.infradead.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Arnd Bergmann <arnd@...db.de>,
        Catalin Marinas <catalin.marinas@....com>,
        Ard Biesheuvel <ardb@...nel.org>,
        Nicolas Pitre <nico@...xnic.net>,
        Linus Walleij <linus.walleij@...aro.org>
Subject: Re: [next] arm: current.h:53:6: error: out of range pc-relative
 fixup value

On Wed, Dec 22, 2021 at 11:57:20PM +0530, Naresh Kamboju wrote:
> [ Please ignore this email if it is already reported ]
> 
> On Linux next 20211220 (and  20211222) tag following arm config builds failed
> with clang-11, clang-12, clang-13 and clang-nightly.
> 
> Build errors:
> -------------
> In file included from /builds/linux/kernel/sched/core.c:10:
> In file included from /builds/linux/include/trace/events/sched.h:8:
> In file included from /builds/linux/include/linux/kthread.h:6:
> In file included from /builds/linux/include/linux/sched.h:12:
> /builds/linux/arch/arm/include/asm/current.h:53:6: error: out of range
> pc-relative fixup value
>         asm(LOAD_SYM_ARMV6(%0, __current) : "=r"(cur));
>             ^
> /builds/linux/arch/arm/include/asm/insn.h:25:2: note: expanded from
> macro 'LOAD_SYM_ARMV6'
>         "       ldr     " #reg ", =" #sym "                     \n\t"   \
>         ^
> <inline asm>:1:3: note: instantiated into assembly here
>                 ldr     r2, =__current
>                 ^

Report on our issue tracker with discussion:

https://github.com/ClangBuiltLinux/linux/issues/1551

Ard has a fix that should resolve this here:

https://lore.kernel.org/r/20211222104939.1154570-1-ardb@kernel.org/

I am about to reply with a Tested-by tag, I have tested LLVM 12 and 13
and my 14 build is running right now. Might be helpful for you to run
that patch through your matrix as well.

Cheers,
Nathan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ