SYZFAIL: open of /dev/kcov failed

1 view
Skip to first unread message

syzbot

unread,
Dec 3, 2021, 6:51:31 AM12/3/21
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0930b1039b64 Dump more data in the hopes of figuring out w..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=145c50e1b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=17e0e39fd4ed1eeca4d2

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+17e0e3...@syzkaller.appspotmail.com

SYZFAIL: open of /dev/kcov failed
(errno 13: Permission denied)
SYZFAIL: child failed
(errno 0: Undefined error: 0)
loop exited with status 67


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

Aleksandr Nogikh

unread,
Dec 3, 2021, 7:11:56 AM12/3/21
to syzbot, syzkaller-o...@googlegroups.com, Dmitry Vyukov
This is apparently due to https://github.com/google/syzkaller/pull/2882
Now only 3 kcov instances are instantiated at syz-executor's startup
and the others only when needed. It seems that it'd be more
sandboxing-friendly to create kcov instances for all threads at the
very beginning, but don't mmap them until they're needed.
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-openbsd-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-openbsd...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-openbsd-bugs/0000000000001ddfc505d23c87b4%40google.com.

syzbot

unread,
Dec 4, 2021, 4:28:11 PM12/4/21
to Greg Steuck, an...@openbsd.org, gr...@nest.cx, nog...@google.com, syzkaller-o...@googlegroups.com
> Hey Anton,
>
> This is probably a transient condition that Alexandr already worked around
> in https://github.com/google/syzkaller/pull/2904
> <https://www.google.com/url?q=https://github.com/google/syzkaller/pull/2904&sa=D&source=hangouts&ust=1638738950466000&usg=AOvVaw1hfow-2eaXP2RMKw9-n3Cg>.
> He said the problem was due to trying to open the kcov(4) device from a
> child process. Do you recall why we have this restriction? It's not spelled
> out in the man page AFAICT.
>
> Thanks
> Greg
>
> #syz invalid

Your 'invalid' command is accepted, but please keep syzkaller-o...@googlegroups.com mailing list in CC next time. It serves as a history of what happened with each bug report. Thank you.

>
> On Fri, Dec 3, 2021 at 3:51 AM syzbot <
> --
> nest.cx is Gmail hosted, use PGP:
> https://pgp.key-server.io/0x0B1542BD8DF5A1B0
> Fingerprint: 5E2B 2D0E 1E03 2046 BEC3 4D50 0B15 42BD 8DF5 A1B0
Reply all
Reply to author
Forward
0 new messages