aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhijeet Sharma <abhijeetsharma2002@gmail.com>2026-10-06 06:00:28 +0000
committerLorenzo Salvadore <salvadore@FreeBSD.org>2026-10-21 13:25:59 +0000
commit283ace42c380686762f54246bd8159dcc7fa96a0 (patch)
tree91683c66c6d9192d0d36121939e357ac6ad998e5
parent5e1330d55239bf290a9ed605532cccb078f882e1 (diff)
Status/2026Q3/bounds-safety.adoc: Add report
-rw-r--r--website/content/en/status/report-2026-07-2026-09/bounds-safety.adoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/website/content/en/status/report-2026-07-2026-09/bounds-safety.adoc b/website/content/en/status/report-2026-07-2026-09/bounds-safety.adoc
new file mode 100644
index 0000000000..9915ba4f09
--- /dev/null
+++ b/website/content/en/status/report-2026-07-2026-09/bounds-safety.adoc
@@ -0,0 +1,24 @@
+=== Adopt -fbounds-safety in the FreeBSD Kernel TCP/IP Stack
+
+Links: +
+link:https://wiki.freebsd.org/BoundsSafety[Wiki page] URL: link:https://wiki.freebsd.org/BoundsSafety[] +
+link:https://freebsdfoundation.org/project/adopt-fbounds-safety-in-the-freebsd-kernel-tcp-ip-stack/[Project page] URL: link:https://freebsdfoundation.org/project/adopt-fbounds-safety-in-the-freebsd-kernel-tcp-ip-stack/[]
+
+Contact: Abhijeet Sharma <abhijeetsharma2002@gmail.com>
+
+Clang's -fbounds-safety lets C code state a buffer's length, as in `+__counted_by(len)+`.
+The compiler then checks accesses through that pointer.
+An out-of-bounds access traps instead of corrupting memory.
+The TCP/IP stack parses untrusted network input, so it is a good place to start.
+This project adds the macros and build support, then converts TCP files one at a time.
+Without the flag the annotations expand to nothing.
+The tree still builds with the base system compiler and with GCC.
+
+==== This quarter
+
+* External toolchain builds GENERIC on amd64, recipe on the wiki.
+* Macros, build knob and soft traps posted, four reviews accepted.
+* `tcp_ecn.c` runs checked, kernel boots and passes netinet tests.
+* mbuf accessor RFC on arch@ and net@, discussion ongoing.
+
+Sponsor: The FreeBSD Foundation