All posts by daroc

[$] C++26 contract confusion

Post Syndicated from daroc original https://lwn.net/Articles/1105400/

The

International Organization for Standardization
(ISO) has blessed seven C++
language revisions since 1998.
The language is mostly developed by ISO’s

Working Group 21
, which
considers proposed additions and amendments, integrates them into a document,
and then presents that document to the main ISO body to be voted on as a
standard. On October 23, for the first time ever, ISO declined to ratify a document
presented by Working Group 21, leaving the future of the C++26 standard in
doubt. The decision was driven by controversy around a proposed new “contracts”
feature that would add pre- and post-conditions to function signatures.

[$] Additional hardening for the glibc dynamic linker

Post Syndicated from daroc original https://lwn.net/Articles/1105134/

The

Node.js project
recently had a

security vulnerability
that
affected its

Brotli
decoder. The bug

was a buffer overflow
,
but the particular way that official Node.js binaries are built for Linux meant that one of the
main protections against turning a buffer overflow into remote code execution,

address space layout randomization
(ASLR) could not be turned on. If ASLR had been
enabled, the bug would still be exploitable in theory, but much more difficult
to exploit in practice. In response, the GNU C Library (glibc) is

considering
a new set of

tunable settings
to allow administrators to forbid programs that do not
support ASLR. The new settings, while a welcome hardening measure, may not
address the root problem.

[$] Locking down hibernation for the winter

Post Syndicated from daroc original https://lwn.net/Articles/1103190/

When a computer hibernates, the kernel writes the contents of memory to disk and
then shuts the system down. Resuming from hibernation involves reading that data
back into memory, and then having the kernel pick up where it left off.
Unfortunately, the kernel does not have
any way to know that the data it is reading back has not been tampered with,
which is why lockdown, an optional kernel
feature that attempts to prevent modifications to the running kernel, disables hibernation.
Matthew Garrett, who has been working on lockdown for many years, has shared

a patch set
that aims to fix this problem. His solution must also protect
against downgrade attacks (where an attacker reboots the computer with an older
kernel version to bypass new protections), which complicates the implementation.

OpenSUSE Leap 16.1

Post Syndicated from daroc original https://lwn.net/Articles/1105131/

The openSUSE project has announced the release of openSUSE Leap 16.1. The release is notable for allowing both traditional installations and immutable images with transactional updates. While immutable images had previously been available for Leap Micro, they are now available across all platforms that Leap supports, including servers, desktops, and virtual machines.

“Leap’s image gives the best of both for traditional and immutable users, and we expect that Tumbleweed will follow when Agama becomes the default installer for Tumbleweed as well.” said Leap release manager Lubos Kocman. “The Leap Micro experience people relied on is still here, but now it shares the same release, the same life cycle and the same maintenance updates as the rest of Leap, so users only have to pick the mode that fits their workload.”

[$] The second part of the 7.4 merge window

Post Syndicated from daroc original https://lwn.net/Articles/1102739/

The 7.4 merge window, which
closed on November 1,
included a record-breaking 18,591 non-merge changesets.
That is almost as many as the entire 7.3 development cycle, which had 18,765, itself a record breaker. Of
those, 11,838 landed after the article covering the
first part of the merge window
. Most of those were bug fixes of
various forms; it seems as though bug fixes may be crowding out feature
additions across the open-source ecosystem to
some extent. Still, a good number of new features were included, and a handful
removed, in the tail end of the merge window.

[$] Removing binder.c

Post Syndicated from daroc original https://lwn.net/Articles/1102982/

The final talk at Kangrejos 2026 was about the removal of the C implementation
of Android’s

Binder driver
, the primary interprocess communication mechanism
used on Android devices. Carlos Llamas announced that he had deleted the C
code to general applause, and then shared some insights about what went into
replacing the C implementation. Alice Ryhl, who has worked on the Rust
implementation for some years, added her own thoughts about what the most
difficult and interesting parts of the transition were.

Remote code execution on Linux systems with multipath TCP

Post Syndicated from daroc original https://lwn.net/Articles/1104192/

On October 27, LLM provider Anthropic
reported
on
a

remotely exploitable use-after-free bug
affecting systems with
multipath TCP listeners open. The bug works by triggering a response to a
retransmitted SYN packet at the same moment that the TCP connection is
established in another thread, causing the first thread to access the
connection’s options structure after the second thread has freed it. The first
thread can then disclose kernel memory or cause a buffer overflow, writing an
attacker-controlled payload. The fix was

