From: Dodji Seketeli <dodji@seketeli.org>
To: Giuliano Procida <gprocida@google.com>
Cc: libabigail@sourceware.org, kernel-team@android.com,
maennich@google.com, sidnayyar@google.com, vvvvvv@google.com
Subject: Re: [PATCH] Narrow Linux symbol CRCs to 32 bits
Date: Thu, 17 Nov 2022 11:13:57 +0100 [thread overview]
Message-ID: <871qq1q462.fsf@seketeli.org> (raw)
In-Reply-To: <CAGvU0HkKvuKSYdDB4YYKVBB4VE8B9azB4Ojx6Q9qYbdHOROKJQ@mail.gmail.com> (Giuliano Procida's message of "Fri, 28 Oct 2022 17:08:48 +0100")
Hello,
[...]
On Fri, 28 Oct 2022 at 16:13, Dodji Seketeli <dodji@seketeli.org> wrote:
>> The changes look good to me. Do you want me to apply it right now, or
>> do you prefer to send a subsequent patch that addresses the new way how
>> CRCs are emitted in kernel object?
Giuliano Procida <gprocida@google.com> a écrit:
> I'm happy for the change to go in. However, the commit message text
> should be updated. I would make it:
>
> --
>
> MODVERSIONS CRCs are 32-bit hashes of strings representing C type
> elements or typed symbols. The hashes are calculated using a 32-bit CRC,
> hence the name. The kernel module loading code (implicitly) truncates
> any provided CRC value to 32 bits before comparing it with anything.
>
> When support was added to libabigail, values up to 64 bits wide were
> supported. This change narrows libabigail's concept of Linux CRC to 32
> bits. No tests are affected.
>
> --
>
> I'm not sure when we'll get around to updating the symtab reader. It'll
> probably not be done by me. As I understand things, there are
> something like 3 or 4 different encodings of CRCs depending on the
> kernel version and architecture (and that's ignoring endianness issues).
>
> Matthias has even suggested it might be better (more reliable) just reading
> CRCs from Modules.symvers instead. However, that would require more
> integration into build scripts etc.
This felt through the cracks on my end, sorry about that.
I have just applied the v2 of the patch that you've sent 5 days ago.
Thank you for that.
[...]
Cheers,
--
Dodji
next prev parent reply other threads:[~2022-11-17 10:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-27 14:09 Giuliano Procida
2022-10-27 15:53 ` Giuliano Procida
2022-10-28 15:13 ` Dodji Seketeli
2022-10-28 16:08 ` Giuliano Procida
2022-11-17 10:13 ` Dodji Seketeli [this message]
2022-11-11 13:21 ` [PATCH v2] " Giuliano Procida
2022-11-11 15:44 ` Giuliano Procida
2022-11-17 10:10 ` Dodji Seketeli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qq1q462.fsf@seketeli.org \
--to=dodji@seketeli.org \
--cc=gprocida@google.com \
--cc=kernel-team@android.com \
--cc=libabigail@sourceware.org \
--cc=maennich@google.com \
--cc=sidnayyar@google.com \
--cc=vvvvvv@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).