<div dir="ltr"><div>On 05/22 10:25, Zhibin Li wrote:</div><div><br></div><div>Thank you.</div><div><br></div><div>> Hi,</div><div>> </div><div>> JFYI, I've also tried your reproducer on my laptop using a newly installed</div><div>> ubuntu 18.04.</div><div>> </div><div>> $ uname -r</div><div>> 4.17.0-rc5+</div><div>> $ ldd --version</div><div>> ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27</div><div>> ...</div><div>> $ ./strace -eclone ./a.out</div><div>> clone(child_stack=NULL,</div><div>> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,</div><div>> child_tidptr=0x7fccc3684790) = 3723</div><div>> 3723</div><div>> +++ exited with 0 +++</div><div>> $ dmesg</div><div>> [49004.917782] traps: a.out[3723] general protection ip:7fccc3165dfe</div><div>> sp:7fff6d775c58 error:0 in <a href="http://libc-2.27.so">libc-2.27.so</a>[7fccc3081000+1e7000]</div><div>> </div><div>> I'm curious while getting this error log, I still can't reproduce the</div><div>> problem you said so I wonder if this error is really the cause of your</div><div>> problem.</div><div><br></div><div>Sorry for I can not describe this problem well.  You have reproduced the</div><div>problem, the tracee output different from directly run it.</div><div><br></div><div>If add -f option the child process will work properly. It seems child process</div><div>also set seccomp filter. Because strace do not trace it, they do not work</div><div>correctly. I will do more research. Thank you.</div><div><br></div><div>> I can't figure it out and I guess I should learn more about this "general</div><div>> protection".</div><div><br></div><div>--</div><div>Chen Jingpiao</div></div>