Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean to break user space? [closed]

Tags:

linux

kernel

This may be a simple question but, I heard that the only rule in working on the kernel is that you don't break "user space". So I was wondering what that means: To break user space and how does it happen?

Edit

It has been pointed out to me that this question is not suited for Stack Over Flow by @lurker so I will move it to Super User as @lurker suggests. (See below)

"Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – lurker, jww, SilentKiller

like image 555
Warosaurus Avatar asked Sep 20 '14 23:09

Warosaurus


People also ask

What does break user space mean?

That means anything that impacts the user applications in a way that negatively affects its behavior (causes the program to malfunction).

What is a user space process?

In a computer operating system, user space is the portion of memory containing unprivileged processes run by a user. It is strictly separated from kernel space, the portion of memory where privileged operating system kernel processes are executed. This separation of user and kernel space is called privilege separation.

What is in user space?

User space refers to all of the code in an operating system that lives outside of the kernel.

What is user space and system space?

Windows gives each user-mode application a block of virtual addresses. This is known as the user space of that application. The other large block of addresses, known as system space or kernel space, cannot be directly accessed by the application.


1 Answers

You're referring to Linus Torvald's first rule of kernel development. This note explains it: https://lkml.org/lkml/2012/12/23/75. I.e., when maintaining the kernel, do not do something which breaks user programs/applications. In other words, when making kernel changes, it is very bad to cause problems in the user's application "space". That doesn't literally mean memory. That means anything that impacts the user applications in a way that negatively affects its behavior (causes the program to malfunction). The note I cite also indicates at least one example.

like image 192
lurker Avatar answered Sep 30 '22 12:09

lurker