Is it possible to save the translation into a new binary which can run directly in windows? in theory?
Wadim Halik
@Wadka
Hey guys! Thank you for you work on this awesome Projekt! I love Arch-Linux, but I also love my Surface Pro 4 and I want to be able to execute Linux Programms on my Windows Machine. I could not install sudo, and therefore wasn't able to install yaourt. I would like to implement the chroot() System call. I know the Basics of c and operating Systems(Linux). Where do I need to look into for implementing chroot()?
hlide
@hlide
flinux, are you here?
hlide
@hlide
I'm looking for more details about it : "I have also noted some interesting additions to recent CPUs and operating systems related to this case. One is the FSGSBASE extension instructions starting with Intel Sandy Bridge and AMD Steamroller. This allows a Ring 3 code to directly access the fs and gs registers."
hlide
@hlide
For what I know about, writing to FS/GS.BASE MSR registers can only be done in Ring 0
Xiangyan Sun
@wishstudio
To my knowledge the FSGSBASE instructions are designed to allow R/W access to fs/gs in Ring 3.
Otherwise we can already access them using MSR registers. Why bother create a new extension?
hlide
@hlide
Ok, I didn't know there are dedicated instructions [RD/WR][F/G]SBASE. I thought they were speaking about dedicated MSR registers relative to FS/GS segments. So... those "new" instructions appears to be usable only in 64-bit mode. And there is no indication about RING execution restriction.
Messing with GS segment would be obviously wrong as it should contain TEB64. Messing with FS segment? well it seems to contain "random" value every times I launch a process.
hlide
@hlide
Ok, I remade some tests with poking'n peeking through FS segment by using RDFSBASE/WRFSBASE instructions to get/set FS base address. It's pretty clear that Windows OS is writing "random" FS base because even reading the FS base after I set it, I get a "random" value. I guess the OS register context switch is not restoring the FS base register value.
Xiangyan Sun
@wishstudio
I remember reverse engineered some piece of the context switch code. It looks like the OS just clears FS to zero when doing context switch.
hlide
@hlide
that piece of the context switch code was for a 32-bit or 64-bit running code? I heard 64-bit windows should use WR[F/G]BASE instead of a MOV seg,reg.
I-One DarkSnow
@i_darksnow_twitter
Hello =) How i can install another distributive linux?
Henry Korir
@henrykorir
Why is pacman failing ?
error: failed retrieving file 'core.db' from mirror.rackspace.com : The reque sted URL returned error: 404 error: failed to update core (unexpected error) error: failed retrieving file 'extra.db' from mirror.rackspace.com : The requ ested URL returned error: 404 error: failed to update extra (unexpected error) error: failed retrieving file 'community.db' from mirror.rackspace.com : The requested URL returned error: 404 error: failed to update community (unexpected error) error: failed to synchronize any databases error: failed to init transaction (unexpected error)
@wishstudio any work around?
1 reply
David Macek
@elieux
Maybe the mirror is no longer active.
Henry Korir
@henrykorir
I checked the problem is because the mirrors are for x86_64 and my machine is i386.
I checked the problem is because the mirrors are for x86_64 and my machine is i386.
I changed the mirrors to point to archlinux32 servers and it worked but the flinux crushed.
I really need to use base-devel packages especially the gcc in flinux on i386 in windows 7. Is there any work-around?