<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=User_space_and_kernel_space</id>
	<title>User space and kernel space - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=User_space_and_kernel_space"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=User_space_and_kernel_space&amp;action=history"/>
	<updated>2026-12-01T14:58:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=User_space_and_kernel_space&amp;diff=62174&amp;oldid=prev</id>
		<title>imported&gt;Oklopfer: substitute per MOS:SECTIONANCHOR</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=User_space_and_kernel_space&amp;diff=62174&amp;oldid=prev"/>
		<updated>2026-07-07T00:12:52Z</updated>

		<summary type="html">&lt;p&gt;substitute per &lt;a href=&quot;/wiki1463/index.php?title=MOS:SECTIONANCHOR&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;MOS:SECTIONANCHOR (page does not exist)&quot;&gt;MOS:SECTIONANCHOR&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Way of using computer memory}} &lt;br /&gt;
{{Redirect-multi|2|Kernel space|User space|the mathematical definition|Null space|the user space on Wikipedia|Wikipedia:User pages}}&lt;br /&gt;
{{more citations needed|date=October 2012}}&lt;br /&gt;
&lt;br /&gt;
A modern computer [[operating system]] usually uses [[virtual memory]] to provide separate address spaces or regions of a single address space, called &amp;#039;&amp;#039;&amp;#039;user space and kernel space&amp;#039;&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;{{cite web|url=https://linux-kernel-labs.github.io/refs/heads/master/lectures/address-space.html#address-space-options-for-32bit-systems|title=Address space|at=Address space options for 32bit systems}}&amp;lt;/ref&amp;gt;{{efn|Older operating systems, such as [[DOS]] and [[Windows&amp;amp;nbsp;3.1x]], do not use this architecture.}} This separation primarily provides [[memory protection]] and hardware protection from malicious or errant software behaviour.&lt;br /&gt;
&lt;br /&gt;
{{anchor|KERNEL}}&lt;br /&gt;
Kernel space is strictly reserved for running a privileged [[operating system kernel]], kernel extensions, and most [[device driver]]s. In contrast, user space is the memory area where [[application software]], [[daemon (computing)|daemon]]s, and some drivers execute, typically with one address space per process.&lt;br /&gt;
&lt;br /&gt;
Exploits targeting the user space are colloquially referred to as &amp;quot;userland exploits&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span class=&amp;quot;anchor&amp;quot; id=&amp;quot;USERLAND&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Overview ==&lt;br /&gt;
The term &amp;#039;&amp;#039;&amp;#039;user space&amp;#039;&amp;#039;&amp;#039; (or &amp;#039;&amp;#039;&amp;#039;userland&amp;#039;&amp;#039;&amp;#039;) refers to all code that runs outside the operating system&amp;#039;s kernel.&amp;lt;ref&amp;gt;{{cite web&lt;br /&gt;
| url = http://www.catb.org/jargon/html/U/userland.html&lt;br /&gt;
| title = userland, n.&lt;br /&gt;
| work = The [[Jargon File]]&lt;br /&gt;
| publisher = [[Eric S. Raymond]]&lt;br /&gt;
| access-date = 2016-08-14&lt;br /&gt;
| archive-date = 2017-07-18&lt;br /&gt;
| archive-url = https://web.archive.org/web/20170718151935/http://www.catb.org/jargon/html/U/userland.html&lt;br /&gt;
| url-status = live&lt;br /&gt;
}}&amp;lt;/ref&amp;gt; User space usually refers to the various programs and [[library (computing)|libraries]] that the operating system uses to interact with the kernel: software that performs [[input/output]], manipulates [[file system]] objects, [[application software]], etc.&lt;br /&gt;
&lt;br /&gt;
Each user space [[process (computing)|process]] usually runs in its own [[virtual memory]] space, and, unless explicitly allowed, cannot access the memory of other processes. This is the basis for [[memory protection]] in today&amp;#039;s mainstream operating systems, and a building block for [[privilege separation]]. A separate user mode can also be used to build efficient virtual machines – see [[Popek and Goldberg virtualization requirements|Popek and Goldberg&amp;#039;s virtualization requirements]]. With enough privileges, processes can request the kernel to map part of another process&amp;#039;s memory space to their own, as is the case for [[debugger]]s. Programs can also request [[Shared memory (interprocess communication)|shared memory]] regions with other processes, although other techniques are also available to allow [[inter-process communication]].&lt;br /&gt;
&lt;br /&gt;
{{Linux layers}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
The most common way of implementing a &amp;#039;&amp;#039;&amp;#039;user mode&amp;#039;&amp;#039;&amp;#039; separate from [[supervisor mode|kernel mode]] involves operating system [[protection ring]]s.&lt;br /&gt;
Protection rings, in turn, are implemented using [[CPU modes]].&lt;br /&gt;
Typically, kernel space programs run in [[kernel mode]], also called [[supervisor mode]];&lt;br /&gt;
standard applications in user space run in user mode.&lt;br /&gt;
&lt;br /&gt;
Some operating systems are [[single address space operating system]]s—with a single address space for all user-mode code. (The kernel-mode code may be in the same address space, or it may be in a second address space).&lt;br /&gt;
Other operating systems have per-process address spaces, with a separate address space for each user-mode process.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[BIOS]]&lt;br /&gt;
* [[CPU modes]]&lt;br /&gt;
* [[Early user space]]&lt;br /&gt;
* [[Memory protection]]&lt;br /&gt;
* [[OS-level virtualization]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{notes}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://www.linfo.org/kernel_space.html Linux Kernel Space Definition]&lt;br /&gt;
* {{webarchive |url=https://web.archive.org/web/20160326162854/http://xarnze.com/article/Entering%20User%20Mode |date=March 26, 2016 |title=Entering User Mode }}&lt;br /&gt;
&lt;br /&gt;
{{Operating System}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:User Space}}&lt;br /&gt;
[[Category:Operating system technology]]&lt;br /&gt;
[[Category:Device drivers]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Oklopfer</name></author>
	</entry>
</feed>