[OpenAFS] Problem with recent kernel

Steven N. Hirsch shirsch@adelphia.net
Sun, 7 Apr 2002 15:42:35 -0400 (EDT)


All,

The latest and greatest kernel will no longer export 'sys_call_table', for 
reasons which have apparently already been discussed on the kernel mailing 
list (to which I no longer subscribe - no time.)

At any rate, Alan has made a suggestion for enhancement to use the new 
interface.  See below.

If it's already in CVS, please excuse the use of bandwidth.

Steve


---------- Forwarded message ----------
Date: Sun, 7 Apr 2002 18:42:05 +0100 (BST)
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Steven N. Hirsch <shirsch@adelphia.net>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: Two fixes for 2.4.19-pre5-ac3

> And, unless this is reversed the OpenAFS kernel module won't load (it 
> needs sys_call_table.):

Correct. There was agreement a very long time ago that code should not patch
the syscall table (for one its not safe). AFS probably needs fixing so the
AFS syscall hook is exported portably and nicely in the syscall code.

This wants fixing in 2.5 too - basically

static int (*afs_syscall)(...);
sys_afs_syscall(...)
{
	if(afs_syscall)
		return afs_syscall(....)
	return -ENOSYS;
}

EXPORT_SYMBOL(afs_syscall)

Alan