From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 75D073858D3C; Fri, 11 Mar 2022 12:20:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75D073858D3C From: "maennich at android dot com" To: libabigail@sourceware.org Subject: [Bug default/28954] add Linux Kernel symbol namespace support Date: Fri, 11 Mar 2022 12:20:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: maennich at android dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2022 12:20:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28954 Matthias Maennich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maennich at android dot com --- Comment #4 from Matthias Maennich --- The namespaces are not part of the linkage name as that would confuse linke= rs, loaders and external tools (and would also break some). Instead the namespace is embedded in the ksymtab along with a MODVERSION CR= C. The ksymtab is basically an array of structs (struct kernel_symbol) that is referred to from the symtab by the __ksymtab__ entries. At module load time, every required symbol of a module is looked up in the = list of existing symbols (largely coming from vmlinux, and possibly from another module) and loading is denied if the symbol has an attached namespace AND t= he module does not declare the namespace as imported. (similarly loading is de= nied upon a mismatch of the CRCs).=20 Hence, the ABI breakage happens if the exported symbol newly has a namespace attached while the consuming module does not (yet) declare the import of sa= id namespace. --=20 You are receiving this mail because: You are on the CC list for the bug.=