<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows on Shai Asher</title><link>https://slow-is-smooth.io/tags/windows/</link><description>Recent content in Windows on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Fri, 04 Dec 2026 09:00:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/windows/index.xml" rel="self" type="application/rss+xml"/><item><title>eBPF on Windows, Today</title><link>https://slow-is-smooth.io/blog/ebpf-on-windows-today/</link><pubDate>Fri, 04 Dec 2026 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/ebpf-on-windows-today/</guid><description>&lt;p&gt;On a Windows 11 virtual machine with Memory Integrity switched on, eBPF for Windows 1.8.0, released&#10;yesterday, loaded the bind counter I have now written three times, as an 11-kilobyte signed driver, and&#10;counted 100,001 socket binds out of 100,001. It attached to a hook with the same name as on Linux,&#10;kept its running total in a global variable, and a Go program built on ebpf-go read the same map&#10;without a line of Windows-specific BPF code. Five and a half years after Microsoft announced the&#10;port, it has reached version 1. All 34 of its GitHub releases are still marked pre-release, its&#10;kernel drivers are still signed with a test certificate, and when I switched on the check designed&#10;to replace test signing, no program I could build would load.&lt;/p&gt;</description></item><item><title>eBPF on Windows, Two Years In</title><link>https://slow-is-smooth.io/blog/ebpf-on-windows-two-years-in/</link><pubDate>Sun, 28 Apr 2024 09:00:00 +0300</pubDate><guid>https://slow-is-smooth.io/blog/ebpf-on-windows-two-years-in/</guid><description>&lt;p&gt;In a Windows 11 virtual machine with Memory Integrity switched on, eBPF for Windows v0.16.0&#10;refused to JIT-compile a fifty-line BPF program before it had produced a single byte of machine&#10;code. The same program, translated ahead of time into C and built into an 11-kilobyte test-signed&#10;driver, loaded straight away and counted 100,001 socket binds out of 100,001. Its JIT-compiled&#10;twin, run with Memory Integrity off, lost up to 22 of them, because eighteen months after I last&#10;looked, the Windows JIT still cannot compile an atomic add.&lt;/p&gt;</description></item><item><title>eBPF on Windows, the First Year</title><link>https://slow-is-smooth.io/blog/ebpf-on-windows-the-first-year/</link><pubDate>Sun, 30 Oct 2022 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/ebpf-on-windows-the-first-year/</guid><description>&lt;p&gt;On a Hyper-V virtual machine running Windows 11 with test signing on, I installed eBPF for&#10;Windows v0.5.0, wrote a small BPF program in C, compiled it with clang, and loaded it into the&#10;Windows kernel. It counted the socket binds made by each process, from inside the kernel, with no&#10;reboot. The same clang that builds BPF for Linux built this; the same libbpf function names loaded&#10;it. And when I deleted a NULL check, the program was rejected before it ran, exactly as on Linux,&#10;except that the verifier doing the rejecting was not in the kernel at all. It was a user-mode&#10;Windows service, and it had proved the program safe by a completely different method.&lt;/p&gt;</description></item><item><title>Go on Windows: Where the Stacks Come From</title><link>https://slow-is-smooth.io/blog/go-on-windows-where-the-stacks-come-from/</link><pubDate>Sun, 06 Sep 2020 09:00:00 +0300</pubDate><guid>https://slow-is-smooth.io/blog/go-on-windows-where-the-stacks-come-from/</guid><description>&lt;p&gt;Run the same Go program on Linux and on Windows and its goroutines are not the same size. On Windows&#10;every goroutine starts with an 8 KB stack, four times what it gets on Linux, because Windows writes the&#10;record of a processor exception onto whatever stack the fault happened on. A gigabyte that a Go program&#10;allocates and never touches costs a full gigabyte of Windows&amp;rsquo; commit charge, and on a machine with 4 GB&#10;of memory the ninth such gigabyte stops the program, where Linux let the same program reach 64 GB on a&#10;31 GB machine. And a C function, called from Go, that runs out of stack leaves, nine times in ten, a&#10;process that prints its crash report and then never exits.&lt;/p&gt;</description></item></channel></rss>