NX protection? What is this? Topic is solved

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

NX protection? What is this?

Postby dedanna1029 » 17 Nov 2010, 07:43

I have a message in dmesg that I have no clue what it is... if anyone knows, I'd appreciate feedback. It's at the beginning of dmesg:

Code: Select all

:) dmesg
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.35-ARCH (tobias@T-POWA-LX) (gcc version 4.5.1 (GCC) ) #1 SMP PREEMPT Sat Oct 30 19:57:05 UTC 2010
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003ff40000 (usable)
 BIOS-e820: 000000003ff40000 - 000000003ff50000 (ACPI data)
 BIOS-e820: 000000003ff50000 - 0000000040000000 (ACPI NVS)
------->Notice: NX (Execute Disable) protection missing in CPU or disabled in BIOS!


What the heck is NX?

Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: NX protection? What is this?

Postby dedanna1029 » 17 Nov 2010, 07:49

Seems it's a security feature?

I'm not familiar with the ins and outs - is this really all that important to have on 32-bit? Please say no, because I really don't want to install the server version of the kernel.

Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: NX protection? What is this?

Postby viking60 » 17 Nov 2010, 11:05

http://en.wikipedia.org/wiki/NX_technology
NX compresses the X11 data to minimize the amount of data transmitted. NX takes full advantage of modern hardware by caching all manner of data to make the session as responsive as possible. For example the first time a menu is opened it may take a few seconds, but on each subsequent opening the menu will appear almost instantly
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: NX protection? What is this?

Postby dedanna1029 » 17 Nov 2010, 16:22

Thanks!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

blogger3303
Posts: 1
Joined: 03 Aug 2014, 20:08

Re: NX protection? What is this?  Topic is solved

Postby blogger3303 » 03 Aug 2014, 20:44

(This response mostly applies to Oracle Linux 6.5)
NX protection protects against Stack Buffer Overflow attacks.
It limits the ability of processors to have simultaneous write and execute access to memory.
You don't need it if you're not loading the enterprise kernel, or just playing around.

NX protection is found in the Oracle Linux kernel, often called "Unbreakable Enterprise Kernel".
It's also called Data Execution Prevention (DEP), to prevent buffer stacks from taking down your machine.
The technology is also found in RedHat Enterprise Linux,under a different syntax.

Determine what version you're using:
# uname -r | grep uek

If no value is returned, it's running RedHat.



############## For Oracle Linux ###################

Verify that Data Execution Prevention (DEP) feature is enabled:
# dmesg | grep NX.*protection
Should get something like "NX (Execute Disable) protection: active"

If it's empty, find out whether or not the kernal can actually handle NX processing:
# grep nx /proc/cpuinfo

If no values is returned, it's a no-go on the NX for your kernel.

By default DEP is enabled on Oracle Linux.
If DEP is not enabled, make sure "noexec=off" does not appear in /boot/grub/grub.conf



############## For Redhat Linux ###################

If you're running RedHat, and you want turn it on,
ensure that "kernel.exec-shield=1" appears in /etc/sysctl.conf.
(minus the double quotes)
Reboot the machine


For the Linux community.....

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: NX protection? What is this?

Postby viking60 » 04 Aug 2014, 09:50

Thanks for clearing that up for us blogger3303 - and welcome :greetings

I have noticed that it is active in Manjaro too

Code: Select all

dmesg |grep NX

results in:
NX (Execute Disable) protection: active


Please do feel free to tell us about Oracle Linux since you have experience with it...
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: NX protection? What is this?

Postby dedanna1029 » 27 Sep 2014, 20:12

Nice. Thanks!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”