Re: [RFC][PATCH] linux-2.6.2-rc2_vsyscall-gtod_B1.patch

From: Jamie Lokier
Date: Fri Feb 06 2004 - 23:54:35 EST


Andrea Arcangeli wrote:
> (changing three times is worthless in terms of security, all computers
> runs the same bzImage so it's not changing, anyways as Ulrich said this
> can be fixed transparently in "their" kernel)

Andrea, please stop mixing the different arguments. The three changes
were for technical reasons, not security.

> The bit I care about is that glibc should know about the vsyscall to
> be efficient,

This I agree with,

> and that the offsets should be fixed.

If the vdso position can vary between kernels, there is no real
technical reason why the offsets have to be fixed. At the simplest,
just like there is AT_SYSINFO to get the generic syscall entry point,
pass an AT_SYSINFO_GTOD for the gettimeofday syscall. Glibc can use
that with no significant changes to its existing mechanism.

(Although I prefer to use symbols in the vdso because it's cleaner,
AT_SYSINFO_GTOD works. Another alternative is to have a table of
offsets in the vsyscall page which Glibc can read - future extensible
without the overhead of symbol lookups which Ulrich doesn't like).

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/