All posts by corbet

Linus on Rust and the kernel’s DMA layer

Post Syndicated from corbet original https://lwn.net/Articles/1011197/

At the end of January we ran this article
on the discussions around a set of Rust bindings for the kernel’s
DMA-mapping layer. Many pixels have been expended on the topic since
across the net, most recently in this
sprawling email thread
. Linus Torvalds has now made
his feelings known
on the topic:

You are not forced to take any Rust code, or care about any Rust
code in the DMA code. You can ignore it.

But “ignore the Rust side” automatically also means that you don’t
have any *say* on the Rust side.

You can’t have it both ways. You can’t say “I want to have nothing
to do with Rust”, and then in the very next sentence say “And that
means that the Rust code that I will ignore cannot use the C
interfaces I maintain”.

The code in question seems highly likely to be merged for the 6.15 release.

Rust 1.85.0 released

Post Syndicated from corbet original https://lwn.net/Articles/1011122/

Version
1.85.0
of the Rust language has been released. Changes in the release
include support for async closures, some convenience iterators for tuples,
and a number of stabilized APIs. The headline feature, though, is that
this release stabilizes the Rust 2024
edition
, described as “the largest edition we have released“.
The 2024
edition guide
has a detailed listing of all the changes that were
incorporated this time around.

[$] Support for atomic block writes in 6.13

Post Syndicated from corbet original https://lwn.net/Articles/1009298/

Atomic block writes, which have been discussed here a
few times in the past, are block operations that either complete fully or
do not occur at all, ensuring data consistency and preventing partial (or
“torn”) writes. This means the disk will, at all times, contain either the
complete new data from the atomic write operation or the complete old data
from a previous write. It will never have a mix of both the old and the new
data, even if a power failure occurs during an ongoing atomic write
operation. Atomic writes have been of interest to many Linux users,
particularly database developers, as this feature can provide significant
performance improvements.

Security updates for Thursday

Post Syndicated from corbet original https://lwn.net/Articles/1011056/

Security updates have been issued by Debian (mosquitto), Fedora (gnutls, kernel, libtasn1, microcode_ctl, openssh, python3.10, python3.11, and python3.9), Red Hat (bind, bind9.16, buildah, container-tools:rhel8, podman, and redis:6), Slackware (libxml2), SUSE (dcmtk, google-osconfig-agent, java-17-openj9, kubernetes1.30-apiserver, kubernetes1.31-apiserver, openssh, and ruby3.4-rubygem-grpc), and Ubuntu (linux, linux-lowlatency and linux-aws, linux-azure, linux-gcp, linux-oracle, linux-raspi, linux-realtime).

A milestone for reproducible openSUSE

Post Syndicated from corbet original https://lwn.net/Articles/1010629/

The Reproducible-openSUSE project has announced
that it has created a usable version of openSUSE with 100% reproducible
packages.

[Bernhard] Wiedemann took on this 4-month-long project to create a
fork of openSUSE that has 100% bit-reproducible packages. So far
ring0 (aka bootstrap) and ring1 with 3,300 software packages have
all successfully been patched and tested.

This build is not yet recommended for production use, though.

Kernel prepatch 6.14-rc3

Post Syndicated from corbet original https://lwn.net/Articles/1010232/

The 6.14-rc3 kernel prepatch is out for
testing; the announcement, for unknown reasons, went only to the
linux-btrfs list.

So the first few weeks of the 6.14 release development were
smaller-than-usual, but rc3 is actually right in line with normal
releases at this point. Probably just timing of pull requests, and
we’ll see how next week goes. But nothing looks worrisome.

Along with the usual stream of fixes, this release includes the “faux bus“, designed
for simple drivers that just need some sort of virtual bus to be associated
with; this bus come with Rust bindings from the
outset.

[$] Fighting the AI scraperbot scourge

Post Syndicated from corbet original https://lwn.net/Articles/1008897/

