[OpenAFS-devel] 2004-06-15 snap on FC2: no good still (sys_call_table, Error -1 in basic initialization)

Rainer Schöpf rainer.schoepf@proteosys.com
Tue, 15 Jun 2004 22:04:12 +0200 (CEST)


On Tue, 15 Jun 2004, Matthew Miller wrote:

 > > BTW, if you have CONFIG_SECURITY_SELINUX=y as well, you will probably see
 > > a kernel Oops.
 >
 > Hmmm. Well, I'd really like it to work with the stock kernel. So I guess
 > I'll try anyway.

If you see a kernel Oops in inode_doinit_with_dentry or a segmentation
fault of afsd, try the following. I'm not so sure whether it's entirely
correct, especially the panic call.

With this patch, I was able to mount /afs und run "ls /afs", but any
access below /afs crashed afsd in function afs_xdr_char. I think I've now
understood why, but have not yet created a proper patch.


*** ./src/afs/afs_vcache.c~     Sat May  8 06:20:39 2004
--- ./src/afs/afs_vcache.c      Fri Jun 11 15:16:21 2004
***************
*** 1051,1056 ****
--- 1051,1060 ----
  #if !defined(AFS_LINUX26_ENV)
      if (afs_globalVFS)
        ip->i_dev = afs_globalVFS->s_dev;
+ #else
+     ip->i_security = NULL;
+     if (security_inode_alloc(ip))
+         panic("Cannot allocate inode security");
  #endif
      ip->i_sb = afs_globalVFS;
      put_inode_on_dummy_list(ip);
*** ./src/afs/sysincludes.h~    Mon Apr 12 18:04:31 2004
--- ./src/afs/sysincludes.h     Fri Jun 11 15:18:10 2004
***************
*** 64,69 ****
--- 64,70 ----
  #include <linux/backing-dev.h>
  #include <linux/pagemap.h>
  #include <linux/namei.h>
+ #include <linux/security.h>
  #endif
  /* Avoid conflicts with coda overloading AFS type namespace. Must precede
   * inclusion of uaccess.h.



 >
 >
 >
 > --
 > Matthew Miller           mattdm@mattdm.org        <http://www.mattdm.org/>
 > Boston University Linux      ------>                <http://linux.bu.edu/>
 >

   Rainer Schöpf