[lkml]   [2019]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[patch 0/5] lib/vdso, x86/vdso: Fix fallout from generic VDSO conversion
Several reporters noticed a regression with the new VDSO. 32bit user space
applications are tripping over seccomp filters with 5.3-rc. The reason is
that the 32bit VDSO syscall fallback uses clock_gettime64()/getres64() for
simplicity reasons. Existing seccomp filters do not enable the new 64bit
syscalls and prevent the applications from working correctly.

The following series addresses this by using the legacy 32bit syscall as
fallback in 32bit VDSOs.

Note, using the legacy syscall fallback is opt-in for now because otherwise
architectures which have their conversion queued in -next would break.

Once all are converted over, the conditional and the 64bit fallback
implementation can be removed.



arch/arm64/include/asm/vdso/compat_gettimeofday.h | 40 +++++++
arch/x86/include/asm/vdso/gettimeofday.h | 36 +++++++
lib/vdso/gettimeofday.c | 111 +++++++++++++++-------
3 files changed, 156 insertions(+), 31 deletions(-)

 \ /
  Last update: 2019-07-28 15:24    [W:0.180 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site