There are many challenges involved with running a web site like LWN. Some
of them, such as finding the courage to write for people who know more
about the subject matter than we do, simply come with the territory we have
chosen. But others show up as an unwelcome surprise; the ongoing task of
fending off bots determined to scrape the entire Internet to (seemingly)
feed into the insatiable meat grinder of AI training is certainly one of
those. Readers have, at times, expressed curiosity about that fight and
how we are handling it; read on for a description of a modern-day plague.

New leadership for Asahi Linux

Post Syndicated from corbet original https://lwn.net/Articles/1009528/

The Asahi Linux project, which is working to support Linux on Apple
silicon, has announced the
resignation of Hector “marcan” Martin as its lead, and his replacement by a
seven-person committee. “Today’s news is bittersweet. We are grateful
to marcan for kicking off this project and tirelessly working on it these
past years. Our community will miss him. Still, with your support, the
project has a bright future to come
“. Martin has explained his reasons
for leaving at length in this
blog post
.

[$] Multi-size THP creation, two different ways

Post Syndicated from corbet original https://lwn.net/Articles/1009039/

Huge pages can increase the performance of many programs, but they can also
have unfortunate performance impacts of their own. Over the last few
years, multi-size transparent huge pages (mTHPs) have increasingly been
seen as a happy medium that bring the benefits of huge pages at a lower cost.
The system cannot benefit from mTHPs, though, if it does not create them;
two developers have independently posted patches to enable the creation of
mTHPs in the background.

Codeberg responds to hate attacks

Post Syndicated from corbet original https://lwn.net/Articles/1009227/

The Codeberg development forge has
recently been subject to sustained attacks resulting in, among other
things, abusive email being sent to the site’s users. The organization has
now put up a
description and a defiant response
:

Extreme right forces actively target members of our communities and
discriminate based on ethnicity and gender, political background,
sexual orientation, disabilities, nationality and faith. However
diversity is an important asset in free/libre software communities
and it is what makes our software great and development productive.

By targeting some of our most active translators, nicest
designers, best developers and all other motivated contributors,
they are hurting the free/libre software ecosystem as a whole.

Security updates for Wednesday

Post Syndicated from corbet original https://lwn.net/Articles/1009177/

Security updates have been issued by AlmaLinux (firefox, kernel, kernel-rt, tbb, and thunderbird), Debian (bind9, cacti, pam-pkcs11, and ruby2.7), Fedora (bind, bind-dyndb-ldap, chromium, crun, and java-21-openjdk), Mageia (calibre, nginx, python-ansible-core, python-jinja2, python-pip, python-setuptools, python-twisted, and python-waitress), Red Hat (doxygen, firefox, gcc, gcc-toolset-13-gcc, gcc-toolset-14-gcc, tbb, and thunderbird), SUSE (go1.24, govulncheck-vulndb, java-1_8_0-openj9, kernel, openssl-3, ovmf, python3-numpy, python311, python36, qemu, and skopeo), and Ubuntu (bluez and openssl).

[$] Smarter IRQ suspension in the networking stack

Post Syndicated from corbet original https://lwn.net/Articles/1008399/

High-performance networking is a highly tuned activity; the amount of time
available to deal with each packet may be measured in nanoseconds, so care
must be taken to avoid anything that might slow the process down.
Recently, there has been a fair amount of attention given to a patch set
merged for 6.13
that, it is claimed, can improve processing efficiency
(and, thus, power savings)
in data centers by as much as 30%. The change itself, contributed by Joe
Damato and Martin Karsten, is a relatively small tweak to existing
optimization techniques; it shows just how much care is needed to optimize
a high-bandwidth server.

Plasma 6.3 released

Post Syndicated from corbet original https://lwn.net/Articles/1008971/

Version 6.3 of
the Plasma desktop has been released.

One year on, with the teething problems a major new release
inevitably brings firmly behind us, Plasma’s developers have worked
on fine-tuning, squashing bugs and adding features to Plasma 6 —
turning it into the best desktop environment for everyone.

Changes include improved support for
drawing tablets, better fractional-scaling support, and more.