Re: [PATCH] lkdtm: Fix Oops when unloading the module

From: Greg KH
Date: Fri Jan 20 2017 - 05:00:59 EST


On Thu, Jan 19, 2017 at 02:03:11PM -0800, Kees Cook wrote:
> On Thu, Jan 19, 2017 at 2:40 AM, Juerg Haefliger
> <juerg.haefliger@xxxxxxx> wrote:
> > No jprobe is registered when the module is loaded without specifying a
> > crashpoint that uses a jprobe. At the moment, we unconditionally try to
> > unregister the jprobe on module unload which results in an Oops. Add a
> > check to fix this.
> >
> > Signed-off-by: Juerg Haefliger <juerg.haefliger@xxxxxxx>
>
> Ah-ha, nice catch, thanks!
>
> Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
>
> Greg, can you please add this to your tree when you get a chance?

Will do, thanks.

greg k-h