mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-12 06:50:31 +00:00
executor: make errors during thread creation exit zero
On OpenBSD, the executor sometimes manages to set the memory resource limit 0 causing any following memory allocation to fail. Since threads are potentially created from such a thread which cannot allocate any memory, the executor will exit non-zero which in turn will cause false-positive panics to be reported. For more info see the discussion[1] in PR #1243. Instead, if hitting a fatal error during thread creation exit zero. [1] https://github.com/google/syzkaller/pull/1243
This commit is contained in:
parent
deef5fbc83
commit
429efa16d6
@ -281,9 +281,9 @@ typedef struct {
|
||||
static void event_init(event_t* ev)
|
||||
{
|
||||
if (pthread_mutex_init(&ev->mu, 0))
|
||||
fail("pthread_mutex_init failed");
|
||||
exitf("pthread_mutex_init failed");
|
||||
if (pthread_cond_init(&ev->cv, 0))
|
||||
fail("pthread_cond_init failed");
|
||||
exitf("pthread_cond_init failed");
|
||||
ev->state = 0;
|
||||
}
|
||||
|
||||
|
@ -263,9 +263,9 @@ typedef struct {
|
||||
static void event_init(event_t* ev)
|
||||
{
|
||||
if (pthread_mutex_init(&ev->mu, 0))
|
||||
fail("pthread_mutex_init failed");
|
||||
exitf("pthread_mutex_init failed");
|
||||
if (pthread_cond_init(&ev->cv, 0))
|
||||
fail("pthread_cond_init failed");
|
||||
exitf("pthread_cond_init failed");
|
||||
ev->state = 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user