Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2022 17:32:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 264094] VNET and DPCPU defined in modules panic on use on arm64 after LLVM 14 import due to new linker relaxation
Message-ID:  <bug-264094-7501-ossBT4q7Ui@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264094-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264094-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264094

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org

--- Comment #19 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to Jessica Clarke from comment #10)
Can you see offhand why the symbol (vnet_entry_htcp_adaptive_backoff) is
preemptible in the first place?  For arm64 KLDs, VNET_DEFINE_STATIC is hack=
ed
up to omit the static qualifier.  But the linker changes the binding of the
symbol:

cc_htcp.o:
73: 0000000000000000     4 OBJECT  GLOBAL DEFAULT    5
vnet_entry_htcp_adaptive_backoff
cc_htcp.ko:
35: 0000000000021520     4 OBJECT  LOCAL  DEFAULT   11
vnet_entry_htcp_adaptive_backoff

and local symbols have hidden visibility by default.  I'm not sure offhand =
why
it's changed.  I guess -Bsymbolic would have that effect, but we don't spec=
ify
it.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264094-7501-ossBT4q7Ui>