sendfile

Tag

Cards List
#sendfile

Zero-copy in Go: sendfile, splice, and the cost of io.Copy

Hacker News Top · 2026-07-05 Cached

This article explains how Go's io.Copy automatically uses sendfile and splice for zero-copy file transfers over TCP, and demonstrates how wrapping a file in a plain io.Reader—e.g., for logging—quietly disables this optimization, causing a significant performance drop. Benchmarks and strace output illustrate the impact.

0 favorites 0 likes
#sendfile

CVE-2026-45257: LPE in FreeBSD via kTLS-RX

Lobsters Hottest · 2026-06-11 Cached

A critical local privilege escalation vulnerability in FreeBSD (CVE-2026-45257) allows an unprivileged user to write arbitrary data into the page cache of any readable file, bypassing file permissions and flags, leading to full root compromise. The bug affects default installations of FreeBSD 13.0 and later via unsafe composition of sendfile, KTLS, and in-kernel AES-GCM decryption.

0 favorites 0 likes
← Back to home

Submit Feedback