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. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  2. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  3. OCZ Vector 150 SSD On Linux
  4. Noctua i4 CPU Cooler: Great For Cooling High-End LGA-2011v3 CPUs
Latest Linux Articles
  1. 17-Way Linux Graphics Card Comparison With Civilization Beyond Earth
  2. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
  3. 12-Way AMD Catalyst 14.12 vs. NVIDIA 346 Series Linux GPU Comparison
  4. AMD Catalyst 14.12 Omega Driver Brings Mixed Results For Linux Users
Latest Linux News
  1. Server-Side XCB Is Being Discussed For The X.Org Server
  2. Adreno A4xx Rendering With Freedreno Takes Shape
  3. Linux 3.19-rc1 Kernel Released Ahead Of Schedule
  4. Civilization: Beyond Earth Linux GPU/Driver Benchmarks
  5. X.Org Server 1.16.3 Released To Fix Security Issues
  6. Linux 3.19 Merge Window Closes Ahead Of Schedule
  7. MIPS R6 Architecture Now Supported By GCC
  8. LowRISC To Feature Tagged Memory & Minion Cores
  9. Intel Skylake Audio Support For Linux 3.19
  10. After 10+ Years, NetworkManager Reaches v1.0
Latest Forum Discussions
  1. Speeding up systemd networking service
  2. Need some hand holding with upgrading xserver
  3. FPS capped on Linux (AMD fglrx drivers)
  4. Are there an app using HSA ?
  5. The New SuperTuxKart Looks Better, But Can Cause GPU/Driver Problems
  6. XLennart: A Game For Systemd Haters With Nothing Better To Do
  7. Updated and Optimized Ubuntu Free Graphics Drivers
  8. Debian init discussion in Phoenix Wright format