newsoft / ldt_test Goto Github PK
View Code? Open in Web Editor NEWSample code for exercising __NR_modify_ldt syscall on Linux 32-bit and 64-bit.
Sample code for exercising __NR_modify_ldt syscall on Linux 32-bit and 64-bit.
Unfortunately modify_ldt
typically isn't enabled on Linux anymore: https://lkml.org/lkml/2015/7/21/759
As a workaround, arch_prctl
also exists for the use-case (modifying GS base) shown in ldt64.c
.
There is also set_thread_area
but it can't be used to change the code segment size since Linux 3.19 (see http://man7.org/linux/man-pages/man2/set_thread_area.2.html). I believe this means it is impossible to run 32 bit code in a 64 bit process now Running 32 bit code can apparently still be done by using existing segments 0x23 / 0x2B: https://stackoverflow.com/questions/41921711/running-32-bit-code-in-64-bit-process-on-linux-memory-access.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.