this appears to be due to an uninitialized-variable bug in syz-executor.
here's a patch that should fix it.
-Chuck
commit 9bd64179f13110614228dcf3e56a46dd1866cf5f
Author: Chuck Silvers <
ch...@chuq.com>
Date: Mon Jun 28 10:46:35 2021 -0700
executor: initialize scope in fault_ioc_info
the "scope" field of struct fault_ioc_info is an input to the ioctl,
so initialize it to FAULT_SCOPE_LWP to match other fault_ioc_* usage.
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index 398d402fb..131ab0764 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -73,6 +73,7 @@ static int fault_injected(int fd)
struct fault_ioc_disable dis;
int res;
+ info.scope = FAULT_SCOPE_LWP;
if (ioctl(fd, FAULT_IOC_GETINFO, &info) != 0)
fail("FAULT_IOC_GETINFO failed");
res = (info.nfaults > 0);
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-netbsd-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
syzkaller-netbsd...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/syzkaller-netbsd-bugs/0000000000006f6e2305bbdc5ca5%40google.com.