Re: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Gollub
Date: Friday, October 31, 2008 - 8:37 am

On Friday 31 October 2008 16:02:48 Kai Henningsen wrote:

True.

But there is still the problem for the ltp syscall test "readlink03", when 
using the glibc "readlink" interface, by calling readlink with a buffer size 
of "-1".

Calling "-1" seems to be a valid code/error-path in the linux syscall 
"readlink", since there is a check for less-equal zero.

But the less zero, condition can't be reached via the glibc "readlink" 
interface since this would cause fortify-check to fail (when buliding with -
D_FORITFY_SOURCE=2).

To "workaround" the fortify check, by not compiling the testcase with -
D_FORTIFY_SOURCE=2, or trying to test the linux readlink interface by calling 
directly syscall() in the testcase ... both suggestion are just workarounds - 
no real solutions.

We could also just remove the testcase of buffer size "-1".

The problem is still, how to test the "readlink" syscall in LTP?

best regards,
Daniel
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" ..., Daniel Gollub, (Fri Oct 31, 8:37 am)