pagg
[Top] [All Lists]

Re: [patch] Registration Check for Compulsory Hooks

To: Kingsley Cheung <kingsley@xxxxxxxxxx>
Subject: Re: [patch] Registration Check for Compulsory Hooks
From: Erik Jacobson <erikj@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Nov 2004 22:36:46 -0600
Cc: pagg@xxxxxxxxxxx
In-reply-to: <20041108033648.GB18308@xxxxxxxxxx>
References: <20041108033648.GB18308@xxxxxxxxxx>
Sender: pagg-bounce@xxxxxxxxxxx
Thank you for pointing this out.

Indeed.  If someone set up a pagg hook with attach set to null, the next
procss forked after the kernel module was loaded would cause a panic.

So I agree we should add your change.

I'll take care of this tomorrow.  Thanks!

Erik

On Mon, 8 Nov 2004, Kingsley Cheung wrote:

> Hi,
>
> I was reading through the linux-2.6.9-pagg.patch when I noticed that
> "init()", "exec()" are considered optional but "attach()" and
> "detach()" are compulsory.  If that is true, then would perhaps there
> should be checks during registration to ensure "attach()" and
> "detach()" are defined?
>
> An untested patch against Linux 2.6.5 (that section of code hasn't
> changed in 2.6.9) is attached.
>
> Thanks,
> --
>               Kingsley
>

--
Erik Jacobson - Linux System Software - Silicon Graphics - Eagan, Minnesota

<Prev in Thread] Current Thread [Next in Thread>