to only free the structure after an RCU grace period
.
On October 29, the Go security team
advised
that all programs written in Go use multipath TCP by default
, so many
systems may be unknowingly vulnerable. And, of course, there is always the
possibility of related bugs in other sections of the TCP stack. Users may be
wise to update to a patched kernel as soon as one becomes available for their
distribution.

Eight more stable kernel updates

Post Syndicated from daroc original https://lwn.net/Articles/1104177/

Greg Kroah-Hartman has announced the release of the 7.3.1,
7.2.14,
6.18.60,
6.12.115,
6.6.161,
6.1.191,
5.15.224, and
5.10.273 stable kernels. As usual, he advises
all users to update—advice that seems especially wise given the
increased number of security-relevant bug fixes that the kernel is seeing these days.
[Edit: the 7.2.15 stable release is already in review as well.]

Security updates for Friday

Post Syndicated from daroc original https://lwn.net/Articles/1104174/

Security updates have been issued by AlmaLinux (aspell, cjose, curl, gcc-toolset-15-gcc, httpd:2.4, ignition, java-21-openjdk, libX11, libXi, libXrender, libXtst, mariadb:10.11, nodejs:24, python-pillow, python3.12-urllib3, and webkit2gtk3), Debian (imagemagick, libdatetime-timezone-perl, python-git, tor, tzdata, vlc, and wordpress), Fedora (accessibility-inspector, akonadi-calendar, akonadi-calendar-tools, akonadi-contacts, akonadi-import-wizard, akonadi-mime, akonadi-search, akonadi-server, akonadiconsole, akregator, alligator, analitza, angelfish, applet-window-buttons, arianna, ark, artikulate, audex, audiocd-kio, audiotube, aurorae, baloo-widgets, blinken, bluedevil, bomber, bovo, breeze-gtk, brotli, bup, calendarsupport, calindori, calligra, cantor, colord-kde, cxx-rust-cssparser, dolphin, dolphin-plugins, dragon, elisa-player, eventviews, falkon, fcitx-configtool, ffmpegthumbs, filelight, firefox, flatpak-kcm, francis, ghostwriter, granatier, grantlee-editor, grantleetheme, grub2-breeze-theme, gwenview, incidenceeditor, isoimagewriter, itinerary, juk, k3b, kaccounts-integration, kaccounts-providers, kactivitymanagerd, kaddressbook, kajongg, kalarm, kalgebra, kalk, kalm, kalzium, kamera, kamoso, kanagram, kapman, kapptemplate, kasts, kate, katomic, kbackup, kblackbox, kblocks, kbounce, kbruch, kcachegrind, kcalc, kcalutils, kcharselect, kclock, kcolorchooser, kcron, kde-cli-tools, kde-connect, kde-dev-scripts, kde-dev-utils, kde-gtk-config, kde-inotify-survey, kde-partitionmanager, kdebugsettings, kdecoration, kdeedu-data, kdegraphics-mobipocket, kdegraphics-thumbnailers, kdenetwork-filesharing, kdenlive, kdepim-addons, kdepim-runtime, kdeplasma-addons, kdesdk-kioslaves, kdesdk-thumbnailers, kdevelop, kdevelop-php, kdevelop-python, kdf, kdialog, kdiamond, kdnssd, kdominate, keditbookmarks, keepsecret, keysmith, kf6-baloo, kfind, kfourinline, kgeography, kget, kglobalacceld, kgoldrunner, kgpg, kgraphviewer, khangman, khealthcertificate, khelpcenter, kidentitymanagement, kig, kigo, killbots, kimagemapeditor, kimap, kinfocenter, kio-admin, kio-extras, kio-gdrive, kirigami-gallery, kiriki, kiten, kitinerary, kjournald, kjumpingcube, kldap, kleopatra, klettres, klickety, klines, kmag, kmahjongg, kmail, kmail-account-wizard, kmailtransport, kmbox, kmenuedit, kmines, kmix, kmousetool, kmouth, kmplot, knavalbattle, knetwalk, knights, knighttime, knot, koko, kolf, kollision, kolourpaint, kompare, kongress, konqueror, konquest, konsole, kontact, kontactinterface, kontrast, konversation, kopeninghours, korganizer, kosmindoormap, kpat, kpimtextedit, kpipewire, kpkpass, kpmcore, kpublictransport, kqtquickcharts, krdc, krdp, krecorder, kreversi, krfb, kruler, ksanecore, kscreen, kscreenlocker, kshisen, ksirk, ksmtp, ksnakeduel, kspaceduel, ksquares, ksshaskpass, ksudoku, ksystemlog, ksystemstats, kteatime, ktimer, ktnef, ktorrent, ktouch, ktrip, ktuberling, kturtle, kubrick, kunifiedpush, kup-backup, kwalletmanager5, kwave, kwayland, kwayland-integration, kweather, kweathercore, kwin, kwin-zones, kwordquiz, kwrited, layer-shell-qt, libgravatar, libkcddb, libkdcraw, libkdegames, libkdepim, libkeduvocdocument, libkexiv2, libkgapi, libkleo, libkmahjongg, libkomparediff2, libksane, libkscreen, libksieve, libksysguard, libktorrent, libplasma, libquotient, lokalize, lskat, mailcommon, mailimporter, marble, markdownpart, massif-visualizer, mbox-importer, merkuro, messagelib, mimetreeparser, mingw-python-certifi, minuet, neochat, ocean-sound-theme, okular, oxygen-sounds, palapeli, pam-kwallet, parley, perl-Alien-Brotli, picmi, pim-data-exporter, pim-sieve-editor, pimcommon, plasma-activities, plasma-activities-stats, plasma-bigscreen, plasma-breeze, plasma-browser-integration, plasma-camera, plasma-desktop, plasma-dialer, plasma-discover, plasma-disks, plasma-drkonqi, plasma-firewall, plasma-integration, plasma-keyboard, plasma-login-manager, plasma-milou, plasma-mobile, plasma-nano, plasma-nm, plasma-oxygen, plasma-pa, plasma-phonebook, plasma-print-manager, plasma-sdk, plasma-settings, plasma-setup, plasma-systemmonitor, plasma-systemsettings, plasma-thunderbolt, plasma-union, plasma-vault, plasma-wayland-protocols, plasma-welcome, plasma-workspace, plasma-workspace-wallpapers, plasma5support, plasmatube, plymouth-kcm, plymouth-theme-breeze, polkit-kde, powerdevil, poxml, qmlkonsole, qqc2-breeze-style, qrca, rocs, sddm-kcm, signon-kwallet-extension, skanlite, skanpage, skladnik, spacebar, spectacle, step, svgpart, sweeper, tokodon, trafficserver, umbrello, xdg-desktop-portal-kde, yakuake, and zanshin), Mageia (cfitsio, libsolv, tomcat, and xrdp), Oracle (bind, cjose, curl, dogtag-pki, expat, gcc-toolset-15-gcc, ignition, kernel, libX11, libXrender, libXtst, php, python3.12-urllib3, and webkit2gtk3), SUSE (389-ds, aws-nitro-enclaves-binaryblobs-upstream, brotli, chromium, firefox, flatpak, gnutls, google-osconfig-agent, haproxy, hawk2, kernel, libapr1, libtcnative-1-0, tomcat, liboath-devel, libpcre2-16-0, librecad, libXi-devel, libXtst-devel, python311, python313, python313-markdown2, python313-xhtml2pdf, rabbitmq-server, roundcubemail, rust-keylime, and xen), and Ubuntu (dotnet8, dotnet10, dotnet11).

