[OpenAFS-devel] i386_xenlinux26?

Rob See rob@rsee.net
Fri, 17 Jun 2005 12:03:18 -0400


Chas,
	
	There are two different compiles of the kernel. Dom0 is the one that 
has direct access to the hardware, the "trusted" domain. DomU are the 
guests.  They have virtual access to certain devices through Dom0. You 
can export a block device or use a file in dom0 as a block device for a 
guest, but I can't see how I could export /afs. Also how would 
authentication/authorization work in that case ?

Thanks,
-Rob

Here are the errors:
general protection fault: 0000 [#1]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000030   ecx: c056d5e0   edx: 0000002a
esi: ce1c1d98   edi: 00000000   ebp: 00000000   esp: ce9c5fd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1390, threadinfo=ce9c4000 task=ce17b020)
Stack: 00000030 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        ce1c1d98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#2]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000000   ecx: c056d5e0   edx: 00000028
esi: ce9a7d98   edi: 00000000   ebp: 00000000   esp: ce867fd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1392, threadinfo=ce866000 task=cebe6520)
Stack: 00000000 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        ce9a7d98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#3]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000013   ecx: c056d5e0   edx: 00000026
esi: ce845d98   edi: 00000000   ebp: 00000000   esp: ce83bfd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1394, threadinfo=ce83a000 task=ceb26a20)
Stack: 00000013 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        ce845d98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#4]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000001   ecx: c056d5e0   edx: 00000026
esi: ce13bd98   edi: 00000000   ebp: 00000000   esp: ce1d3fd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1396, threadinfo=ce1d2000 task=ce17ba20)
Stack: 00000001 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        ce13bd98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#5]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f60db>]    Tainted: P      VLI
EFLAGS: 00010286   (2.6.11.10-rob0-xenU)
EIP is at afs_osi_Sleep+0xb/0x90 [libafs]
eax: ce17b520   ebx: 0000000a   ecx: 00000015   edx: 0000056b
esi: ce1b2000   edi: 0000e002   ebp: d192faa8   esp: ce1b3de4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1387, threadinfo=ce1b2000 task=ce17b520)
Stack: 00000014 0000000a ce1b2000 0000e002 00000000 d18fd024 d192faa8 
0000006b
        00000100 ccc615b8 ce1b2000 2a6d9065 00100173 cbc61000 c0000000 
0002ba10
        cd4dfbfc cee32bfc c01489eb ccc61580 c05f5300 cee32bfc cd4dfbfc 
ce1b2000
Call Trace:
  [<d18fd024>] afs_syscall_call+0xec4/0x1a70 [libafs]
  [<c01489eb>] copy_pmd_range+0x10b/0x120
  [<c05f5300>] init+0x30/0x190
  [<c017413a>] dput+0x3a/0x240
  [<c016a7d0>] link_path_walk+0x9f0/0xd40
  [<c037668c>] copy_from_user+0x6c/0xa0
  [<d18fe073>] afs_syscall+0x3a3/0x490 [libafs]
  [<d18f58ca>] afs_unlocked_ioctl+0x6a/0x70 [libafs]
  [<c015a178>] filp_open+0x68/0x70
  [<c016ed8e>] do_ioctl+0x8e/0xa0
  [<c016f034>] vfs_ioctl+0x94/0x1f0
  [<c015a41e>] get_unused_fd+0x5e/0xd0
  [<c016f1f7>] sys_ioctl+0x67/0x90
  [<c0109418>] syscall_call+0x7/0xb
Code: eb b5 89 34 24 e8 b6 fd ff ff 89 34 24 e8 0e fd ff ff 89 c3 e9 ad 
fe ff ff 8d b4 26 00 00 00 00 55 57 56 53 83 ec 04 8b 6c 24 18 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  /sbin/runscript.sh: line 532:  1387 Segmentation fault 
/usr/sbin/afsd ${OPTIONS} 1>&2
  * Error starting AFS
<1>general protection fault: 0000 [#6]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000004   ecx: c056d5e0   edx: 0000002f
esi: ce83bd98   edi: 00000000   ebp: 00000000   esp: ce1d3fd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1398, threadinfo=ce1d2000 task=ce17ba20)
Stack: 00000004 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        ce83bd98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#7]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000002   ecx: c056d5e0   edx: 0000002d
esi: ce867d98   edi: 00000000   ebp: 00000000   esp: ce9c5fd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1400, threadinfo=ce9c4000 task=ce17b020)
Stack: 00000002 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        ce867d98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#8]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000002   ecx: c056d5e0   edx: 0000002b
esi: cd2ebd98   edi: 00000000   ebp: 00000000   esp: cd2edfd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1402, threadinfo=cd2ec000 task=ceb26020)
Stack: 00000002 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        cd2ebd98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff
  <1>general protection fault: 0000 [#9]
PREEMPT
Modules linked in: libafs
CPU:    0
EIP:    0061:[<d18f5501>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.11.10-rob0-xenU)
EIP is at osi_linux_mask+0x1/0x40 [libafs]
eax: 00000000   ebx: 00000002   ecx: c056d5e0   edx: 00000029
esi: cd2a9d98   edi: 00000000   ebp: 00000000   esp: cd22bfd4
ds: 007b   es: 007b   ss: 0069
Process afsd (pid: 1404, threadinfo=cd22a000 task=cee31520)
Stack: 00000002 d18fb91c d1911a66 0000007b 0000007b d18fb900 00000000 
c01072b5
        cd2a9d98 00000000 00000000
Call Trace:
  [<d18fb91c>] afsd_thread+0x1c/0x6a0 [libafs]
  [<d18fb900>] afsd_thread+0x0/0x6a0 [libafs]
  [<c01072b5>] kernel_thread_helper+0x5/0x10
Code: 24 08 b8 69 c0 c9 29 89 7c 24 18 89 74 24 10 89 44 24 04 89 14 24 
e8 bf a5 00 00 8b 44 24 1c e9 06 ff ff ff 8d b6 00 00 00 00 53 <fa> bb 
00 e0 ff ff 21 e3 ff 43 14 8b 03 b9 ff ff ff ff ba ff ff

chas williams - CONTRACTOR wrote:
> In message <42B2EA51.6030409@rsee.net>,Rob See writes:
> 
>>	With 1.3.84 under 2.6 Openafs seems to work ok on the dom0 kernel, but 
>>oopses immediately under the domU kernel.
> 
> 
> i dont know much about xen.  any chance we could see the oops?  are the
> non domain 0 kernels different from the domain 0 kernel?
> 
> it seems like this is pretty similar to the solaris containers so you
> might only want to run afs in domain 0 and "export" the filesystem 
> to the non-0 domains.