[LTP] [PATCH v4 6/7] Convert cve-2014-0196 to use long running threads

Cyril Hrubis chrubis@suse.cz
Tue Sep 26 12:05:27 CEST 2017


Hi!
I'm getting warnings for this testcase on SLES12 SP2:

tst_test.c:934: INFO: Timeout per run is 0h 05m 00s
cve-2014-0196.c:103: INFO: Attempting to overflow into a tty_struct...
safe_macros.c:452: BROK: cve-2014-0196.c:90: write(-1,0x6156a0,18446744073709551615) failed: EBADF
cve-2014-0196.c:154: WARN: pthread_join(..., (nil)) failed: EDEADLK

Looks like the SAFE_WRITE() in the overwrite_thread_fn() races with the
SAFE_CLOSE() in the run() function.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list