Skip to content

ARM: vdso gettimeofday using generic timer architecture

Russell King - ARM Linux linux-arm-kernel 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest posting 3/30 of 6 patches 0 repliesNew
  2. v6 posting 2/30 of 6 patches 0 repliesSuperseded
  3. v6 posting 1/30 of 6 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 2/21 patch0 repliesSuperseded
v2 posting 1/21 patch0 repliesSuperseded

Patches in v6 posting 3/3 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/6] ARM: vdso gettimeofday using generic timer architecture
Quoted 10 lines · Nathan Lynch
Quoted 8 lines · Russell King - ARM Linux

The obvious question therefore is, if the dynamic linker throws its toys out if it encounters a wrong-float-ABI library during a standard library search, why would it _not_ throw its toys out on dlsym. The difference in behaviour would to me seem to be a bug - both should behave the same, though of course not throwing its toys out, but instead producing an error _or_ accepting the difference. Given that it's an ABI difference, rejecting the library is the only sane approach.

Quoted 5 lines

The VDSO would appear to not be subject to the same validation that a file-based DSO is. I'll dig deeper into this to understand exactly what's going on, but I have a guess as to why the VDSO happens to work with armhf userspace: the calling convention is different only for floating point arguments, and there are none in the VDSO routines.

I don't believe the dynamic linker has the necessary information to know whether any functions take FP arguments. I have some armel libraries which definitely make no use of FP, and the linker refuses to use them with armhf.

It's something that the linker doesn't take account of either - we've had issues in the kernel with differing float ABIs which cause hard errors when two dissimilar objects are tried to be linked, even though they make no use of FP. They just seem to need to be marked differently for stuff to complain/reject them.

Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.