[LTP] [PATCH v2] Add test for CVE 2017-10661

Martin Doucha mdoucha@suse.cz
Tue Mar 3 12:34:18 CET 2020


On 3/3/20 12:27 PM, Cyril Hrubis wrote:
>> OK: it can be just this:
>> timerfd_settime02:	CFLAGS	+= -pthread
>> timerfd_settime02:	LDLIBS	+= -lrt
>>
>> because failure in CentOS 6 is different:
>> timerfd01.c:36: undefined reference to `clock_gettime'
>> https://api.travis-ci.org/v3/job/657694167/log.txt
>>
>> Obviously we need autotools check for it (trivial, I can do it before merge).
> 
> -lrt is required in LDLIBS for older libc that had all the posix
> realtime outside of the glibc.so, and it's harmless on newer glibc so
> for the time being we just need -lrt in LDLIBS for quite a lot of
> testcases...
> 

Ah, right. I broke the Makefile when I deleted the unconditional LDLIBS
line... The -lpthread was useless but I didn't realize the -lrt was needed.

I'll resubmit with all fixes mentioned so far then.

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


More information about the ltp mailing list