More vulnerabilities in widely deployed software

Post Syndicated from daroc original https://lwn.net/Articles/1102044/

The Node.js project has
released
a number of security updates
to fix, among other vulnerabilities, a
remote-code-execution bug affecting programs that use Brotli compression. And,
in case any programmers who use compiled languages thought they could relax, the
musl libc project has also announced a
new vulnerability: an
out-of-bounds
write
that could potentially lead to remote code execution, although that
has not been demonstrated.

[$] Discussing a rewrite of XArray

Post Syndicated from daroc original https://lwn.net/Articles/1100520/

The work to support block sizes larger than the page size on XFS has been
difficult. Many users of XFS run stable kernels, which means that they aren’t testing
new XFS code as it is released. That has made Daniel Gomez wonder whether
adopting Rust for some of the data structures underlying XFS, particularly

XArrays
, could reduce the number of bugs lurking in the code. At
Kangrejos 2026, he led a discussion about the potential problems with converting
XArray to Rust. The assembled kernel developers had a number of reasons to be
cautious about replacing the XArray code, but Gomez was determined to experiment
with the possibility, citing both security and performance improvements.

[$] Cross-crate forward declarations in Rust

Post Syndicated from daroc original https://lwn.net/Articles/1099596/

Rust has several ad-hoc mechanisms to allow user code to influence how the
standard library executes. For example, custom panic handlers and custom
allocators both involve registering functions that core standard library code
needs to call. With more similar features planned,
Jana Dönszelmann spotted the developing pattern and put together a
general solution, introducing a safer, checked analogue of C’s weak symbol
linking. At Kangrejos 2026, she explained how this new language feature works,
and proposed using it to clean up the kernel’s handling of integer overflows in
Rust code.

[$] Safe self-referential data structures in kernel Rust

Post Syndicated from daroc original https://lwn.net/Articles/1099224/

Self-referential structures that can be used without unsafe code
have posed a problem for Rust for years.
There are many cases where a self-referential data structure is the elegant
algorithmic choice, but implementing it in accordance with Rust’s lifetime rules
is all but impossible. At Kangrejos 2026, Gary Guo presented a clever solution
to the problem in the context of the kernel’s

pin_init crate
, which helps with the creation of immovable data structures,
typically for interoperability with C. Guo’s changes could help remove most of
the unsafe code related to lifetimes in the

Nova driver
and, eventually, other Rust components.

[$] Owning C types from Rust code

Post Syndicated from daroc original https://lwn.net/Articles/1099015/

Rust’s system of ownership and borrowed references is convenient when it can
correctly model a program’s needs. The

Rust for Linux project
has worked to
provide adapters between Rust’s semantics and the existing C code
in the kernel. At Kangrejos 2026, Andreas Hindborg spoke about a

patch
series
implementing the next such adaptor: an Ownable trait for
representing objects that are allocated in C code, but which Rust code is responsible
for cleaning up (if not necessarily deallocating) when it is done with them.
He hoped to finally reach a consensus on the patch series, after months of
discussion on the mailing list.

[$] An update on Rust’s project goals

Post Syndicated from daroc original https://lwn.net/Articles/1098617/

Tomáš Šedovič is a program manager at the Rust Foundation. He co-leads the

goals team
, which helps
organize the Rust project’s

overall goals
, including making sure that the people
who have agreed to work on one have the support they need.
At Kangrejos 2026, he provided an overview of the Rust project’s goal processes
aimed at ensuring that the Rust for Linux developers were aware of how the
project organizes, tracks, and amends goals.
The

Rust for Linux project

has inspired several current project goals, so he thought that getting an inside
view of the process might be helpful.

[$] Analyzing Rust programs with Charon

Post Syndicated from daroc original https://lwn.net/Articles/1097198/

Nadrieril is a long-time Rust contributor, and the maintainer of the rustc
pattern-matching infrastructure. During his involvement with Rust, he has
noticed a problem with the usability of the language: it is difficult to
automatically extract information from a Rust crate for use with other tooling.

The Charon project
aims to fix that by providing a stable API for accessing
internal information from the Rust compiler.

[$] Beyond the &

Post Syndicated from daroc original https://lwn.net/Articles/1096028/

Rust has a number of kinds of smart pointers, both in the standard
library and defined by users. Still, some operations that are possible with
built-in references are not possible to perform with user-defined smart
pointers. Tyler Mandry, lead of the Rust project’s

language team
, spoke at

RustConf 2026
about the lengthy effort to change that, and make smart pointers
just as flexible as built-in references.

[$] Native support for Rust on the GPU

Post Syndicated from daroc original https://lwn.net/Articles/1095731/

Christian Legnitto is the maintainer of

rust-gpu
and

Rust CUDA
, two
libraries that make it possible to program a computer’s graphics processing unit
(GPU) from Rust. He isn’t satisfied with the current state of GPU support in
Rust, however. In a talk at

RustConf 2026
, he explained his vision for how the
GPU could become an ordinary compiler target for normal Rust code, without the
need for any special libraries or new ecosystem support. That vision is not yet
fully implemented, but he does have a prototype that he is preparing to release.

[$] Listening to the radio with Rust

Post Syndicated from daroc original https://lwn.net/Articles/1095721/

Many of the transmissions sent over the radio spectrum can
be decoded with a relatively cheap hardware dongle. Thomas Eckert presented at

RustConf 2026
in Montreal about his hobby:
decoding radio transmissions with Rust.
In his presentation, he
covered all of the math necessary to get started with

software-defined radio
,
and gave demonstrations of listening to AM and FM radio, as well as decoding
transmissions from
aircraft transponders. His slides and example code are

available
on GitHub.