1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

DRM Render Nodes Published, Better Graphics Security

X.Org

Published on 18 December 2012 11:56 AM EST
Written by Michael Larabel in X.Org
Comment On This Article

A complete but experimental implementation of "render nodes" for the open-source Linux graphics stack has been published. After being discussed in months prior for advancing the Linux graphics stack to take care of some security holes, this render node implementation is slowly but surely nearing a state for merging to mainline.

There was some render node patches published earlier in the year, but not a complete implementation and a slightly different aim. In September during XDC2012 in Germany, the render nodes work was discussed again to take care of longstanding security holes within the DRM graphics stack.

The XDC2012 discussions led to an ad-hoc proposal for DRM2 with render nodes.
Improvements to the Direct Rendering Manager were proposed on Friday during XDC2012.

Kristian Høgsberg, Martin Peres, Timothée Ravier, and Daniel Vetter shared their views on what they're calling DRM2.

For the basics of what DRM2 comes down to it attempts to fix the DRM authentication policy and improve buffer sharing. One benefit for what this would allow for non-technical readers is that it would allow for GPGPU (OpenCL/Compute) support without an X.Org Server running for the graphics drivers. While no patches have yet to materialize, DRM2 would rework the "master" handling by splitting DRM master into MASTER and GEM_MASTER while allowing multiple GEM_MASTER.

DRM2 would not break user-space interfaces compared to the current driver handling today.
In late September, some of the patches were published. As Kristian Høgsberg explained, "the core problem is that DRM security is compromised in the face of VT switching and multiple DRM masters. Any local user can access all shared buffers from within any X server on the system, even when that user doesn't have access to any of those X servers."

Martin Peres has now come to the table with a complete implementation of render nodes. His patches, which he's currently requesting comments on and aren't intended to be merged immediately, touch the Linux kernel DRM, libdrm (DRM library), DRI2Proto, the X.Org Server, xf86-video-nouveau (the other DDX drivers will also need to be touched too), and Mesa.
Following to my shared talk with krh, danvet and Timothée Ravier @ XDC2012, I have actually taken the time to start fixing some security holes found in the graphics stack.

Today, I would like to request your comments on the render node patchset. Keep in mind that I am not asking for inclusion. However, I know this patchset works on my nvidia card and I would like to know if anyone has anything against this architecture.
While it depends how the comments turn out on the code and how much further work is needed before the code is polished and ready for merging, the Direct Rendering Manager changes for the kernel won't land before the Linux 3.9 kernel, the X.Org Server 1.14 merge window is closing so this isn't a candidate until X.Org Server 1.15 in H2'2013, and the Mesa changes could be done for Mesa 9.1/10.0. Simply put, this render nodes work likely isn't to become a widespread reality on the Linux desktop until at least the second half of next year.

Martin's mailing list post with links to the different Git repositories for the experimental code can be found on the dri-devel list.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Trying The Configurable 45 Watt TDP With AMD's A10-7800 / A6-7400K
  2. Sumo's Omni Gets Reloaded
  3. AMD A10-7800 & A6-7400K APUs Run Great On Linux
  4. Radeon Gallium3D Is Running Increasingly Well Against AMD's Catalyst Driver
Latest Linux Articles
  1. Radeon Graphics Yield Mixed Results With Linux 3.17 Kernel
  2. AMD's RadeonSI Driver Sped Up A Lot This Summer
  3. Intel's Latest Linux Graphics Code Competes Against OS X 10.9
  4. Intel Sandy Bridge Gets A Surprise Boost From Linux 3.17
Latest Linux News
  1. Intel Bay Trail Performance With Linux 3.16/3.17 & Mesa 10.3
  2. EFL Sees A Ton Of Work Following Recent v1.11 Release
  3. ARM Talks Up Wayland For Mali
  4. GNOME/GTK+ Human Interface Guidelines Updated
  5. Robocraft Is Rolling Over To Linux
  6. The Widely-Criticized New Commercial Linux Distro Is Now On Kickstarter
  7. Wayland & Weston 1.6 Alpha Released
  8. A New First-Person Mystery Game Might Be Coming To Linux
  9. Patch By Patch, LLVM Clang Gets Better At Building The Linux Kernel
  10. VC4 Gallium3D Driver Now Handles X With GLAMOR
Latest Forum Discussions
  1. Systemd 216 Piles On More Features, Aims For New User-Space VT
  2. Btrfs Gets Talked Up, Googler Encourages You To Try Btrfs
  3. OSS radeon driver for A10-7850K (Kaveri)
  4. Could be avoid to use flash for show the benchmark on the articles?
  5. American Citizens running AMOK for food stamps
  6. What Linux Distribution Should Be Benchmarked The Most?
  7. Company I work for is looking to contribute to Open Source projects... but wrongly?
  8. Microsoft vs. Campaign