possible um l bug
Quoted 17 lines · Jonathan
Message body follows:
I am using user-mode linux on 2.6.16.18
I my .config everything is resident except some NFS
Quoted 1 line
CONFIG_NFS_FS=m
CONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=yCONFIG_NFS_DIRECTIO=yQuoted 1 line
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=yCONFIG_NFSD_V3=yCONFIG_NFSD_V3_ACL=yCONFIG_NFSD_V4=yCONFIG_NFSD_TCP=y
Quoted 5 lines
Quoted 1 line
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=yCONFIG_NCPFS_NFS_NS=yThis is compiled with -mcmodel=kernel
No, on x86_64 it is, but not on UML, because UML has a bug (totally forgot this). After analisying deeply the bug (below) I checked this very basic assertion, and found that a patch is needed. Please recompile and retest without the patch (to make sure it's repeatable and not showing up randomly) and with the patch (to make sure it's a sufficient fix; without the first test this wouldn't be a perfect proof about patch validity). Do a make clean before the 1st compile (the one without the patch); kbuild is smart enough to recompile everything when it sees flags have changed.
Jeff, please merge this, after Jonathan response, even for 2.6.17-stable.
Quoted 4 lines
[root@localhost ~]# service rpcidmapd start Starting RPC idmapd: [42949986.800000] overflow in relocation type 11 val
80b85e70loc =80b85e70[42949986.800000] `sunrpc' likely not compiled with
Quoted 8 lines
FATAL: Error inserting sunrpc (
/lib/modules/2.6.16.18/kernel/net/sunrpc/sunrpc.ko):
Invalid module format
FATAL: Error running install command for sunrpcI track this down and find the message comes from the kernel in
./arch/um/sys-x86_64/module.c
For what I can see here, that file is a symlink from x86_64 code.
Quoted 23 lines
case R_X86_64_32S: *(s32 *)loc = val; if ((s64)val != *(s32 *)loc) goto overflow; break; case R_X86_64_PC32: val -= (u64)loc; *(u32 *)loc = val; #if 0 if ((s64)val != *(s32 *)loc) goto overflow;#endif
break;
default:
printk(KERN_ERR "module %s: Unknown
rela relocation: %Lu\n",me->name, ELF64_R_TYPE(rel[i].r_info)); return -ENOEXEC; } } return 0;
Quoted 5 lines
overflow:
printk(KERN_ERR "overflow in relocation type %d val
%Lx loc = %x\n",(int)ELF64_R_TYPE(rel[i].r_info), val,*(u32*)loc);
You're wrong in printing loc as u32. It's a s32 value. However your analisys is correct.
Quoted 12 lines
printk(KERN_ERR "`%s' likely not compiled with
-mcmodel=kernel\n",me->name); return -ENOEXEC; }Note I added to one printk so I could find out what actually is happening.
Where
R_X86_64_32Shas the value 11,
Quoted 8 lines
From the first error message printed on the console
Starting RPC idmapd: [42949986.800000] overflow in relocation type 11 val
80b85e70loc =80b85e70Both loc and val are appear equal (one is a 64 bit signed and one is a 32 bit signed, one would be
negative and one positive, and that why they are not equal)
Yes, the analisys seems almost correct. I.e. the positive but > 2G signed address kept in the 64bit var is converted to a negative one with the same representation. However, if the value is supposed to be an address it's very strange since
Quoted 1 line
is this a bug, that only happens in uml?
It's not uml-only related as the code is x86_64.
Signature · 15 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel