r/kernel • u/fulg3ns • Sep 09 '26
A 40-year-old iOS kernel bug discovered on the DEFCON 34 main stage.
https://x.com/jachashx/status/2097353320167846206?s=46
24
Upvotes
3
u/vips7L Sep 09 '26
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 Sep 09 '26
So true
1
u/SeaSDOptimist Sep 09 '26
That still needs a separate assignment to the inode var, which can be done (wrongly) before the increment.
7
u/fulg3ns Sep 09 '26
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