From: Richard W. <ri...@no...> - 2017-05-09 13:12:01
|
Thomas, Am 09.05.2017 um 10:15 schrieb Thomas Meyer: > attached patch work correctly under Linux. But no change under WSL. As stated in the relevant GH issue, there seems to be far more road blockers to make UML work under WSL. > > With you patch I get under WSL: > > thomas@DESKTOP-DQBDJ0U:/mnt/c/Users/thomas/VmShare$ ./linux > Core dump limits : > soft - NONE > hard - NONE > Checking that ptrace can change system call numbers...check_ptrace : failed to modify system call: Invalid Argument Okay, now it fails later. UML needs to cancel syscalls on the host side, it does so by turning them into a getpid() which has no side effects and, on non-ancient systems, by using PTRACE_SYSEMU. Let's figure whether they support PTRACE_SYSEMU, can you test the attached patch? Also please test segv1.c, it tests whether WSL allows us to handle page faults in userspace. It should output this: SIGSEGV at 0xdeadbeef, fixing up x=3, &x=0xdeadbeef IOW we write to 0xdeadbeef, catch the fault and fix it. Thanks, //richard |