Language Selection

English French German Italian Portuguese Spanish

Linux kernel 2.6.23 to have stable userspace driver API

Filed under
Linux

Linus Torvalds included patches into the mainline tree which implement a stable userspace driver API into the Linux kernel.

The stable driver API was already announced a year ago by Greg Kroah-Hartman. Now the last patches where uploaded and the API was included in Linus’ tree. The idea of the API is to make life easier for driver developers:

"This interface allows the ability to write the majority of a driver in userspace with only a very small shell of a driver in the kernel itself. It uses a char device and sysfs to interact with a userspace process to process interrupts and control memory accesses."

Since future drivers using this API will run mainly in userspace there is no need to open up the source code for these parts. Also, drivers can be re-used even after kernel changes because the API will remain stable.

The background motivation for the inclusion of such a stable API comes form the embedded world.

more here




More in Tux Machines

Linuxizing the Office: An Interview with The Mad Botter

Honestly, it was macOS Catalina. We were having too many problems with people updating OS X and breaking Homebrew packages, to the point where we had to reinstall our custom toolchain every time we updated. The last guy on Mac updated to Catalina recently, and he had to struggle with Excel libraries because Apple moves things between OS versions. It just wasn’t worth it. I’ve been talking about it for about a year with my CTO. All of our back-end service runs Ubuntu. Most of the client-side work we’re doing is for IOT devices, and that’s all Linux. We ended up basically having an expensive machine so that we could emulate Linux on anything. It didn’t make a lot of sense to keep using Mac, so we switched. How was the transition from macOS to Linux? Actually super easy! Once we wrote a few setup scripts and packages we needed for different jobs in our pipeline, we were up and running. We already had a bunch of scripting and automations for the servers we had, and they’re all on Ubuntu, so it’s not a big jump in terms of the command line. How did you find the overall experience on Pop!_OS 20.04? I found it pretty intuitive. Learning the keyboard shortcuts took about a week. I really don’t have any issues. I like the tiling, I use that every day. It definitely makes it easier to multitask on a laptop screen. Read more Also: Reader’s Choice: Here’s Pop!_OS running on a Chromebook

Android Leftovers

Security: Patches, L1TF/Foreshadow, PE Tree, IPFire and BootHole

  • Security updates for Thursday

    Security updates have been issued by Debian (clamav and json-c), Fedora (python2, python36, and python37), Red Hat (thunderbird), Scientific Linux (thunderbird), SUSE (java-11-openjdk, kernel, rubygem-actionview-4_2, wireshark, xen, and xrdp), and Ubuntu (openjdk-8 and ppp). 

  •        
  • Researchers Make More Discoveries Around L1TF/Foreshadow - It's Not Good

    Security researchers from Graz University of Technology and CISPA Helmholtz are out with their latest findings on CPU speculative execution vulnerabilities, namely taking another look at L1TF/Foreshadow. Their findings are bad news not only for Intel but potentially other CPU vendors as well. [...] The new vulnerability outlined in the paper is "Dereference Trap" for leaking registers from an SGX enclave in the presence of only a speculative register dereference.  The discovery of speculative dereferencing of a user-space register in the kernel as opposed to the prefetcher not only means that some mitigations may be inadequate, but they can improve the performance of the original attack and reportedly produce similar behavior on non-Intel CPUs. 

  • PE Tree: Free open source tool for reverse-engineering PE files

    PE Tree allows malware analysts to view Portable Executable (PE) files in a tree-view using pefile – a multi-platform Python module that parses and works with PE files – and PyQt5, a module that can be used to create graphical user interfaces. “PE Tree is developed in Python and supports the Windows, Linux and Mac operating systems. It can be installed and run as either a standalone application or an IDAPython plugin,” Tom Bonner, a threat researcher at BlackBerry, explained.

  •        
  • IPFire: A new location database for the Internet

    In the last couple of months, we, the IPFire development team, have launched a small side project: A new location database for the Internet. In this article, I would like to give you a brief background story on why and how it come to this... [...] Other applications would be threat prevention like we use it in IPFire. Connection attempts from certain countries can simply be blocked, or port forwardings can be limited to certain countries only. That is, however, not an exact science. The Internet changes constantly. IP address ranges are re-assigned from one party to another one, and often it can take some time until those location databases are all updated. Up to that point, you will see wrong information like the Google front page being shown in a wrong language. This might only be a bit of an inconvenience, but for a firewall, we need more recent and reliable data.

  •        
  • What to do about the BootHole vulnerability

    Late last month, security researchers discovered a major vulnerability in the software that controls how PCs boot their operating systems. This is one of those issues that sounds scarier than it is. Fixing it will be a major process, especially for Linux system administrators and corporate IT organizations with a mixture of different PC vintages and manufacturers. The problem has been named BootHole, and it could affect up to a billion computers.

Text Editing with GIMP

This is tutorial to edit photos with text using computer program GIMP. This explains the basics of writing and editing text you can apply over all your photos you they can accompany your text documents you are working on. This is the eighth aka the final part of GIMP for Authors the series. I am happy to publish this one. Enjoy editing! Read more