News for hackers. Stuff that matters.
Re:POSIX v. reality: A position on O_PONIES by Gibbon1 on Thursday November 23, 2023 @05:32PM (#38398397)
I've done the same with embedded drivers, randomly flip bits in the drivers state and see what happens. Does it recover, throw fault, hang, or explode like a bomb. I got that from a hardware designer talking about robust state machines. Any random illegal state should sequence back to a known good state.
Re:POSIX v. reality: A position on O_PONIES by zbentley on Friday November 24, 2023 @12:04AM (#38400783)
> Any random illegal state should sequence back to a known good state.

What benefit does that property provide? Other than helping to deal with random memory corruption bit-flips, I'm having trouble understanding why state machines (in hardware, or any level of software) should ever be expected to handle arbitrary memory manipulation outside of the rules of the state machine.

Re:POSIX v. reality: A position on O_PONIES by fodkodrasz on Friday November 24, 2023 @04:21AM (#38402018)
You often don't have memory protection in embedded and coding errors, running over stack space could cause such problems. Usual remedy is to detect these with diagnostics and issue a reboot to clean state ASAP.