[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <da411dfa-3dac-4205-85f5-b99bc35f3333@redhat.com>
Date: Wed, 18 Dec 2024 11:04:25 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: FUJITA Tomonori <fujita.tomonori@...il.com>, davem@...emloft.net,
edumazet@...gle.com, rust-for-linux@...r.kernel.org, andrew@...n.ch,
hkallweit1@...il.com, tmgross@...ch.edu, aliceryhl@...gle.com,
boqun.feng@...il.com, gary@...yguo.net, bjorn3_gh@...tonmail.com,
benno.lossin@...ton.me, a.hindborg@...nel.org, ojeda@...nel.org,
alex.gaynor@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net v2] rust: net::phy fix module autoloading
On 12/17/24 17:51, Jakub Kicinski wrote:
> On Tue, 17 Dec 2024 07:44:00 -0800 Jakub Kicinski wrote:
>> On Tue, 17 Dec 2024 16:11:29 +0100 Paolo Abeni wrote:
>>>> I'll look into it. Just in case you already investigated the same thing
>>>> I would - have you tried the rust build script from NIPA or just to
>>>> build manually?
>>>
>>> I tried both (I changed the build dir in the script to fit my setup). I
>>> could not see the failure in any case - on top of RHEL 9.
>>
>> I think I figured it out, you must have old clang. On Fedora 41
>> CFI_CLANG defaults to y and prevents RUST from getting enabled.
>
> Still hitting a problem in module signing.
> Rust folks does this ring a bell?
>
> make[4]: *** Deleting file 'certs/signing_key.pem'
> GENKEY certs/signing_key.pem
> ....+.........+++++
> -----
> 80728E46C07F0000:error:03000098:digital envelope routines:do_sigver_init:invalid digest:crypto/evp/m_sigver.c:342:
> make[4]: *** [../certs/Makefile:53: certs/signing_key.pem] Error 1
> make[4]: *** Waiting for unfinished jobs....
>
> allmodconfig without Rust builds fine with both GCC and clang.
FTR, I got a similar error (even without RUST) when I had
CONFIG_MODULE_SIG_HASH="sha1"
I moved to
CONFIG_MODULE_SIG_HASH="sha256"
since a while, and that fixed the issue for me (also
CONFIG_MODULE_SIG_SHA256=y is needed).
/P
Powered by blists - more mailing lists