Skip to content

Commit 2e74d99

Browse files
Richard Palethorpemetan-ucw
authored andcommitted
Check recvmmsg exists before entering fuzzy loop
Avoid thread B entering infinite loop if recvmmsg doesn't exist causing tst_brk to be called and thread A to make an ungraceful exit. A more general fix can be added to tst_fuzzy_sync as well, but will take longer to develop. Signed-off-by: Richard Palethorpe <[email protected]> Reported-by: Li Wang <[email protected]> Reviewed-by: Li Wang <[email protected]> Acked-by: Cyril Hrubis <[email protected]>
1 parent ccd9966 commit 2e74d99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testcases/cve/cve-2016-7117.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ static void setup(void)
9999
{
100100
fzsync_pair.min_samples = 10000;
101101

102+
tst_syscall(__NR_recvmmsg, 0, 0, 0, 0, 0);
103+
102104
tst_fzsync_pair_init(&fzsync_pair);
103105
}
104106

0 commit comments

Comments
 (0)