frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

System call instrumentation on Linux/x86‑64 using memory‑indirect calls, part I

https://www.humprog.org/~stephen/blog/2026/06/15/#system-call-instrumentation-on-intel-negative-result
15•matt_d•4d ago

Comments

quotemstr•1h ago
Linux is unusual in OS kernels in that direct system calls from arbitrary userspace code are supported and ABI-stable. This model has always been a terrible idea. It robs the system of an ability to intercept system calls in userspace before doing an expensive privilege-mode transition.

If, instead, as on OpenBSD, the kernel enforced the rule that all system calls had to go through libc (or perhaps a big ntdll.dll-like VDSO), then the whole problem the linked article tries in vain to solve would disappear. If you wanted to hook a system call, you'd just change the libc/VDSO dispatch. No need to rewrite any instructions.

If I were Linus, I'd make a new rule: starting today, all new system calls must go through VDSO. No exceptions. SYSCALL from anywhere else? SIGKILL.

This way, you can just LD_PRELOAD in front of the VDSO and system call interception in userspace Just Works.

yjftsjthsd-h•1h ago
> This model has always been a terrible idea. It robs the system of an ability to intercept system calls in userspace before doing an expensive privilege-mode transition.

This model has always been a trade-off. It has downsides, but it also has upsides, including an immense boost in flexibility; decoupling from any particular userspace is useful.

> This way, you can just LD_PRELOAD in front of the VDSO and system call interception in userspace Just Works.

Can you LD_PRELOAD in front of the vDSO? I was under the (possibly mistaken) impression that the kernel injects it directly.

Gualdrapo•53m ago
> If I were Linus, I'd make a new rule

Or, you know, just propose your idea to him

yjftsjthsd-h•20m ago
Based on https://www.phoronix.com/news/Linus-Torvalds-No-Random-vDSO , I had been under the impression that he wasn't fond of adding more use of vDSO. On rereading, I can't tell if that's a vDSO thing or a preference against fast randomness being provided by the kernel.
throwaway7356•20m ago
> all system calls had to go through libc (or perhaps a big ntdll.dll-like

Which makes containers crap on Windows and *BSD as they have to run the currect libc or equivalent. Thus you need to build a different container per OS version which sucks compared to Linux.

Code duplication is far cheaper than the wrong abstraction (2016)

https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction
116•rafaepta•1h ago•86 comments

(How to Write a (Lisp) Interpreter (In Python)) (2010)

https://norvig.com/lispy.html
57•tosh•1h ago•26 comments

Beyond All Reason (Free Total Annihilation Inspired RTS)

https://www.beyondallreason.info
284•mosiuerbarso•5h ago•142 comments

The Minimum Viable Unit of Saleable Software

https://brandur.org/minimum-viable-unit
12•brandur•53m ago•1 comments

Commodore Made a Digital Detox Phone That Isn't Dumb

https://www.wired.me/story/commodore-made-a-digital-detox-phone-that-isnt-dumb
75•Audiophilip•3d ago•48 comments

Tell HN: Happy Fathers Day to all the fathers, uncles, anyone in that role!

52•consumer451•34m ago•6 comments

Wildcard (YC W25) Is Hiring a Founding Applied ML Engineer

https://www.ycombinator.com/companies/wildcard/jobs/SEmo4di-founding-applied-ml-engineer
1•kaushikmahorker•34m ago

Who Owns Your ATProto Identity? Hint: It's Probably Not You

https://kevinak.se/blog/who-actually-owns-your-atproto-identity-hint-its-probably-not-you
110•kevinak•3h ago•103 comments

Health Insurance Claim Denial Rates Range from 13% to 35% by Insurer

https://www.randalolson.com/2026/06/16/aca-insurer-claim-denial-rates/
9•brandonb•6m ago•1 comments

Occupancy Math on the AMD MI355X: A From-First-Principles Guide

https://indianspeedster.github.io/blog/occupancy-math-mi355x/
14•skidrow•4d ago•0 comments

Google Hits 50% IPv6

https://blog.apnic.net/2026/04/28/google-hits-50-ipv6/
350•barqawiz•9h ago•325 comments

Fossil Fuels Are 40% of Freight Shipping Tonnage, but Half Its Fuel Use

https://cleantechnica.com/2026/06/16/shipping-freight-energy-fossil-cargo/
64•choult•2h ago•34 comments

A 3D voxel game engine written in APL

https://github.com/namgyaaal/avoxelgame
116•sph•9h ago•10 comments

Loupe – A iOS app that raises awareness about what native apps can see

https://github.com/mysk-research/loupe
446•Cider9986•1d ago•177 comments

System call instrumentation on Linux/x86‑64 using memory‑indirect calls, part I

https://www.humprog.org/~stephen/blog/2026/06/15/#system-call-instrumentation-on-intel-negative-r...
15•matt_d•4d ago•5 comments

The case against geometric algebra (2024)

https://alexkritchevsky.com/2024/02/28/geometric-algebra.html
106•Hbruz0•6h ago•87 comments

Running MicroVMs in Proxmox VE, the Easy Way

https://taoofmac.com/space/blog/2026/06/18/1845
163•zdw•2d ago•24 comments

Two Qwen3 models on one DGX Spark: the residency math

https://www.devashish.me/p/two-qwen3-models-on-one-dgx-spark
55•devashish86•3d ago•27 comments

Slow breathing modulates brain function and risk behavior

https://www.cell.com/neuron/fulltext/S0896-6273(26)00339-9
326•croes•19h ago•95 comments

Renting a sewing machine from the library

https://www.bbc.com/future/article/20260618-the-weird-and-wonderful-libraries-of-finland
302•sohkamyung•18h ago•174 comments

Zigzag Decoding with AVX-512

https://zeux.io/2026/06/17/zigzag-decoding-avx512/
113•luu•3d ago•21 comments

Epoll vs. io_uring in Linux

https://sibexi.co/posts/epoll-vs-io_uring/
226•Sibexico•18h ago•53 comments

A tale of two path separators

https://alexwlchan.net/2021/slashes/
54•dbaupp•4d ago•22 comments

Developers don't understand CORS (2019)

https://fosterelli.co/developers-dont-understand-cors
295•toilet•15h ago•234 comments

15-minute at-home Lyme disease tick test

https://www.bostonglobe.com/2026/06/17/business/lyme-disease-tick-test/
182•bookofjoe•3d ago•132 comments

Unauthorized alert sent to cell phones across Brazil

https://www.cnn.com/2026/06/20/americas/brazil-hackers-unauthorized-alert-latam
181•zdw•21h ago•128 comments

DOS Game "F-15 Strike Eagle II" reversing project needs DOS test pilots

https://neuviemeporte.github.io/f15-se2/2026/06/20/needyou.html
271•LowLevelMahn•1d ago•70 comments

SMPTE Makes Its Standards Freely Accessible

https://www.smpte.org/blog/smpte-makes-its-standards-freely-accessible-openingstandards-library-t...
282•zdw•1d ago•96 comments

UHF X11: X11 Built for VisionOS and Apple Vision Pro

https://www.lispm.net/apps/uhf-x11/
221•zdw•1d ago•49 comments

Rare medieval bookmark exceeds expectations at auction

https://www.thehistoryblog.com/archives/76314
36•speckx•4d ago•14 comments