Hi Dmitry,
How can I fix this issue?
1. i add new syscall syz_sysctl_add_for_test , write proc/sys/vm/emem_trigger flile node, a trigger which can show memory info by using sysctrl

2. in sys/sys.txt:
change write$sysctrl write “0”,”1”….

3. log show write and run successfully

4. code executed but not code coverge generated. Only 10%

5. how can I solve this issue? Log add in attachment
Best Regrads!
Hi Dmitry,
Same question, I follow this step ,
https://www.kernel.org/doc/html/latest/dev-tools/kcov.html?highlight=kcov#remote-coverage-collection
but execute ioctl KCOV_REMOTE_ENABLE , ERRNO 16 (devices busy) , how can I fix this issue?

612 case KCOV_REMOTE_ENABLE:
613 kcov_debug("KCOV_REMOTE_ENABLE\n");
614 if (kcov->mode != KCOV_MODE_INIT || !kcov->area)
615 return -EINVAL;
616 t = current;
617 if (kcov->t != NULL || t->kcov != NULL)
618 return -EBUSY;//here
Best Reagrds
Zheng.sun
-----邮件原件-----
发件人: Dmitry Vyukov <dvy...@google.com>
发送时间: 2020年12月7日,
星期一 15:53
收件人: 孙政 (Zheng Sun) <Zhen...@unisoc.com>
抄送: 康兴锋 (Xingfeng Kang) <xingfe...@unisoc.com>; Lukas Bulwahn <lukas....@gmail.com>;
吴嘉骏 (Jiajun Wu) <jiaj...@unisoc.com>; syzkaller <syzk...@googlegroups.com>
主题: Re: syzkaller How to add special syscall
On Mon, Dec 7, 2020 at 8:45 AM 孙政 (Zheng Sun) <Zhen...@unisoc.com> wrote:
--
You received this message because you are subscribed to the Google Groups "syzkaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller/3ed48527875c4d059a180a7cf03516b8%40SHMBX02.spreadtrum.com.
Hi Andrey,
In syzkaller kcov_remote_enable ioclt “ EBUSY Error”.
In kernel add kcov_remote_start/kcov_remote_stop function , I got “cover enable write trace failed,mode=0(error 22)”.
any suggestion?
-----------------------------------------------------------------------------------
|
|
|
Zheng.sun 紫光展锐科技有限公司 电话: 86-21-20360600 分机:6693 网址: www.unisoc.com 地址: 中国•上海浦东张江祖冲之路2288弄 展锐中心2号楼202136 |
收件人: 孙政 (Zheng Sun) <Zhen...@unisoc.com>
抄送: Dmitry Vyukov <dvy...@google.com>;
康兴锋 (Xingfeng Kang) <xingfe...@unisoc.com>; Lukas Bulwahn <lukas....@gmail.com>;
吴嘉骏 (Jiajun Wu) <jiaj...@unisoc.com>; syzkaller <syzk...@googlegroups.com>