You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libbpf-cargo: Don't provide kconfig data access after "open"
The .kconfig section is special in that libbpf sets its values as part
of the load procedure. That means that until then, i.e., during open,
contents are invalid. To that end the library doesn't even set the mmap
pointer to anything but NULL, despite all heuristics pointing at it
being mmapable and whatnot.
That's a problem for us, because we generate section contents and
attempt to have them reference this nonexistent mmap area, which will
fail.
Work around the issue by special casing this section and not emitting
data access functionality for the OpenMaps type.
Closes: #909
Signed-off-by: Daniel Müller <[email protected]>
0 commit comments