Thread (24 messages) 24 messages, 9 authors, 2021-01-25

Re: [PATCH v4 00/10] Function Granular KASLR

From: Kees Cook <hidden>
Date: 2020-08-03 21:41:11
Also in: lkml

Possibly related (same subject, not in this thread)

On Mon, Aug 03, 2020 at 05:12:28PM -0400, Frank Ch. Eigler wrote:
Hi -

On Mon, Aug 03, 2020 at 01:11:27PM -0700, Kees Cook wrote:
quoted
[...]
quoted
Systemtap needs to know base addresses of loaded text & data sections,
in order to perform relocation of probe point PCs and context data
addresses.  It uses /sys/module/...., kind of under protest, because
there seems to exist no MODULE_EXPORT'd API to get at that information
some other way.
Wouldn't /proc/kallsysms entries cover this? I must be missing
something...
We have relocated based on sections, not some subset of function
symbols accessible that way, partly because DWARF line- and DIE- based
probes can map to addresses some way away from function symbols, into
function interiors, or cloned/moved bits of optimized code.  It would
take some work to prove that function-symbol based heuristic
arithmetic would have just as much reach.
Interesting. Do you have an example handy? It seems like something like
that would reference the enclosing section, which means we can't just
leave them out of the sysfs list... (but if such things never happen in
the function-sections, then we *can* remove them...)

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help