Does inline assembly need to have permission in linux?

Can any user run inline assembly for current linux kernel or does that require special permission?


Inline assembly has nothing to do with the kernel. So the answer is no.

Anyone can write inline assembly and compile it into the program. It isn't any different from compiler generated code.

As for your comment, the answer is no it's not possible because of memory protection. As soon as you try to access memory that isn't mapped or you're not allowed to (whether it'd be in C or via inline assembly), you'll get a seg-fault.

In other words, the layer of protection is not between the C code and the compiler. It's between the compiled code and the operating system.

So you can't damage the kernel using C or inline assembly - unless you have acquired the permissions to do so.

Need Your Help

Can't add self as subview


We use Crashlytics, 30+ users have seen this crash. this crash log is from users in the field. we have never been able to reproduce it. This is running on iOS7. No clue what is causing this, as ...

How to jump between warnings in vim?


How do you jump between warnings in vim?