Try/catch for modules?

Bjørn Mork bjorn at mork.no
Sat Oct 19 03:46:19 EDT 2019


Martin Galvan <omgalvan.86 at gmail.com> writes:

> I'm writing a kernel module, and am trying to implement some
> exception-handling mechanism so that the system won't oops/panic if my
> module does e.g. a NULL dereference.

Why don't you test your pointer for NULL instead?  Sounds like a hell of
a lot simpler solution to me.  But I'm probably missing something as
usual...


Bjørn



More information about the Kernelnewbies mailing list