[OpenAFS-devel] Fwd: openafs problems on AMD64

Troy Benjegerdes hozer@hozed.org
Thu, 6 Apr 2006 12:09:23 -0500


On Tue, Apr 04, 2006 at 10:15:58AM +0200, Stefaan wrote:
> > Does the kernel in question have CONFIG_DEBUG_RODATA turned on? 2.6.16
> > constified (and or .rodata'd) many syscall tables, which means they
> > actually become readonly if CONFIG_DEBUG_RODATA is turned on. This is why
> > the 64bit table cannot be found. the 32bit table is found because it is
> > EXPORT_SYMBOL'd, but the attempt to update it causes a pagefault.
> 
> Does this mean this kernel option should be turned off for linux on
> any architecture (not just AMD64)?

What *should* happen is that someone who has the time and knowledge
should submit a patch to use the in-kernel keyring support in linux add the
AFS syscall to the base kernel, and a function to register the handler
for the afs syscall. There is a lot better chance this will be accepted
into the mainline kernel now if it works for both OpenAFS and the
in-kernel afs client (which is currently read-only).

Patching the syscall table makes it unsafe to load the module, and this
is one of the many reasons linux developers keep making it harder to
mess with it.