Warning about WARN_ON()
Warning about WARN_ON()
Posted Apr 18, 2024 21:58 UTC (Thu) by nevets (subscriber, #11875)Parent article: Warning about WARN_ON()
I have a strict requirement in my code that all WARN_ON() calls are used only to show that a bug happened in the kernel. If it is hit, it's a bug (I agree that this should never be used for incorrect user space input).
Panic on WARN should never trigger, and if it does, then a fix to the kernel is urgently needed.
I truly believe that this use should be encouraged.