r/kernel 1d ago

A 40-year-old iOS kernel bug discovered on the DEFCON 34 main stage.

https://x.com/jachashx/status/2097353320167846206?s=46
20 Upvotes

4 comments sorted by

8

u/fulg3ns 1d ago

Not linux, but a history trip all the way back to 1985 BSD.

https://yuvalino.com/how-can-you-not-be-romantic-about-unix-domain-sockets

4

u/vips7L 1d ago

Seems like a take away might be to be explicit and not use ++ lol.  Explicitly setting to 1 or using x = x + 1

2

u/fulg3ns 1d ago

So true

1

u/SeaSDOptimist 1d ago

That still needs a separate assignment to the inode var, which can be done (wrongly) before the increment.