Blog 2022

44 posts

Projects, Linux, networks, systems, finds and internet standards from 2022.

December (6)

Linux kernel vulnerability allows remote code execution

At the end of 2022 the Zero Day Initiative reported a vulnerability in the Linux kernel that allowed authenticated users to read data remotely and execute code in the kernel. The bug was in ksmbd, the SMB file server that has run directly in the kernel since Linux 5.15, in the processing of SMB2_TREE_DISCONNECT. ZDI initially gave it the maximum rating of 10 and later corrected it to 9.6.

November (3)

Minecraft on Asahi Linux

Alyssa Rosenzweig demonstrates Minecraft on the emerging free Apple GPU driver under Asahi Linux. The demonstration ran in 2022 on Asahi Linux and Apple Silicon.

Why nuclear waste is not shot into space

KG examines the seemingly simple disposal of radioactive waste by rocket and shows why mass, cost and failed launches devalue the concept. Disposal proposals often fail because risk is concentrated during transport.

Accelerating transformers with OpenVINO

Optimum Intel exports transformers for OpenVINO and runs them optimised on Intel hardware. The article combines model conversion, quantisation and pipeline use. OpenVINO optimises neural networks for Intel processors and other Intel hardware.

October (2)

How BLOOM inference was optimised

The report follows the optimisation of a 176-billion-parameter model from memory planning to distributed execution. It shows that production inference is a systems problem of parallelisation, kernels and communication. BLOOM is too large for the memory of a single common GPU.

September (2)

Native Linux GPU driver for Apple M1

Asahi Lina describes the reverse engineering and architecture of the first native Apple M1 GPU kernel driver for Linux. The GPU firmware runs on an ARM64 coprocessor with Apple's RTKit.

Loading very large models with Accelerate

Accelerate distributes model parts across GPU, CPU and disk instead of first building the whole model in memory. Empty initialisation and automatic device maps avoid unnecessary peaks. init_empty_weights first creates the model structure without parameter data.

August (6)

TP-Link: smuggling malicious code through a security hole in routers

In 2022 researchers from the Vietnamese telecommunications group Viettel found a buffer overflow in the web-based ping tool of the low-cost TP-Link TL-WR841N Wi-Fi router (CVE-2022-30024). Logged-in attackers could execute their own code via an overlong host address and, for example, install a backdoor. TP-Link delivered updates for revisions V10 to V12 and declared older devices end-of-life.

8-bit matrix multiplication for large transformers

The bitsandbytes integration loads large models with 8-bit weights and handles sensitive outliers separately. This lowers memory requirements while important numerical parts keep higher precision. LLM.int8 combines 8-bit matrix multiplication with higher-precision handling of outliers.

Web browsers: Google Chrome and Microsoft Edge 104 close security holes

With Chrome 104 in August 2022, Google closed 27 security holes, at least seven of them high-risk; one earned its discoverer a bounty of 15,000 US dollars. Microsoft followed with Edge 104 and additionally fixed three Edge-specific bugs, including a critical sandbox escape (CVE-2022-33649, CVSS 9.6). Also new were Media Queries Level 4 and Web Bundles for faster loading.

Takeover possible: DrayTek routers with critical security hole

In 2022 Trellix found a critical hole (CVE-2022-32548, CVSS 10.0) in numerous DrayTek routers through which unauthenticated attackers could take over the devices. A logic error in the length check on the login page /cgi-bin/wlogin.cgi led to a buffer overflow, exploitable from the LAN or via the internet if management was reachable there. The researchers found more than 200,000 vulnerable devices on the net.

July (3)

OpenBSD pledge() for Linux

Justine Tunney implements OpenBSD's pledge concept on Linux with seccomp-BPF and other kernel mechanisms. OpenBSD originally introduced pledge as a security feature of its own.

BLOOM: an open multilingual large model

BLOOM was created as an international community project for open access to a very large language model. The article describes the languages, computing effort and the joint organisation behind the training. BLOOM has 176 billion parameters.

Security configuration between help and false security

In 2022, Felix von Leitner described the dilemma of spreading configuration tips for securing proprietary systems such as Windows. Such tips can help but can also create the false impression that the systems can be adequately secured that way. Nevertheless, the post published a reader’s letter from an IT service provider for small and medium-sized companies with specific Windows hardening measures, explicitly as a basis for one’s own research and not as a checklist to work through.

June (7)

How network blocks come about because of sanctions

In June 2022 Lutz Donnerhacke describes from a provider's point of view how block lists for EU sanctions against Russian media reach German access providers. The Federal Network Agency's lists reach providers via industry associations such as Breko, often before the Council decision and without prior contact with the operators of the listed sites. Liability for blocking too early, wrongly, not at all or too broadly remains with the provider.

PHP-FPM with separate pools for web hosting customers

In June 2022 Manuel Schmitt reports that manitu moved its entire web hosting platform to PHP-FPM within a week and a half. Every web hosting package gets its own FPM pool running with the package's user, group and umask, and the old Apache PHP module is gone. A self-written Apache module ignores old php_flag and php_value lines so that affected sites do not return an error 500.

Exporting transformers to ONNX with Optimum

The guide shows how to export and validate Transformers models in ONNX format. This decouples the trained model from PyTorch and opens the way to specialised runtimes. Optimum provides command-line and Python routes for ONNX export.

Building your own PlayStation 5 Slim

The PlayStation 5 is a big console, and in 2022 DIY Perks built a custom, drastically smaller slim version. A new case with water cooling from Alphacool replaced the bulky original cooling. With more than 23 million views, it is the channel’s most watched video.

How fast are Linux pipes?

In “How fast are Linux pipes anyway?”, Francesco Mazzoli examines how pipes work in the Linux kernel by optimising a test program step by step. Starting from around 3.5 GiB/s, throughput rises to about 65 GiB/s through vmsplice, splice, huge pages and busy looping. Each step is justified with the perf profiler and a look at the kernel source code.

RFC 9114: HTTP/3 over QUIC

In June 2022, Mike Bishop of Akamai published the mapping of HTTP onto the transport protocol QUIC in RFC 9114. HTTP/3 puts each request on its own QUIC stream, so that a lost packet only delays that request and not all the others. HTTP/3 compresses headers with QPACK from RFC 9204, and clients learn via an Alt-Svc header that a server offers HTTP/3.

RFC 9110: HTTP semantics reorganised

In June 2022, Roy Fielding, Mark Nottingham and Julian Reschke specified the meaning of HTTP independently of the transport version in RFC 9110. Methods, status codes, fields and content negotiation have since applied equally to HTTP/1.1, HTTP/2 and HTTP/3, whose wire formats are in separate RFCs. The document obsoletes nine older RFCs, including the RFC 7230 to 7235 series from 2014 and RFC 2818 on HTTPS.

May (3)

Lotus 1-2-3 for Linux

Tavis Ormandy reconstructs the proprietary Unix version of Lotus 1-2-3 and ports it to modern Linux. Lotus 1-2-3 was a formative spreadsheet in PC history.

Linux security monitoring with audit events

Hilko Bengen shows how Linux auditd delivers fine-grained host events and how the unwieldy format can be made usable for attack detection with reasonable effort. Network monitoring only detects many attacks together with context from the affected host.

Accelerated pipelines with Optimum

Optimum integrates optimised runtimes into familiar Transformers pipelines. This allows models to be accelerated with ONNX Runtime without rewriting the whole application. Optimum offers ORTModel classes for ONNX Runtime.

April (2)

Why Transformers does not compulsively unify models

The article explains a design philosophy that puts readable, model-specific code above maximum abstraction. Deliberate repetition is meant to make changes, troubleshooting and research easier. Many model implementations remain readable as standalone Python files.

Pens and graphics tablets on Linux

Wacom describes its long-standing collaboration with the Linux community on free pen and tablet support. Linux Wacom drivers have been developed as free software for many years.

March (3)

Modelling decisions as a sequence

Decision Transformers formulate reinforcement learning as predicting actions from states and a desired return. This allows well-known transformer training methods to be applied to offline trajectories. The model processes return-to-go, states and actions as a sequence.

The first Asahi Linux alpha

Hector Martin releases the first Asahi Linux alpha for developers and experienced users on Apple Silicon Macs. The alpha supported the M1, M1 Pro and M1 Max except the Mac Studio.

Building your own Linux home router

At the Chemnitz Linux Days 2022, Rouven Czerwinski of Pengutronix showed how to build your own Linux home router from free components. The router shown used NixOS, but the approach works with any distribution. The talk covered PPPoE for the VDSL line, DHCP for several internal networks, DNS, a firewall and IPv6 with ULA and delegated prefixes, plus a brief look at DDNS and WireGuard for access on the road.

February (2)

Transcribing long audio files with Wav2Vec2

The article splits long audio files into overlapping windows and then puts the recognition back together. This allows a model with a limited input window to process continuous recordings. With long input, Wav2Vec2 works with limited excerpts.

January (5)

Arduino chip adds Wi-Fi to the hobbyist board

In 2022 Arduino co-founder Gianluca Martino wanted to fund the Jolly module via Kickstarter; it replaces the Arduino Uno’s microcontroller with a variant with Wi-Fi. It combines an ATmega328PB with an ESP8285 including 2 MByte of flash, an integrated antenna and Wi-Fi 4. Because the chip is compatible with the ATmega328P, form factor, GPIO pins and existing Arduino software are meant to keep working.

Millisecond inference on modern CPUs

The case study optimises transformer inference on CPUs with ONNX Runtime, quantisation and dynamic batching. It shows when existing server hardware can be a practical alternative to GPUs. The platform runs optimised transformer models on modern CPUs.

New Chinese x86 CPU in development

Golem’s short news of 5 January 2022 reported that the Chinese manufacturer Zhaoxin was planning new x86 processors for desktop and server for 2022, without giving details. The current state was, for example, the KX-U6780A with eight cores and 16 nm manufacturing. Further topics were a VA-API backend for Nvidia’s NVDEC under Linux and an AR chip from Qualcomm for Microsoft.

Kernel developer wants to escape “dependency hell”

In January 2022 Ingo Molnar presented the “Fast Kernel Headers” project, a comprehensive overhaul of the Linux kernel’s roughly 10,000 header files. With more than 2,200 patches changing more than half of all source files, the “dependency hell” was to be untangled. According to initial benchmarks, build time was reduced by 78 percent, and in some cases considerably more for incremental builds.