public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/28954] New: add Linux Kernel symbol namespace support
@ 2022-03-10 13:25 gprocida at google dot com
  2022-03-10 15:52 ` Ben Woodard
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gprocida at google dot com @ 2022-03-10 13:25 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=28954

            Bug ID: 28954
           Summary: add Linux Kernel symbol namespace support
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Hi.

We have started to see Linux kernel symbol namespace changes break module
loading, without being picked up by ABI monitoring beforehand.

If a symbol has a namespace, then any module attempting to use it (run-time
load check) must have imported (compile-time) the namespace. Load failure can
be commuted to a warning but I doubt we would do that for Android.

In terms of ABI monitoring, a change to a symbol's namespace should be reported
as an ABI diff.

While it might also be nice to store the imported namespaces per module (at the
abg-corpus level), without also tracking undefined symbols this wouldn't allow
any automatic checking of kernel / module compatibility. Also, there is a
compile-time check that does that anyway. We are trying to ensure that
separately built kernel and modules will (continue to) work together.

At a minimum we need the following:

* new ELF symbol XML attribute (and possible documentation update)
* new field in ELF symbol
* symtab reader changes to populate this
* XML writer change to print this
* XML reader change to read this
* categorisation of symbol namespace changes (probably the same as for CRCs)
* symbol namespace diff generation / reporting

I'm happy to start work on this, but would welcome any early feedback.

References

https://www.kernel.org/doc/html/latest/core-api/symbol-namespaces.html
https://lwn.net/Articles/760045/
https://lpc.events/event/2/contributions/220/attachments/44/51/01._Symbol_Namespaces__Plumbers_v2.pdf

Giuliano.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-11 12:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 13:25 [Bug default/28954] New: add Linux Kernel symbol namespace support gprocida at google dot com
2022-03-10 15:52 ` Ben Woodard
2022-03-10 15:53 ` [Bug default/28954] " woodard at redhat dot com
2022-03-10 16:25 ` gprocida at google dot com
2022-03-10 17:25 ` gprocida at google dot com
2022-03-11 12:20 ` maennich at android dot com

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).