Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2019 03:38:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 241728] linuxkpi: panics after loading radeonkms kernel module (data storage interrupt trap)
Message-ID:  <bug-241728-4077-AKe2NorDo2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241728-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241728-4077@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=241728

--- Comment #25 from Brandon Bergren <bdragon@FreeBSD.org> ---
See also https://reviews.freebsd.org/D22317

The pcpu and vnet linker sets (implemented as custom elf sections) depend on
being able to be manually relocated by the kernel linker to an arbitrary
location to actually work, so we can't allow relaxing references into
displacement-via-r2 because it's not necessarily a specific distance from ".",
and in this case is not even in the same map area (the symbols get relocated
out of KVA and down to the DMAP manually by the in-kernel linker so they land
in the reserved space for the data structure, and reads/writes are required to
add a base address to get from there back up to the KVA copy)

Either we're doing a gross ABI violation or clang and lld need to not relax any
references to sections with c identifier names (i.e. the ones not starting with
a dot.)

I'm not sure which.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241728-4077-AKe2NorDo2>