RSSAmplifier

Blog

h4x0r

Recent content on h4x0r

h4x0r.orgRSS feed ↗15 posts

Latest posts

Claude and I have a proper first date

The larger h4x0r clan has a range of opinions on AI, from “How could you be interested in an AI who hates the environment while gaslighting people into thinking it’s making their life better? That’s like dating the AI in the Matrix” all the way to “My pet name for it is Skynet, because I’m in heaven!” I try to stay open-minded and curious. So, over the…

Fun-reliable side-channels for cross-container communication

Introduction While exploring the Linux kernel we discovered a fun side-channel that allows for cross-container communication in the most common, default container deployment scenarios on modern kernels. This is cool because it doesn’t require sharing volume mounts, nor does it involve modifying any of the default namespaces ( NET , PID , IPC , etc.), or adding special privileges (no new CAP_…

Recursive macros in C, demystified (once the ugly crying stops 😭)

In which it becomes clear, the C Preprocessor was designed by a Kafka fan So you have heard rumors whispered between peers, that a rare few people somehow manage to make compile-time recursion work in C? And you want to have some insight into how that might be possible?? I should warn you, you’re risking your sanity… but I’ll indulge you. Wait, did I really just say that? I must be a glutton for…

Why C variable argument functions are an abomination (and what to do about it)

As a language, C has managed to do a remarkable job providing an incredibly useful middle ground between assembly languages and other systems languages… for more than 50 years. At its heart is a simple imperative language with accessible enough syntax. And while concepts like pointers are often a challenge for people coming into the language, if you are doing systems programming, you should have…

Put a ring on it: a lock-free MPMC ring buffer

One of the reasons few security products work well in busy Linux environments is that they amplify performance risk. You’re popular and your backend’s load is skyrocketing? Well, the typical product is just going to collect more data and do more analysis, which amplifies the degradation. In the real world, one of the key ways everyone deals with being overloaded is by dropping less…

Without the futex, it's futile

Phil Eaton’s book club is starting The Art of Multiprocessor Programming, 2nd Edition , which is a very well regarded textbook, and pretty recently updated (2021). I’ve even heard of a couple of authors. I’ve done a lot of concurrent programming, and have always felt like I’ve still got plenty to learn, so I was excited for the topic. So far, what I’ve learned is that…

The 🤯 truth about heap memory!

A.k.a. the complexities of computational complexity Probably only two people read my arena allocation article last week (even my employer, who begged me to write, did not post), but one person did seem to read it (and to the other: hi, mom!). Okay, maybe a few other people skimmed it, but stopped when they realized it was just an arena allocator as a precursor to a garbage collector. I know one…

Let's hax0r a GC… (eventually)

See Look Ma, h4x0rs! for an introduction to this series. AKA, we h4x0r a mere (parallel) arena allocator There’s absolutely no reason for memory management in C to be as hard as it is. In fact, there’s almost never a good reason for memory management to be hard, and is one of my issues with Rust– why should I work even harder on memory management than I would in C?

Look Ma, hax0rz!*

* Of the grey-beard law-abiding kind C Me After Class I care a lot about ease of use for programming. To me, it’s an important consideration for both languages and APIs. Languages should aim to make it possible for anyone with good ideas and some determination to accomplish them. That’s why I was early to advocate for Python for most programming problems (the least-bad option), and am…

Contributions

Cookie Policy

Privacy Policy

PRIVACY POLICY Last updated December 17, 2024 This Privacy Notice for Crash Override, Inc (“we,” “us,” or “our”), describes how and why we might access, collect, store, use, and/or share (“process” ) your personal information when you use our services ( “Services”), including when you: Visit our website at https://crashoverride.com , or…

Page Not Found

Subscribe to our newsletter Back to Blog

Subscribe

Subscribe to our newsletter

Thank You

Subscribe to our newsletter Your subscription was succesfully completed :)