Language Selection

English French German Italian Portuguese Spanish

Linux/Kernel Leftovers

Filed under
Linux
  • Intel IWD 1.9 Released With New Capabilities

    Intel's iNet Wireless Daemon (IWD) is out with a new feature release with this daemon continuing to see new usage and possibly on Ubuntu moving forward.

    With IWD 1.9 there has been work most notably on sorting out the APIs around WiFi Display support this is around the WFD / Miracast standards. Included with IWD 1.9 is a sample/test app using GStreamer with a WiFI Display device making use of the new IWD interface.

  • Cache Coloring: Interference-free Real-time Virtualization

    At this year’s Xen Developer and Design Summit, Stefano Stabellini from Xilinx gave a talk on Cache Coloring, a new feature for Xen that helps better support real-time workloads.

    Many embedded deployments require deterministic IRQ latency, which can be difficult to pull off as even small spikes lead to failure. No matter the activity in other VMs, the latency-sensitive app has to continue unaffected.

    Xen can fully dedicate physical CPUs to VMs to minimize latency and interference, however, real-time deadlines can still be missed due to the presence of a shared L2 cache across the ARM cores. One app on one CPU core can affect the performance of another app in a different VM by causing cache interference.

  • Rethinking fsinfo()

    The proposed fsinfo() system call, which returns extended information about mounted filesystems, was first covered here just over one year ago. The form of fsinfo() has not changed much in that year, but the debate over merging it continues. To some, fsinfo() is needed to efficiently obtain information about filesystems; to others, it is an unnecessary and over-engineered mechanism. Changes will probably be necessary if this feature is ever to make it into the mainline kernel.

    Linux has long supported the statfs() system call (usually seen from user space as statvfs()) as a way of obtaining information about mounted filesystems. As has happened so often, though, the designers of statfs() made a list of all the filesystem attributes they thought might be interesting and limited the call to those attributes; there is no way to extend it with new attributes. Filesystem designers, though, have stubbornly refused to stop designing new features in the decades since statfs() was set in stone, so there is now a lot of relevant information that cannot be obtained from statfs(). Such details include mount options, timestamp granularity, associated labels and UUIDs, and whether the filesystem supports features like extended attributes, access-control lists, and case-insensitive lookups.

    As it happens, the kernel does make much of that information available now by way of the /proc/mounts virtual file. The problem with /proc/mounts, beyond the fact that some information is still missing, is that it is inefficient to access. Reading the contents of that file requires the kernel to query every mounted filesystem for the relevant information; on systems with a lot of mounted filesystems, that can get expensive. Systems running containerized workloads, in particular, can have vast numbers of mounts — thousands in some cases — so reading /proc/mounts can be painful indeed. For extra fun, the only way to know about newly mounted filesystems with current kernels is to poll /proc/mounts and look for new entries.

    David Howells proposes to solve the polling problem with a new notification mechanism, but that mechanism, in turn, relies on fsinfo(), the 21st revision of which was posted on August 3. Howells requested that both notifications and fsinfo() be pulled during the 5.9 merge window, but that did not happen. Instead, the request resulted in yet another discussion about whether fsinfo() makes sense in its current form.

  • Linux 5.8 Kernel: Biggest Release In Years

    "So I didn't really expect this, but 5.8 looks to be one of our biggest releases of all time," said Linux headmaster Linus Torvalds on the Linux Kernel Mailing List when he made the announcement of the Linux Kernel 5.8 rc1 on June 14, 2020.

    Later in his announcement, Torvalds went on to describe just how big of a release the 5.8 kernel was, by the numbers: over 14,000 non-merge commits (over 15,000 if you count merges), 800,000 new lines of code, and over 14,000 files changed.

    [...]

    Closer to home, Texstar has already started working on making the new Linux kernel available to PCLinuxOS users. As of the time of the writing of this article, the new kernel is in the testing section of the PCLinuxOS repository. Most likely, it will be moved from testing to the regular repository by the time you read this.

    Meanwhile, Linus Torvalds has already released Linux Kernel 5.9 (rc1) on August 16, 2020, just two weeks after releasing the 5.8 kernel to the masses. Not resting on his laurels or accomplishments, work is continuing where work on 5.8 left off.

  • Faster Reading From /dev/zero With Linux 5.10

    Queued up in char-misc-next ahead of the Linux 5.10 cycle is a speed-up for reading from /dev/zero...

    The patch adds a non-iov_iter version of reads for the /dev/zero interface. The write performance is unchanged as it already had a non-iov_iter implementation.

  • Short Topix: Use Secure Linux Kernels To Thwart Russian Hackers

    Are you considering using a "smart lock" to secure your house, shed, gate, etc.? You might want to reconsider, according to 73 percent of 549 responding security experts. In an article published by Forbes, their answer was clear: "Get in the sea!"

    The PCLinuxOS Magazine reported in the May 2020 Short Topix article about how insecure a "smart lock" was that relied on fingerprints. It has to do, mostly, with only a bare minimum of data points being employed when comparing the "unlocking" fingerprint to the one(s) stored in the device memory. So, when only checking five data points within a complex fingerprint, versus, say, comparing 10 or 20 data points, it becomes a trivial task to fool the fingerprint reader. Of course, when you increase the data points in the pattern, you make the lock more persnickety about granting access.

    Locks that use fingerprints aren't the only kind that exhibit vulnerabilities. Other "smart locks" rely on wifi or Bluetooth to lock or unlock. But what happens when your network goes down? What happens in the event of a prolonged power outage? What happens when the network you depend on is a victim of malware or ransomware? What if your "smart lock" depends on a connected smartphone app to work ... and you lose your smartphone? In any/all of these cases, you are effectively locked out of your own house, shed, gate, belongings, etc. In the latter case, your smartphone in the hands of someone who may have taken it, also affords entry to areas you would prefer to keep secure.

    Recently, one security expert discovered a vulnerability in a "smart lock" from U-Tec that allowed a hacker to gain access using a smartphone (which many, many people possess) and hacking the MAC address. U-Tec fixed the vulnerability as soon as they were informed, but the incident illustrates just how vulnerable a "smart lock" is.

    Of course, there's the other side of the equation, too. Most "dumb locks" (that is, those using a key and tumbler approach) aren't necessarily the most secure things in the world, either. They are vulnerable to "lock bumping," where a special key is used to "bump" the tumblers in a lock into yielding and unlocking. Some locks can easily be bypassed with just an aluminum pop can and a pair of scissors. Don't believe me? Just look on YouTube, where there are TONS of videos showing and explaining the technique. And don't think that lock picks are only available to locksmiths. In less than a minute, I can find over a thousand places on the internet to buy my own set of lock picks, and where they are more than happy and willing to sell me a set.

    [...]

    So, see? As a PCLinuxOS user, you are most assuredly safe and secure. It's EXTREMELY unlikely that you are using a kernel that was retired over seven years ago. However, you know that in some dark, closeted server room somewhere in the world, sits a long forgotten Linux server that just happily keeps chugging along, day after day, year after year, without any updates being performed in years. Many server operators are reluctant to take a server down or offline that is performing its desired/assigned function for a kernel update. It's more of a "if it ain't broke, don't fix it" approach.

    So, this "threat" represents the importance of two things for PCLinuxOS users. First, use the most recent kernel that functions with all of your hardware. Newer kernels resolve security vulnerabilities that might have gone unnoticed for quite some time (such as with DrovoRub). Second, keep your system as up-to-date as you possibly can, since many software updates close or resolve security vulnerabilities that are discovered after (sometimes long after) the release of the software. Do you still think it isn't a big deal? See here for all of the vulnerabilities discovered in the Linux Kernel.

    The "takeaway" is quite simple. Keep. Your. Computer. Updated. Only by staying one (or a few) steps ahead of the hackers will you guarantee that your data and OS are safe.

  • Intel Sends Out Linux Patches For FPGA Security Manager

    Patches were posted on Friday for introducing the Intel Security Manager class driver to the Linux kernel.

    This open-source "Intel Security Manager" class driver is intended for managing secure updates to Intel FPGA hardware.

  • Mike Blumenkrantz: More Map Gains

    Optimizing transfer_map is one of the first issues I created, and it’s definitely one of the most important, at least as it pertains to unit tests. So many unit tests perform reads on buffers that it’s crucial to ensure no unnecessary flushing or stalling is happening here.

  • What would you like to see most in minix?

    I’m working on a couple of presentations and I wanted to share this nugget of joy with anyone who hasn’t actually read it.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.