New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel version detection does not work with vDSO disabled #1408
Comments
For why support without vDSO is required, see: #1399 |
Can you explain how you disable vDSO please? |
I referred to this: https://stackoverflow.com/q/8280014
…On Tue, 2 Apr 2024, 2:38 pm Lorenz Bauer, ***@***.***> wrote:
Can you explain how you disable vDSO please?
—
Reply to this email directly, view it on GitHub
<#1408 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTVXPKBUGZQJV7MIWMVTUDY3JYSFAVCNFSM6AAAAABFPSE43CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGQ3DOMBVGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There are three different ways of "disabling" vDSO in that post. One of them strips the auxv, which is what we use. I need to know which one you're using / expect to work. |
In Ubuntu 16.04 vDSO can be disabled system-wide by adding the kernel
parameter vdso=0 in /etc/default/grub under the parameter:
GRUB_CMDLINE_LINUX_DEFAULT
I used this method.
…On Tue, 2 Apr 2024, 2:51 pm Lorenz Bauer, ***@***.***> wrote:
There are three different ways of "disabling" vDSO in that post. One of
them strips the auxv, which is what we use. I need to know which one you're
using / expect to work.
—
Reply to this email directly, view it on GitHub
<#1408 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTVXPNSJAMIKTQXEHJ47C3Y3J2DBAVCNFSM6AAAAABFPSE43CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGQ4TKOJUGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Seems like My conclusion is that turning off the vdso is still kind of esoteric, and not something I want to spend a lot of effort supporting. I definitely don't want to bring back uname parsing. It also seems like it's possible to intercept gettimeofday using ltrace, so there is at least one possible work around. If you really want this to work with vDSO off I can only offer you a partial work around. You can adjust Line 253 in a330a78
internal.KernelVersion on old kernels (< 5.0) by writing a feature test (see haveProgRun in prog.go for inspiration) which checks whether the kernel requires KernelVersion to be present for Kprobes.
|
Describe the bug
How to reproduce
vDSO
on a machine.Version information
main
The text was updated successfully, but these errors were encountered: