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] [thread-next>] [day] [month] [year] [list]
Message-ID: <e55edf6f-2aac-87a5-c0f8-363a536b9f92@gmail.com>
Date:   Wed, 30 Mar 2022 14:40:01 -0400
From:   Ben Westover <kwestover.kw@...il.com>
To:     Masahiro Yamada <masahiroy@...nel.org>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
        Michal Marek <michal.lkml@...kovi.net>,
        Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Re: [PATCH] riscv: Set SRCARCH to riscv if ARCH is riscv64 or riscv32

Hello Masahiro,

On 3/30/22 11:31 AM, Masahiro Yamada wrote:
> On Wed, Mar 30, 2022 at 11:34 PM Ben Westover <kwestover.kw@...il.com> wrote:
>>
>> When riscv64 or riscv32 are used as the value for ARCH during compilation, like
>> in tools that get the ARCH value from uname, set SRCARCH to riscv instead of
>> failing because the riscv64 and riscv32 targets don't exist.
> 
> Can you refer to the code that really needs this?
Some software like DKMS compiles out-of-tree modules by running `uname -m`and
using that for the ARCH value. Without this patch, that compilation fails because
uname shows either riscv64 or riscv32 while riscv should be used.
This code already exists for sparc and parisc, as well as x86 of course.

Thanks,
--
Ben Westover


Download attachment "OpenPGP_signature" of type "application/pgp-signature" (841 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