Page 2 of 2

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Tue Nov 27, 2018 8:13 am
by Admin
It seems the problem at the server side (looks like a bug in CPU):
4003CC: got SIGSEGV signal (Segmentation violation)

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Tue Nov 27, 2018 8:22 am
by Admin
GDB also shows accessible memory region at 0x600ff8:
[centos@xxxx ~]$ gdb ./test_vmp
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/centos/test_vmp...(no debugging symbols found)...done .
(gdb) r
Starting program: /home/centos/./test_vmp

Program received signal SIGSEGV, Segmentation fault.
0x00000000004003cc in ?? ()
Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64 li bgcc-4.8.5-28.el7_5.1.x86_64
(gdb) x/i 0x4003cc
=> 0x4003cc: mov 0x200c25(%rip),%rax # 0x600ff8
(gdb) x/g 0x600ff8
0x600ff8: 0

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Nov 28, 2018 3:28 am
by supermilg
But, ./test can run without error.

[centos@ip-172-31-2-223 ~]$ ./test
This is a test.
Test done.

test and test_vmp are the same program. The only difference is that test_vmp is protected by VMProtect.
If this is the BUG of CPU, test should not run. This is obviously the BUG of VMProtect. VMProtect is not compatible with this CPU.
Please help solve it, Thank you!

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Nov 28, 2018 4:45 am
by Admin
Did you try test_vmp on other computers?

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Nov 28, 2018 6:08 am
by supermilg
I tried a lot of machines, test_vmp can work properly, except for some machines.
Please login to the following server, test_vmp can run normally, you can compare and debug it.

ssh -i for_vmprotect.pem centos@34.245.219.91
/home/centos/test_vmp

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Nov 28, 2018 6:55 am
by Admin
I tried a lot of machines, test_vmp can work properly, except for some machines.
Because AWS C5 has bug in its CPU. I have already shown it - "_init_proc" belongs to your original program (it isn't the VMProtect code). The bug appers in Skylake after changing memory attributes of the first segment.

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Nov 28, 2018 7:16 am
by supermilg
Can you make a switch to avoid this problem, so that the program protected by VMProtect can be executed on C5 series machines?
Many customers are running programs on AWS, and AWS will definitely use more and more C5 series machines, This problem must be solved, Thank you!

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Thu Nov 29, 2018 4:16 am
by supermilg
Hi
This test is a very simple c code.

#include <stdio.h>
int main()
{
printf("This is a test.\n");
printf("Test done.\n");
return 0;
}

and can be compiled by gcc. I don't even do anyother thing.
If even this program can not run on C5 series machines, I can not release my program protected by vmprotect to my customs.
Please do something to solve this problem. Thank you!

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Sat Dec 01, 2018 3:51 pm
by supermilg
Hi,
I want to know if this problem is being solved. @Admin

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Tue Dec 04, 2018 5:05 am
by supermilg
Hi Admin,
I noticed that you said before, this is a CPU bug. If I want to solve it, I should actually look for Intel.
But you know, this is impossible. I am just a small service provider. But I need Vmprotect to provide software protection for me, and I paid for it.
I believe that Vmprotect is a professional company in the field of software protection. You must have a solution to this problem, even if it gives me a slightly less protective solution to bypass this bug, I can accept it.
But I have to run my program on an AWS C5 machine because I can't ask my big customers.
I hope that you can help me solve this problem, and I can only count on you. thank you very much.
If you are solving this problem, then I would be very willing to continue to supply that machine so that you can continue to use and solve this problem. This matter is very important to me. If you are solving this problem, I hope to give me a reply.

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Tue Dec 04, 2018 6:24 am
by Admin
Try switch off the packing feature at the options tab in VMProtect.

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Dec 05, 2018 10:21 am
by Admin
We have fixed this issue in the 1059 build. Please check it.

Re: linux program protected by vmp 3.1.2 crash directly in c5 series instance of AWS

Posted: Wed Dec 05, 2018 5:13 pm
by supermilg
Hi, Thank you! I will have a try