The runtime verification subsystem
The runtime verification subsystem
Posted Jun 10, 2021 3:29 UTC (Thu) by alison (subscriber, #63752)In reply to: The runtime verification subsystem by bristot-memorial
Parent article: The runtime verification subsystem
BUG_ON() and WARN_ONCE() and their friends are ad hoc largely undocumented expressions of an underlying model. The new work will make the model explicit and encourage discussions about the logic as well as the implementation details.
Posted Jun 11, 2021 15:26 UTC (Fri)
by bristot-memorial (guest, #61569)
[Link] (1 responses)
Posted Jun 12, 2021 20:56 UTC (Sat)
by alison (subscriber, #63752)
[Link]
The main advantage of an explicit model is that it will express the kernel's desired behavior. BUG_ON() etc. are needed because the kernel's actual behavior deviates from the model. One can envision a future where a patch that addresses the problem that triggers a backtrace would be required to include a diagram illustrating the deviation from the agreed model. Imagine how much easier such a practice would make reading Linux mailing lists!
The runtime verification subsystem
The runtime verification subsystem
