Feed lwn LWN.net

Favorite IconLWN.net

Link https://lwn.net/
Feed http://lwn.net/headlines/rss
Updated 2025-07-18 23:45
[$] splice() and the ghost of set_fs()
The normal rule of kernel development is that the creation of user-spaceregressions is not allowed; a patch that breaks a previously workingapplication must be either fixed or reverted. There are exceptions,though, including a5.10 patch that has been turning up regressions ever since. The storythat emerges here shows what can happen when the goals of stability,avoiding security problems, and code cleanup run into conflict.
What happened to Perl 7?
The Perl Steering Council has posted ablog entry on its plans for the language and when Perl 7 might bereleased.
Security updates for Thursday
Security updates have been issued by Debian (chromium, dpkg, filezilla, irssi, puma, and python-django), Fedora (firefox, ignition, and pcre2), Mageia (cockpit, firefox/thunderbird, openldap, supertux, unrar, and vim), Oracle (firefox and thunderbird), Red Hat (rh-varnish6-varnish), SUSE (cups, fribidi, kernel-firmware, redis, and wpa_supplicant), and Ubuntu (dpkg, logrotate, and subversion).
[$] LWN.net Weekly Edition for May 26, 2022
The LWN.net Weekly Edition for May 26, 2022 is available.
[$] Making O_TMPFILE atomic (and statx() additions)
Right on the heels of his previous filesystemsession at the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), Steve French leda session on temporary files and their interaction with networkfilesystems.The problem is that creating temporary files is not always atomic, so he wasproposing changing that, which would eliminate a possible race conditionand be more efficient for network filesystems.Since the temporary-file discussion did not fill the 30-minute slot, however, French tookthe opportunity to discuss some attributes he would like to see get added for thestatx()system call.
[$] Change notifications for network filesystems
Steve French led a discussion on change notifications for networkfilesystems in a session at the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM). He is part ofthe Samba team and noted that both Windows and macOS clients get notifiedof new and changed files in a shared directory immediately, while on Linux that does not happen. Hewanted to explore what it would take to add that functionality.
The Linux Foundation's "security mobilization plan"
The Linux Foundation has posted an "Open SourceSoftware Security Mobilization Plan" that aims to address a number ofperceived security problems with the expenditure of nearly$140 million over two years.
F-Droid: Our build and release infrastructure, and upcoming updates
Here's anupdate from F-Droid regarding upcoming changes to its build anddistribution infrastructure.
Another set of stable kernel updates
The5.17.10,5.15.42,5.10.118,5.4.196,4.19.245,4.14.281, and4.9.316stable kernel updates have all been released; each contains another set ofimportant fixes.Update: the 5.17.11 and 5.15.43 updates followed immediatelythereafter with a single MPTCP networking fix.
Security updates for Wednesday
Security updates have been issued by Debian (lrzip and puma), Fedora (plantuml and plib), Oracle (kernel and kernel-container), Red Hat (firefox, kernel, kpatch-patch, subversion:1.14, and thunderbird), Scientific Linux (firefox and thunderbird), SUSE (kernel-firmware, libxml2, pcre2, and postgresql13), and Ubuntu (accountsservice, postgresql-10, postgresql-12, postgresql-13, postgresql-14, and rsyslog).
[$] Sharing memory for shared file extents
On the second day of the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), Goldwyn Rodriguesled a combined filesystem and memory-management session on saving memory whenreading files that share extents. That kind of sharing can occur withcopy-on-write (COW) filesystems, reflinks, snapshots, and other featuresof that sort. When reading those files, memory is wasted because multiplecopies of the same data is stored in the page cache, so he wanted toexplore adding a cachespecifically to handle that.
Google: Protecting Android users from 0-Day attacks
ThisGoogle blog entry looks at some zero-day Android exploits that weredetected and makes it clear what the stakes are.
[$] Improved error reporting for CPython3.10—and beyond
In a fast-paced talk at PyCon 2022 in Salt Lake City,Utah, Pablo Galindo Salgado described some changes he and others have madeto the error reporting for CPython 3.10. He painted a picture of arather baffling set of syntax errors reported by earlier interpreterversions and how they have improved. This work is not done by any means,he said, and encouraged attendees to get involved in making error reportingeven better in future Python versions.
Security updates for Tuesday
Security updates have been issued by Debian (firefox-esr and openldap), Fedora (curl), Oracle (kernel and kernel-container), Red Hat (maven:3.5), SUSE (cacti, cacti-spine, firefox, go1.18, openldap2, python-requests, rsyslog, and slurm_20_11), and Ubuntu (firefox, htmldoc, libpng, libxfixes, libxrender, thunderbird, and vim).
Alpine Linux 3.16.0 released
Version3.16.0 of the Alpine Linux distribution has been released. Significantchanges include a switch to tmpfs for the /tmp directory, thesplitting out of a number of NetworkManager plugins into separate packages,the removal of Python 2, and a lot of updated packages; see therelease notes for more information.
[$] Statistics from the 5.18 development cycle
The 5.18 kernel was releasedon May 22 after a nine-week development cycle. That can only meanthat the time has come to look at some of the statistics behind thisrelease, which was one of the busiest in a while. Read on for a look atthe 5.18 kernel, where the code in this release came from, and how it foundits way into the mainline.
Systemd 251 released
Systemd 251 is out. The list of changes includes an increase of theminimum kernel version to 4.15, use of C11 to build the program, increased use of filesystem ID mapping, and many other things;see the announcement for all the details.
Security updates for Monday
Security updates have been issued by Debian (admesh, condor, firefox-esr, libpgjava, libxml2, rsyslog, and thunderbird), Fedora (dotnet6.0, libarchive, php-openpsa-universalfeedcreator, thunderbird, and vim), Mageia (ffmpeg, kernel, kernel-linus, microcode, netatalk, nvidia-current, nvidia390, opencontainers-runc, postgresql, and ruby-nokogiri), Slackware (mariadb and mozilla), and SUSE (curl, firefox, libarchive, librecad, libxls, openldap2, php7, and postgresql10).
The 5.18 kernel has been released
Linus has released the 5.18 kernel."No unexpected nasty surprises this last week, so here we go with the5.18 release right on schedule." Some of the headline changes inthis release includethe DAMOS memory-management interface,a number of random-number-generator improvements,the Intel software-defined silicon driver,strict memcpy() bounds checking,a switch to the C11 standard, and more. Also, the Reiserfs filesystem has beendeprecated and the last vestiges of a.outsupport have been removed.See the LWN merge-window summaries (part 1, part 2) and the KernelNewbies 5.18 pagefor more details.
LWN is now on Mastodon
For readers who want to follow our article stream on Mastodon, LWN now(finally) has a presence in the Fosstodon community; you can find us at@LWN@fosstodon.org.
[$] Preserving guest memory across kexec
The final session in the memory-management track at the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM) was run remotelyby James Gowans and David Woodhouse. It was titled "user-space control ofmemory mappings", with a subtitle of "letting guest memory and statesurvive kexec". Some options were discussed, but the real work is clearlyyet to be done.
[$] Fixing a race in hugetlbfs
As the memory-management track at the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM) neared itsconclusion, Mike Kravetz ran a session remotely to talk about pagesharing with hugetlbfs, which is a special filesystem that provides accessto huge pages. (See this article seriesfor lots of information about hugetlbfs). Hugetlbfs can help to reducepage-table overhead when pages are shared between large numbers ofprocesses, but there is a problem that he is trying to find a solution for.
[$] get_user_pages() and COW, 2022 edition
The numerous correctness problemswith the kernel's get_user_pages() functionality have been a fixture at the LinuxStorage, Filesystem, Memory-management and BPF Summit (LSFMM) for someyears. The 2022 eventdid not break that tradition. The first-day discussion on page pinning was covered here.On the final day, in the memory-managementtrack, David Hildenbrand led a session on the current status ofget_user_pages() and its interaction with copy-on-write (COW)memory.
Security updates for Friday
Security updates have been issued by CentOS (kernel), Debian (ark, openldap, and thunderbird), Fedora (freetype and vim), Oracle (.NET 5.0, .NET 6.0, .NET Core 3.1, container-tools:3.0, glibc, kernel, rsync, and subversion:1.10), Scientific Linux (kernel), SUSE (dcraw, firefox, glib2, ImageMagick, kernel-firmware, libxml2, libyajl, php7, ucode-intel, and unrar), and Ubuntu (openldap).
Rust 1.61.0 released
Version1.61.0 of the Rust language has been released. Changes this timearound include more flexibility in main-program exit codes, a number of newfeatures for const functions, a number of newly stabilized APIs, and more.
[$] Cleaning up dying control groups, 2022 edition
Control groups are a useful system-management feature, but they can alsoconsume a lot of resources, especially if they hang around on the systemafter they have been deleted. Roman Gushchin described the problems that can result at the2019 Linux Storage, Filesystem, Memory-management and BPF Summit (LSFMM);he returned during the 2022 LSFMM to revisitthe issue, especially as it relates to the memory controller. Progress hasbeen made, but the problem is not yet solved.
[$] CXL 2: Pooling, sharing, and I/O-memory resources
During the final day of the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), attention in thememory-management track turned once again to the challenges posed by theupcoming Compute Express Link (CXL) technology. Two sessions looked atdifferent problems posed by CXL memory, which can come and go over theoperation of the system. CXL offers a lot of flexibility, but changes willbe needed for the kernel to be able to take advantage of it.
Huang: Rust: A Critical Retrospective
Andrew 'bunnie' Huang has posted an extensive review ofthe Rust language derived from the experience of writing "over100k lines" of code.
Security updates for Thursday
Security updates have been issued by Fedora (microcode_ctl, rubygem-nokogiri, and vim), Mageia (htmldoc, python-django, and python-oslo-utils), Red Hat (container-tools:2.0, kernel, kernel-rt, kpatch-patch, and pcs), SUSE (ardana-barbican, grafana, openstack-barbican, openstack-cinder, openstack-heat-gbp, openstack-horizon-plugin-gbp-ui, openstack-ironic, openstack-keystone, openstack-neutron-gbp, python-lxml, release-notes-suse-openstack-cloud, autotrace, curl, firefox, libslirp, php7, poppler, slurm_20_11, and ucode-intel), and Ubuntu (bind9, gnome-control-center, and libxrandr).
[$] LWN.net Weekly Edition for May 19, 2022
The LWN.net Weekly Edition for May 19, 2022 is available.
LWN is hiring
LWN does its best to provide comprehensive coverage of the free-softwaredevelopment community, but there is far more going on than our small staffcan handle. When expressed that way, this problem suggests an obvioussolution: make the staff bigger. Thus, LWN is looking to hire awriter/editor.
[$] Unique identifiers for NFS
In a combined filesystem and storage session at the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), Chuck Leverwanted to discuss the need for a permanent, globally unique ID for network filesystems. He was joined by Hannes Reinecke who has worked on theproblem for NVMe storage devices; Lever said something along thoselines is needed for NFSv4. He was hoping to find a solution during thesession, though it would seem that the solution may lie in user space—anddocumentation.
openSUSE Leap Micro 5.2 released
OpenSUSE Leap Micro is a new distribution, described as "anultra-reliable, lightweight operating system built for containerized andvirtualized workloads". The initial release (5.2) isnow available. More information can be found in the5.2 release notes.
[$] Snapshots, inodes, and filesystem identifiers
A longstanding problem with Btrfs subvolumesand duplicate inode numbers was the topic of a late-breaking filesystem sessionat the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM). The problem hadcropped up in the bcachefs session butJosef Bacik deferred that discussion to this just-created session, which he led. Theproblem is not limited to Btrfs, though, since filesystem snapshots forother filesystems canhave similar kinds of problems.
Yet another set of stable kernel updates
The5.17.9,5.15.41,5.10.117,5.4.195,4.19.244,4.14.280, and4.9.315stable kernel updates have all been released; each contains another set ofimportant fixes.
Security updates for Wednesday
Security updates have been issued by Debian (elog, needrestart, openssl, and waitress), Fedora (curl, libxml2, slurm, and vim), Scientific Linux (zlib), SUSE (e2fsprogs, nodejs10, php72, and thunderbird), and Ubuntu (apport, clamav, needrestart, and pcre3).
[$] Bringing bcachefs to the mainline
Bcachefs is a longstanding out-of-treefilesystem that grew out of the bcache cachinglayer that has been in the kernel for nearly ten years. Based on asession led by Kent Overstreet at the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), though, it wouldseem that bcachefs is likely to be heading upstream soon. He intends tostart the process toward mainline inclusion over the next six months or so.
[$] Sharing page tables with mshare()
The Linux kernel allows processes to share pages in memory, but the pagetables used to control that sharing are not, themselves, shared; as aresult, processes sharing memory maintain duplicate copies of thepage-table data. Normally this duplication imposes little overhead, butthere are situations where it can hurt. At the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), Khaled Aziz(remotely) and Matthew Wilcox led a session to discuss a proposed mechanismto allow those page tables to be shared between cooperating processes.
Inkscape 1.2 released
Version 1.2 of theInkscape drawing tool has been released. New features include multi-pagesupport, editable markers, the ability to flow text around shapes, andmore; see therelease notes for details.
Security updates for Tuesday
Security updates have been issued by Debian (cifs-utils, ffmpeg, libxml2, and vim), Fedora (rsyslog), Mageia (chromium-browser-stable), SUSE (chromium, containerd, docker, e2fsprogs, gzip, jackson-databind, jackson-dataformats-binary, jackson-annotations, jackson-bom, jackson-core, kernel, nodejs8, openldap2, pidgin, podofo, slurm, and tiff), and Ubuntu (clamav, containerd, libxml2, and openldap).
[$] Dynamically allocated pseudo-filesystems
It is perhaps unusual to have a kernel tracing developer leading afilesystem session, Steven Rostedt said, at the beginning of such a session at the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM). But he was doingso totry to find a good way to dynamically allocate kernel data structuresfor some of the pseudo-filesystems, such as sysfs, debugfs, and tracefs,in the kernel.Avoiding static allocations would save memory, especially on systemsthat are not actually using any of the files in those filesystems.
SFC v. Vizio remanded back to California state courts
Software Freedom Conservancy (SFC)has announcedthat it succeeded with its motion in US Federal Court to send the case backto California, where it was originally filed. The suit was filedin October 2021 by SFC, as an owner of Vizio televisions, to getthe company to comply with the GPL on some of the code in the TVs. Back in November, Vizio hadasked to move thecase to Federal Court, because the GPL is only a copyright license(which is a dispute handled at the Federal level) and not a contract (thatcould be adjudicated in state court). Friday's ruling disagreed with that premise:
[$] The netfslib helper library
A new helper library for network filesystems, called netfslib, was the subjectof a filesystem session at the2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM). David Howellsdevelopednetfslib, which was merged for 5.13 a year ago, and led the session.Some filesystems, like AFS and Ceph, are already using some of the servicesthat netfslib provides, while others are starting to look into it.
Security updates for Monday
Security updates have been issued by CentOS (gzip, java-1.8.0-openjdk, java-11-openjdk, and zlib), Debian (adminer, htmldoc, imagemagick, libgoogle-gson-java, lrzip, openjdk-8, openssl, and ruby-nokogiri), Fedora (ecdsautils, et, libxml2, podman, and supertux), Mageia (cairo, clamav, curl, fish, freetype2, golang-github-prometheus-client, python-django-registration, python-nbxmpp, python-waitress, and xmlrpc-c), Red Hat (pcs), SUSE (curl, kernel, pidgin, and webkit2gtk3), and Ubuntu (tiff).
Kernel prepatch 5.18-rc7
The 5.18-rc7 kernel prepatch has beenreleased for testing. Linus says: "So things continue to be fairlycalm, and as such this is likely the last rc before 5.18 unless somethingbad happens next week".
Sunday's stable kernels
The5.17.8,5.15.40,5.10.116,5.4.194,4.19.243,4.14.279, and4.9.314stable kernels have been released; each contains another set of important fixes.
[$] Proactive reclaim for tiered memory and more
Memory reclaim in Linux is largely a reactive practice; the kernel tries tofind memory it can repurpose in response to the amount of free memoryfalling too low. Developers have often wondered if a proactive reclaimmechanism might lead to better performance, for some workloads at least,and optimal use of tiered-memory systems will likely require more activereclamation of memory as well. At the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM), Davidlohr Buesoled a brief session on the topic.
[$] CXL 1: Management and tiering
Compute ExpressLink (CXL) is an upcoming memory technology that is clearly on theminds of Linux memory-management developers; there were five sessionsdedicated to the topic at the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM). The first threesessions, on May 3, covered various aspects of memory management in thepresence of CXL. It seems thatCXL may bring some welcome capabilities, especially for cloud-serviceproviders, but that will come at the cost of some headaches on thekernel-development side.
Security updates for Friday
Security updates have been issued by Debian (chromium, postgresql-11, postgresql-13, and waitress), Fedora (curl, java-1.8.0-openjdk-aarch32, keylime, and pcre2), Oracle (gzip and zlib), Red Hat (subversion:1.10), SUSE (clamav, documentation-suse-openstack-cloud, kibana, openstack-keystone, openstack-monasca-notification, e2fsprogs, gzip, and kernel), and Ubuntu (libvorbis and rsyslog).
[$] Merging the multi-generational LRU
Many types of kernel changes can be hammered into shape on the mailinglists. There are certain types of patches, however, that have a hard time getting tothe finish line that way; they are sufficiently large and invasive thatthey need an actual gathering of the developers involved. The multi-generational LRU work (MGLRU) falls into thiscategory, which is why it was the subject of a full-hour session at the 2022 Linux Storage,Filesystem, Memory-management and BPF Summit (LSFMM). The discussionheld there may well have opened the doors for this code to be merged in thenear future.
...64656667686970717273...