r/freebsd • u/vermaden • 8h ago
article Upgrade 14.1 Distribution Sets Jail to 15.2 PKGBASE
r/freebsd • u/vermaden • 8h ago
r/freebsd
•
u/hollowaykeanho
•
15h ago
Just came into my feed. Was announced 24 hours ago (+8 my time). Sharing to notify.
TL; DR
UPDATE 2026-10-03 21:16:
Based on Filippo Valsorda (a well-known cryptographer I knew from Go community)'s interpretation, 256-bit elliptic curves (
P-256andCurve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought via a classical attack[16].
This aligned to CloudFlare CEO's statements on Elliptic Curve cryptography. If that is the case, we MUST move up as soon as possible.
Something is seriously cooking in cryptography that it is very rare this many big entities made such a joint statement over the recent Anthropic discovery (refer: references list). *CEO of CloudFlare seems to hint something related to RSA and Elliptic Curve cryptography***[6] and according to him, far worse than RSA-2048 cracking********[5].
Hence, move up as soon as possible whenever you can and first available since the facility are there already. This event is very unusual so it is better to be on "assume the worse" side than taking unnecessary risk.


FreeBSD's Latest Shipped OpenSSL on Quarterly
user@machine:~ $ uname -a
FreeBSD machine 15.1-RELEASE-p6 FreeBSD 15.1-RELEASE-p6 releng/15.1-n283643-95719d8a895b GENERIC amd64
user@machine:~ $ openssl --version
OpenSSL 3.5.9 29 Sep 2026 (Library: OpenSSL 3.5.9 29 Sep 2026)
user@machine:~ $ openssl list -kem-algorithms
SecP384r1MLKEM1024 @ default
{ 1.2.840.10045.2.1, EC, id-ecPublicKey } @ default
{ 1.3.101.110, X25519 } @ default
{ 1.3.101.111, X448 } @ default
{ 2.16.840.1.101.3.4.4.1, id-alg-ml-kem-512, ML-KEM-512, MLKEM512 } @ default
{ 2.16.840.1.101.3.4.4.2, id-alg-ml-kem-768, ML-KEM-768, MLKEM768 } @ default
{ 2.16.840.1.101.3.4.4.3, id-alg-ml-kem-1024, ML-KEM-1024, MLKEM1024 } @ default
X25519MLKEM768 @ default
X448MLKEM1024 @ default
SecP256r1MLKEM768 @ default
{ 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
user@machine:~ $NGINX
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/ssl/private/localhost.crt;
ssl_certificate_key /etc/ssl/private/localhost.key;
ssl_protocols TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1; # PQC + classical curves
location / {
root /var/www/html;
index index.html;
}
}GnuPG
user@machine:~ $ gpg --version
gpg (GnuPG) 2.5.24
libgcrypt 1.12.4
Copyright (C) 2026 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/u0/.gnupg
Supported algorithms:
Pubkey: RSA, Kyber, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2Guide to create new sub-key:
user@machine:~ $ gpg --expert --edit-key [MAIN_KEY_ID]
gpg> addkey
Please select what kind of key you want:
(3) DSA (sign only)
(4) RSA (sign only)
(5) Elgamal (encrypt only)
(6) RSA (encrypt only)
(7) DSA (set your own capabilities)
(8) RSA (set your own capabilities)
(10) ECC (sign only)
(11) ECC (set your own capabilities)
(12) ECC (encrypt only)
(13) Existing key
(14) Existing key from card
(17) Kyber (encrypt only)
Your selection? 17
...GnuPG + SSH Agent Settings (auth keys setup)
GnuPG has yet to support PQ sign & auth keys creation. Your existing non-PQ keys can be used for authenticate but it is not PQ protected.
Due to the fact that GnuPG's progress cannot be rush (it can break A LOT of ecosystem) and the current circumstances, to be fully protected, one must break the GnuPG+SSH Agent relationship for now and revert back to use SSH to create PQ algorithm keys instead.
PQ keys are different when created using SSH like the command below (when using OpenSSH-Portable port (https://www.freshports.org/security/openssh-portable/):
/usr/local/bin/ssh-keygen -t mldsa44-ed25519 -f ~/.ssh/id_mldsaOpenSSH
FreeBSD shippment in 15.1 Release has PQ algorithms equipped OpenSSH[14] as shown below:
user@machine:~ $ uname -a
FreeBSD machine 15.1-RELEASE-p6 FreeBSD 15.1-RELEASE-p6 releng/15.1-n283643-95719d8a895b GENERIC amd64
user@machine:~ ssh -V
OpenSSH_10.0p2, OpenSSL 3.5.9 29 Sep 2026
user@machine:~ ssh -Q kex
...
sntrup761x25519-sha512
sntrup761x25519-sha512@openssh.com
mlkem768x25519-sha256
user@machine:~To test/debug a connection (example here is using github.com and look for the algorithms above):
user@machine:~ ssh -v git@github.com exit 2>&1 | grep 'kex: algorithm:'
debug1: kex: algorithm: mlkem768x25519-sha256
user@machine:~To upgrade the server, edit /etc/sshd_config to have the above algorithms listed at the front. The first one wins so make sure KexAlgorithms is before sourcing any other configuration files[15]:
...
# enable post-quantum algorithms
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,...
...Once done, restart the server with:
$ service sshd restartand test your server connection again.
To create a PQ key (as of writing, only doable using OpenSSH-Portable port (https://www.freshports.org/security/openssh-portable/) as of 2026-12-03:
user@machine:~ /usr/local/bin/ssh-keygen -t mldsa44-ed25519 -f ~/.ssh/id_mldsa
Generating public/private mldsa44-ed25519 key pair.
Enter passphrase for "/user/.ssh/id_mldsa" (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /user/.ssh/id_mldsa
Your public key has been saved in /user/.ssh/id_mldsa.pub
The key fingerprint is:
SHA256:VKEY+5X97u/sS3PT+dZ5/6XTG9W7T805WdHdSvUZ8WM user@machine
The key's randomart image is:
+[MLDSA44-ED25519-+
| . o. oo|
| + o o .O|
| o o o . .E*|
| o . o..+|
| S o +|
| . .X|
| .%X|
| .o=#|
| oX^|
+----[SHA256]-----+
user@machine:~Thanks to u/asveikau, to install the port as workaround until the base's OpenSSH is updated:
pkg install openssh-portableFollow the instructions therein. Important ones are /etc/rc.conf configurations as follows (avoiding conflict with base):
openssh_enable="YES"sshd_enable="NO"References
r/freebsd • u/Opposite_Benefit_675 • 15m ago
Hello boys.
this is my latest project,that reached the working phase just right now,after weeks of tests :
https://github.com/Marietto2008/freebsd-src/tree/hammer2-root
HAMMER2 as the root filesystem of FreeBSD 16-CURRENT
3 December 2026
FreeBSD 16-CURRENT now boots from an EFI partition plus a single HAMMER2 volume, with snapshots and boot environments, without a single line of ZFS code.
The work ran from 21/11 to 03/12/2026: six gated phases, all passed, followed by a soak test and interoperability testing with DragonFly.
Why we did it
HyperBSD needs a root filesystem with snapshots and boot environments, but without any code derived from OpenSolaris (CDDL licence): the system must build and boot with ZFS disabled.
The gap in FreeBSD. The available root filesystems are UFS and ZFS. ZFS is ruled out by the licence requirement. UFS has snapshots designed for dump and background fsck, not for going back to an earlier version of the system; it has no data checksums and no compression.
Why HAMMER2. It is DragonFly BSD's file system: BSD licence, copy-on-write, instant snapshots, multiple PFSes (sub-volumes) on one volume, LZ4/zlib compression, a checksum on every block.
The starting point. A FreeBSD port already existed (kusumi/freebsd_hammer2 v1.2.13), but as a module for FreeBSD 14, not bootable as root and never tested under heavy load.
The goal of the brief (21/11). HAMMER2 as a "first-class" filesystem in the FreeBSD tree: kernel, mountroot, GEOM, loader, userland and boot environments,not a module bolted on top. Shortcuts were explicitly forbidden (mount options passed as a string, /boot on another filesystem, cron instead of periodic).
How we did it
Six phases in sequence, each closed by a gate: a list of tests with the expected outcome written down before running them, a report, and the project owner's decision. Without passing the gate, work did not move on to the next phase.
Working rules
Vendor model. Kusumi's port is imported untouched on its own branch; every integration step and every fix is a separate commit, recording what found the defect.
In total 65 commits on top of FreeBSD main 5ddfe1e, 132 files touched (most of the lines are the vendor imports).
Frozen on-disk format. No change to the format: a volume must remain readable and writable by DragonFly.
No CDDL. Not even libsa's lz4.c, which comes from OpenSolaris: the loader uses its own decompressor.
Isolated test bench. Everything in bhyve VMs (bhyveload or UEFI) on disk images; never the host's own disk. Test kernels always run with INVARIANTS and WITNESS enabled.
The phases
- P0, baseline (21–29/11). The port built into the FreeBSD 16 kernel and put through the hardest tests before touching the root. Most of the defects surfaced here (see below).
2. P1, the root (29–30/11). Mounting the root with volume@PFS syntax, mountroot waiting for every device of the volume, mount_hammer2 and its manual page.
3. P2, GEOM (30/11). A /dev/hammer2id/\<fsid\> label to find the volume without depending on the disk name.
4. P3, userland (30/11). fsck_hammer2 following the fsck(8) contract at boot, hammer2 in /rescue, periodic clean-up in periodic(8).
5. P4, the loader (30/11–01/12). A HAMMER2 reader written from scratch in libsa (loader.efi and userboot), which verifies checksums and refuses a corrupted kernel.
6. P5, boot environments (01/12). The hammer2be tool: each BE is a PFS snapshot; selectable from the loader menu, with "boot once" into a new BE.
7. P6, images (01/12). makefs -t hammer2 and mkimg: a bootable UEFI disk built without mounting anything, as for UFS and ZFS.
After the phases, the final validation (02–03/12): a soak test of three buildworlds on the HAMMER2 root, interoperability with DragonFly, a package build.
How we verified it
Every mandatory test passed on the final kernel or on the kernel of its phase; none was relaxed to make it pass.
Test | What it shows | Result
pjdfstest | POSIX semantics (permissions, rename, link, timestamps) | 230/230, repeated on every new kernel
fsx, 24 hours | Data consistency under random reads, writes, truncates, mmap | 403 million operations, 0 errors
stress2, 24 hours | FreeBSD's concurrent filesystem scenarios | rc 0, no panic
Crash loop, 500 rounds | After a hard reset no data confirmed by fsync is lost | 500/500, 720,848 markers verified, 0 lost
Crash loop on the root | The same, with HAMMER2 as the root | 500/500, 1,023,618 markers, 600 root mounts
100 reboots | The root always mounts, without waiting | 100/100, ssh ready in 22.9 s on average
KASAN and KMSAN | Out-of-bounds accesses and uninitialised memory in the kernel | 1 error found and fixed, then clean
WITNESS | Lock ordering (deadlock risk) | 0 reversals after the fixes
Loader reader | The loader reads exactly what the kernel reads | 61,420 entries in 20 compression/checksum combinations, identical
Loader fuzzing | Corrupted images neither hang nor fool the loader | over 12 million executions; 2 defects found and fixed, then 0
Crash while switching BE | The BE choice stays consistent | 20/20 after the fix
makefs -t hammer2 | An image built outside the kernel is correct | 12,079 entries, identical manifest as read by the kernel
Soak | Three buildworld+buildkernel -j8 on the root, bulkfree every 15 minutes | rc 0, 27 clean bulkfree runs, 0 LORs, clean fsck
DragonFly 6.4.2 interop | Volumes written by one system, read and written by the other, both ways | clean fsck on both, identical manifests (up to 125,119 entries)
The expected outcome of each test was written before running it, so a result different from the expectation is visible and cannot be rewritten afterwards.
Defects found and fixed
The tests found more than twenty defects in the starting code; seven of them could lose or corrupt data without any message. All are fixed in separate commits and covered by the test that found them. At least five also apply to DragonFly master (checked by reading the code); the report for its developers is ready but not yet sent.
fsync not durable | Data confirmed by fsync lost after a crash | Crash loop
Freemap: one block written several times per flush | Volume corrupted after a crash | Crash loop, round 422
bulkfree reused blocks still referenced | Volume corrupted after a crash | Crash loop, round 2047
Dirty buffers written after the volume header | Volume corrupted after a crash | Crash loop, rounds 3012 and 4047
Checksum "none" combined with dedup | Silent reads of stale or zeroed data | Comparing the loader reader with the kernel
SEEK_DATA ignored data still in memory | cp of a freshly written sparse file produced a copy full of zeros, with no error | Userland tests (P3)
truncate did not zero the tail of the block | After a truncate and an extension, old data reappeared | fsx
bufdaemon stalls and lost wake-ups | System hung under write load | WITNESS, stall reproducer
Lock not released, wrong assertion in rename | Panics (the second during the soak, in buildworld) | fsx and stress2; soak
Inconsistent lock ordering | Deadlock risk | WITNESS
bulkfree on an idle volume | Space was never freed | Userland tests (P3)
Read past the string on every mount | Out-of-bounds access in the kernel | KASAN
LZ4 decoder and two other undefined behaviours | Invalid accesses on particular data | Fuzzing, UBSan
BE choice saved with a rename on FAT | After a crash the choice vanished and the system booted single-user | Crash while switching BE
The last row was a defect in our own initial design, not in the vendor code: the file is now rewritten in place.
Strengths
The result is a complete root filesystem, entirely BSD-licensed, with robustness that has been measured rather than claimed.
Licence. All BSD: FreeBSD builds and boots from HAMMER2 with ZFS disabled, as HyperBSD requires.
Real integration. Root, GEOM label, loader, fsck at boot, /rescue, periodic, boot environments, makefs: HAMMER2 behaves like UFS and ZFS at every point of the system's life cycle, without any of the forbidden shortcuts.
Proven robustness. Over a thousand hard resets without losing a single confirmed write, 24 hours of fsx and 24 of stress2, three soak buildworlds, KASAN, KMSAN, WITNESS and fuzzing.
Cheap boot environments. A BE is a PFS snapshot: instant, taking space only for the blocks that change afterwards.
A loader that defends itself. The loader reader verifies checksums: a kernel with a single flipped bit does not boot.
Data not locked in. The on-disk format is DragonFly's, verified in both directions: a FreeBSD volume can be read and written by DragonFly and vice versa.
Traceability. Every change is a separate commit with the test that motivated it; every phase has a report with the expectations written beforehand.
Weaknesses and limits
The biggest limit is age: this is thirteen-day-old code, tested only in virtual machines and never used in production.
Never on real hardware. Everything ran in bhyve. The run on the dedicated disk is prepared but not done (it is destructive and needs consent).
amd64 only, UEFI only. arm64 was excluded by choice; there is no BIOS boot.
One disk, no self-healing. Checksums detect a corrupted block but cannot repair it from a copy; mirroring and RAID are possible only with GEOM underneath the filesystem (not tested).
Space is freed later. Deleting a file does not return the space at once: it needs bulkfree, which periodically runs daily and which may need two passes.
No performance figures. There is no speed or memory comparison with UFS and ZFS yet.
A fork to maintain. The fixes have not yet been proposed upstream (FreeBSD, kusumi, DragonFly). As long as they stay here, every update of the port or of FreeBSD main has to be merged by hand.
Few eyes. HAMMER2 has a small community: few users, few reviewers, little experience gathered on FreeBSD.
Pros and cons compared with UFS and ZFS
HAMMER2 offers almost everything ZFS boot environments provide, under a BSD licence, but without self-healing, send/receive and years of production use.
Feature | UFS | ZFS | HAMMER2 (this project)
Licence | BSD | CDDL | BSD
Boots with ZFS disabled | Yes | No | Yes
Boot environments | No | Yes (bectl) | Yes (hammer2be, new)
Snapshots | For dump and background fsck | Yes | Yes, also per PFS
Data checksums | No (metadata only) | Yes, with repair from copies | Yes, detects but does not repair
Compression | No | Yes | Yes (LZ4, zlib)
Redundancy | With GEOM underneath | Built in (mirror, RAIDZ) | With GEOM underneath (not tested)
Sending snapshots to other machines | No | Yes (send/receive) | No
Space after a deletion | Freed at once | Freed at once | After bulkfree
Years of use on FreeBSD | Decades | Over fifteen | Thirteen days (years on DragonFly)
Volumes usable by DragonFly | No | No | Yes, read and write
In short: compared with UFS you gain snapshots, boot environments, checksums and compression; compared with ZFS you gain the licence and lose self-healing, replication and maturity.
What remains to be done
Bare-metal runs on the dedicated disk
Propose the fixes upstream: kusumi/freebsd_hammer2, DragonFly, FreeBSD (needs approval).
Performances (HAMMER2 vs UFS vs ZFS) :
Thanks to everyone that will help me to improve the code....
r/freebsd • u/hodong-kim • 4h ago
I used Linux for about 20 years before switching to FreeBSD around 2019, and I’ve been using FreeBSD ever since.
As a desktop user, the biggest difference I’ve noticed is hardware support. After that, it’s the little things. For example, plugging a USB stick into my FreeBSD machine running Xfce doesn’t behave quite the way it did on Linux. I suspect some of those differences could be sorted out with a setting or a small script.
I’ve thought about switching back to Linux once or twice, but ZFS keeps talking me out of it. It’s hard to give up a storage setup you already trust. :)
What makes me optimistic is that AI can help people tackle fixes they might not have attempted before. My hardware works well on FreeBSD, so I haven’t had to touch any drivers. But if you have a device that mostly works except for one thing, AI might help you read unfamiliar driver code, narrow down the cause, and draft a patch. Someone still has to test it on real hardware and maintain it afterward, of course.
If more of those fixes get tested and make it upstream, what might the FreeBSD desktop look like in five or ten years?
Honestly, I don’t have many complaints about FreeBSD. If I’m nitpicking, why underscores instead of hyphens in /etc/rc.conf settings like zfs_enable and local_unbound_enable? And since I tend to leave my machine running 24/7, I’d love to reboot less often for kernel updates.
I came across the FreeBSD kpatch proposal, which aims to patch individual functions in a running kernel. It got me thinking about a related but different idea: I’d like to use AI to help prototype live replacement of some FreeBSD kernel modules.
The idea is to separate the lifetime of the state from the lifetime of the code. The part of the kernel that stays in place would own things like device settings and runtime state, while the replaceable module would contain the code that works with that state. During a swap, the kernel would stop sending new work to the old module and wait for in-flight work and callbacks to finish before unloading it. If the new module is compatible with the existing state, it could pick up where the old one left off without having to save that state to disk and reload it. I’m not suggesting this should work for every driver. I’d start with modules where that separation makes sense and see whether they can be replaced without a reboot.
Well, this turned into a bit of a ramble.
r/freebsd • u/Fear_The_Creeper • 23h ago
Fun fact from the video: Our mascot is a daemon that John Lasseter (the Pixar guy) drew for a manual cover in 1984.
r/freebsd • u/Aggravating_Ice_905 • 1h ago
I am new to FreeBSD and have to learn about it for a competition.
Anyways, I just installed xfce on my FreeBSD VM on VMware. Now, however, shared folders are not working. I need to transfer files onto the VM for my competition. It was working before, on the same VM, before I installed xfce. Now I can no longer see the files that were being shared, and when I try to rerun my script for shared folders, I am getting an error.

Any advice would be greatly appreciated.
r/freebsd
•
u/anh0516
•
19h ago
r/freebsd • u/Opposite_Benefit_675 • 8h ago
Hello.
I'm happy to discuss this project with you.
Goal: an open kernel driver on FreeBSD 16-CURRENT that serves the RTX 2080 Ti (but with some little adaptation it works for every Nvidia GPU) for both CUDA, with NVIDIA's official userspace, and open graphics with Mesa NVK and Zink. A single driver on the GPU.
Astra's proposal, right in its core idea: start from NVIDIA OpenRM (open-gpu-kernel-modules) instead of nouveau, because nouveau gives no CUDA while OpenRM was built for the CUDA userspace. The precedent is X547/nvidia-haiku (OpenRM, NVK and Zink on Haiku), and the missing piece on FreeBSD is UVM.
Corrections:
Revised plan:
With OpenRM and NVK, nouveau is no longer needed for Turing and later.
Maintenance: firmware, core, FreeBSD layer and NVIDIA libraries must share the same version. Pin the 580 branch. Updates within the branch are cheap; branch jumps are costly.
These are the advantages of the OpenRM route: NVIDIA's open core, the FreeBSD layer, uvm-bsd, NVK and the NVIDIA libraries through the Linuxulator.
Compared with today's proprietary FreeBSD driver
Compared with a nouveau port
Project advantages
The trade-off is the one already covered: GSP firmware and CUDA libraries are proprietary, and firmware, core, FreeBSD layer and libraries all have to be updated together.
r/freebsd • u/grahamperrin • 21h ago
Most of yesterday's set follows the pattern of 2026 so far: local privilege escalation through kernel memory-safety bugs, several of them credited in part to the OpenAI Security Research Team.
FreeBSD-SA-26:104.proc is a use-after-free triggered when the process generation counter wraps around; it affects all supported versions and has no workaround.
FreeBSD-SA-26:102.socket is a privilege escalation through a listen(2) race on TCP sockets.
FreeBSD-SA-26:101.setrlimit, FreeBSD-SA-26:100.unix and FreeBSD-SA-26:103.ptrace are further use-after-free bugs, each leading to local privilege escalation.
FreeBSD-SA-26:99.linux lets an unprivileged local user corrupt the memory of set-ID Linux programs through execve(2), and FreeBSD-SA-26:95.arm64 allows privilege escalation through stale large page mappings on arm64 systems whose CPUs support BTI.
These are serious, but the 2026-11-17 set contained more bugs of the same kind.
Advisories that stand out a little
FreeBSD-SA-26:96.krb5 covers MIT Kerberos and lists about 21 CVEs in a single advisory. It affects FreeBSD 15.1. Remote attackers may be able to crash the KDC, kadmind or GSS-API applications, and some of the issues allow forged PAC or CAMMAC data in service tickets. For anyone running Kerberos, this is the most significant remote issue in the set, because forged PAC data can affect authorisation as well as availability. Claude did not count CVEs per advisory across the year, so it cannot say whether 21 is a 2026 record.
FreeBSD-SA-26:98.bsnmp is the second bsnmp advisory in two weeks, following FreeBSD-SA-26:89.bsnmp. A single crafted UDP packet can crash bsnmpd, which does not restart automatically. Only systems with the snmp_vacm module loaded are exposed, and that module is not loaded by default.
FreeBSD-SA-26:97.pam_xdg lets an unprivileged local user make root delete arbitrary files and directories. It stands out as a userland bug in PAM in a set otherwise dominated by kernel bugs.
Claude's take
Systems that use Kerberos should get the krb5 fix first.
After that, the kernel privilege escalation fixes call for the usual patching of all systems.
The SNMP issue matters only where snmp_vacm is loaded.
― Opus 5.5, medium.
r/freebsd • u/CURTONWA • 5h ago
Hi everyone! While learning how operating systems work, I kept confusing what actually makes FreeBSD different from Linux — so I wrote down this comparison to organize it in my head.
The key things that finally made it click for me:
Linux is a kernel, and everything else (Ubuntu, Debian, Arch...) is a distribution built around it. FreeBSD, on the other hand, is a complete operating system — kernel, userland and docs are developed together as one project;
Licensing: Linux uses GPL for the kernel, FreeBSD uses the permissive BSD license — that's why you'll find FreeBSD code inside macOS, PlayStation, and Netflix's servers.
Packaging: FreeBSD keeps the "base system" separate from third-party software (ports/packages), while Linux distros package almost everything;
Both are open-source with active communities, and the choice really depends on the task.
I'd really appreciate feedback — especially if you notice anything inaccurate or oversimplified. Thanks!
appjail4win is an AppJail for deploying Windows virtual machines on FreeBSD as vmjails, powered by Overlord and aimed at making setup simple and reproducible instead of requiring you to assemble the virtualization pieces yourself. It works with any Windows version you provide an ISO for, supports unattended installs through autounattend.xml, gives each VM a disposable system disk plus a persistent data disk so user files survive rebuilds, and allows profile-based customization via templates and attributes. It also integrates with Security Groups for network filtering and can be routed through Tor with some network and DNS tweaking.
r/freebsd • u/Opposite_Benefit_675 • 1d ago
Hello.
For an open NVIDIA stack on FreeBSD with concrete results: the shortest path is to port nouveau via drm-kmod/LinuxKPI. It is mature C, already supports the r570.144 GSP firmware, and has display support; NVK in Mesa uses its interface. drm-kmod is already aligned with the Linux 6.12 LTS drivers, but nouveau is not included: it needs to be ported, including the GPUVM layer.
A clean room is not needed. Almost all of nouveau is MIT-licensed, so you port it as-is, leaving the copyright notices intact. A clean room is only needed to obtain code under a license that the source does not allow—for example, turning nova (GPL-2.0) into BSD-licensed code—or when the source is proprietary. That is not the case with nouveau.
Precedent: NetBSD imported nouveau directly into its own source tree: the files live in sys/external/bsd/drm2/dist/drm/nouveau, with the glue code in sys/external/bsd/drm2/nouveau (nouveau_pci.c, nouveaufb.c and others). No clean room.
In your opinion,is it worth it or not ?
r/freebsd • u/HaikuFan2011 • 1d ago
(Disclosure: English text polished with AI assistance; the idea, hardware setup, and technical details are my own.)
Hey everyone,
I’m not a kernel developer, so I can't pull this off myself—but I want to throw a genuinely fun and historic challenge out to the community.
Everyone who has ever touched FreeBSD, Haiku OS, or Amiga/AROS on older 2011 laptops knows the infamous Broadcom BCM4313 [14e4:4727] Wi-Fi card. There are thousands of forum threads and videos trying to get it working, yet outside of Linux, it has been a brick wall for over a decade due to missing datasheets.
What makes this the ultimate AI reverse-engineering challenge right now is that it has already been proven possible on embedded hardware. A GitHub project for the D-Link DSL-2730U router (which uses the exact same BCM4313 chip) recently used an AI-assisted reverse-engineering workflow to solve two "unfixable" hardware walls: reconstructing the missing ssb_sprom board calibration data from the firmware map and fixing the ucode (MI_MACSSPNDD) initialization bug so brcmsmac works properly.
Furthermore, all the necessary pieces for laptops are already on the table. The proprietary radio firmware blob (which handles the actual Wi-Fi radio frequencies) is already available and redistributable, and Linux has a fully open-source driver (brcmsmac).
Imagine taking a piece of 2011 laptop hardware that caused a decade of headaches, feeding Linux's brcmsmac driver and MMIO traces into modern AI, and having it map out the exact hardware signals and timing into clean open documentation. That single breakthrough would instantly unlock native Wi-Fi for FreeBSD, Haiku, and AROS all at once.
Honestly, if I knew C and kernel dev, I’d be doing this tonight just for the thrill of it. Anyone up for testing how far modern AI can really go with hardware reverse engineering?
https://github.com/Vibhav-Aggarwal/dsl-2730u-wifi-openwrtUPDATE / Key Takeaways from the comments:
Thanks to the experienced FreeBSD devs in the comments for pointing out the major real-world hurdles with the BCM4313 beyond static router boards. The biggest challenges include dealing with 5 different hardware revisions sharing the exact same PCI ID (14e4:4727) with different state machines, handling complex laptop power management like ACPI suspend and resume states which do not exist on OpenWrt routers, and respecting clean-room and GPL licensing rules that prevent direct AI translation of Linux driver code.
Check out the discussion below for great insights on why this specific chip is so tricky, along with a theoretical idea of using an automated Hardware-in-the-Loop setup with PCIe passthrough and a USB power relay for clean-room documentation.
r/freebsd • u/notreal92262729 • 1d ago
Got intrigued by unkernel project (https://unkernel.dev), so had Claude port FreeBSD to WASM architecture based on unkernel work.
It works and boots into multiuser < 10s.
Not sure if there is a practical use, but it's fun to play with.
r/freebsd • u/Opposite_Benefit_675 • 1d ago
Hello.
Yesterday a Reddit user,told me :
I think I should create an Agents.md for people who haven’t been programming since they were 8 like me and may not have an understanding of security necessities.If anyone wants this let me know, I’ll create it and share it then your agent should do better.
I created the org here, with sample repos and agents.md, and a bunch of instructions and documentation. Please feel free to contribute. https://github.com/r-FreeBSD
As soon as I read it,immediately the idea came in my mind :
Maybe I didn't understand what you wanted to do. Still, I know what would actually can help me: a set of .md files to feed to Claude to guide it properly when tackling an ambitious project like nested virtualization. Each .md file could cover a key aspect to take into account before letting it start coding. You mentioned security—great, then write down some guidelines it should follow, drawing from the FreeBSD world, to make the project (more ?) secure. And so on.
Then,he replied :
You only need the agents.md. You can get it here. I set this org up for sharing and review by more senior people as well. That way everyone gets better code and if someone wants to donate for runner time, I can setup actions for reviewing, testing and building the repos. Clone this: https://github.com/r-FreeBSD/freebsd-app-template. Put the agents.md in your code root directory. Claude should pick it up and start using it.
After having studied his repo,I ended with this conclusion :
It's written for userland and desktop applications: GUIs, themes, KWallet, polkit, packaging in the ports tree. For my work on kernel drivers and bring-up for the A733 and RK3566/68 it covers little. It says nothing about style(9), newbus/FDT, simplebus, bus_space, locking and WITNESS, kernel KPIs, or FreeBSD's upstream review workflow. The transferable parts are two: making minimal changes and distinguishing levels of evidence (e.g. "it compiles" ≠ "tested on the board"). If I want to use it, a CLAUDE.md with u/AGENTS.md plus a kernel-specific section of my own would be the way to go. For drivers, a CLAUDE.md I write myself works better.
Now,I'm not sure if our ideas match,but his idea/repo does not help me because my AI projects are different than those proposed by him. So,can agents.md or the whole idea be expanded to cover my needs ? Or even better,can someone write more and detailed instructions that I can give to Claude,so that it can be better focused about how my projects should be implemented,and on the end,taken in consideration by the developers ?
r/freebsd
•
u/TheAtlasMonkey
•
3d ago
Hi r/freebsd,
Here is my clean-room reimplementation of FreeBSD in Odin.
I wanted to rewrite it in Rust, but that's a language I already know. The roadmap included a Pro Edition written in Rust and a Standard Edition written in Ruby.
To do this properly, I needed to pick a language I don't understand, so I could nod at every decision the model makes without introducing human bias.
The entire OS runs in Ring -4, just below Intel ME. Intel ME now runs inside its own jail. (Don't ask me how... the tests is green)
There are no kernel panics. If something panics, Claude takes over and fixes it in production. I call this Panic-Driven Development (PDD).
There are no device drivers either. Astra dynamically generates stubs for your hardware on the fly. Hardware compatibility is now a prompt engineering problem. Describe your hardware to get the driver.
The scheduler is powered by an LLM. Processes with better-written prompts receive more CPU time. Caveman get garbage collected.
Memory leaks are automatically resolved by increasing the context window or switching to a newer model.
Benchmarks are coming soon, once the model decides what numbers would best reflect the architecture.
Donations
Developing an operating system is expensive, especially when you have to pay for tokens instead of developers.
If you believe in the future of autonomous operating system development, please consider supporting the project.
BTC: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
The text above is satire.
But yesterday, I saw someone presenting an NVIDIA driver written in Rust for FreeBSD as if it were a technological breakthrough. It got 300+ stars and 30+ forks, with three issues unanswered and zero external contributions.
These are software content farms.
Think about it. If you achieved a breakthrough in reverse-engineering modern NVIDIA hardware, Linux would be thebetter target, given its ecosystem and user reach.
FreeBSD was targeted because the Nova driver already exists in Linux. The code is authored by NVIDIA themselves with modern Rust 2024. We got Rust edition from the Covid Era 2021.
The code does not work as predicted. Yet it presented with benchmarks involving H100s, H200s, every 30/40/50 series. The LLM just copied code and facts from the GPL code early this year.
Last year, I asked Claude to get Wi-Fi working. It modified some code, installed the driver, ran benchmarks, and presented impressive Wi-Fi 6 speeds.
There were few errors that made me say WTF:
The model had used grep wrongly and end up benchmaking the 1000MB Lan connection which was already working. The Wifi was just attaching to the hardware, it was not sending frames or receiving. The WPA3 code did not exist.
I'm not complaining about AI or gatekeeping anything, in fact i will be happy if i speand yesterday time to test that crap and it worked correctly, i might even have contributed to it, so we can rewrite it later in C and land it.
When i launched ChaosBSD, i was contacted by these farms, they offered me 10k stars for 1k USD in crypto. My fork will have more github stars than FreeBSD-src itself in 1 month, all fake or hacked accounts.
But the bigger issue here, is that LLMs learn from their own SLOP and enforce it. They are like politicians, they lie, then believe the lie.
You will ask me "How do that affect me or FreeBSD ?".
Most of our free work comes for an itch contributor(s) face or want to work on ( A button that dont work, light that don't turn off, brightness that dont cna't be controlled)
When you poison the documentation, that work become exponentially harder, especially if you want fill the provenance of the information or code. We do no always have official PDF from the vendors. We depend on the thousands of hours that other engineers did. Now we have a ton of plausible sounding slop in the wild.
Also think about all the people that will lose their time and mind thinking there is something wrong with their setup because they could not get the same gain/result from a repo with 200+ stars.
Just to wrap up: Gemini thinks i'm an OS.
r/freebsd
•
u/nwilkens
•
2d ago
I built firehyve for our Triton Cloud agent sandbox platform.. and did some experiements along the way. One of them was to see how FreeBSD boot performance compared to our illumos solution. (FreeBSD was faster!)..
On FreeBSD, a Xeon Gold 6240, a 512 MiB Linux guest reaches its workload 100 ms after the VMM process starts, and a 64 MiB guest with a trimmed kernel does it in 56.5 ms.
Even better though.. restoring a guest from a snapshot took 5.4 ms! This requires a patch to vmm.ko, included in the repo.. the patch and the write-up of the port are at https://github.com/TritonDataCenter/rshyve.
FreeBSD as a sandbox platform is a solid choice, and the boot/restore performance make it really attractive. We're not using FreeBSD today for this, but I wanted to share it with the community in case it could be useful.
r/freebsd
•
u/New-Cellist976
•
4d ago
Any chance this driver will land in FreeBSD?
r/freebsd • u/grahamperrin • 4d ago
… Before the tribal pitchforks come out - from either the Penguin camp or the Beastie faithful – let us establish the ground rules. I am a longtime adept, advocate, and fellow of FreeBSD. I have built careers, carrier-grade networks, and production infrastructure on its back. … However, admiration is not blindness, and no operating system on this planet represents ultimate, unassailable perfection. Critical thinking must be applied everywhere - especially to the tools we love – if we want to see reality rather than comforting myths. That is the exact purpose of this autopsy. …
Comments include:
I remember the good old days … when the Project's web site was modernised – "The Power to Serve" quietly disappeared, and no-one noticed. https://web.archive.org/web/20260516105511/https://www.freebsd.org/ …
r/freebsd • u/jsb_reddit • 4d ago
I've a v15 that for which I'd like to buy a wired usb mouse that works right off under Xorg and at the console. Anyone? Would also appreciate how it is listed in /dev and annotated in rc.conf [ if any ] and which driver [/dev/input/evdevN, or ums0, or hms0 ] it runs under. I've searched the forum, online, and elsewhere and this seems the easiest way to get a reply. Thanks !!!