Thread (32 messages) 32 messages, 3 authors, 2026-04-14

Re: [PATCH 1/7] x86/vdso: Respect COMPAT_32BIT_TIME

flat view

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2026-03-06 20:53:32
Also in: linux-arm-kernel, linux-mips, lkml

On March 6, 2026 1:42:25 AM PST, "Thomas Weißschuh" [off-list ref] wrote:
On Thu, Mar 05, 2026 at 03:57:59PM -0800, H. Peter Anvin wrote:
quoted
On 2026-03-05 01:24, Thomas Weißschuh wrote:
quoted
quoted
Weak references would be a way to work around the link failures. 
I am still not sure where "the link failures" should be coming from.
The only sense I can make out of it, is if somebody manually and directly links
to vdso.so. Like in the following example:
(...)
quoted
quoted
This actually works on glibc (not on musl). But it is highly non-standard and
relies on multiple implementation details. Furthermore it can fail to run on
systems without a vDSO, as mentioned before.

Is this the usage pattern you have in mind?
Do you know of anybody doing things this way?
Yes, and yes, I do.
Thanks.

Do you know why it is done this way? Are these applications public and
if so, could you point me to them?
In case we stub out the vDSO functions with ENOSYS, would these
applications be able to handle that error gracefully?

Personally I am still in favor of removing these functions completely
when !COMPAT_32BIT_TIME.


Thomas
I think I agree with you (and sadly, no, I can't point at them directly.)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help