Comment 3 for bug 1100250

Revision history for this message
Dan Aloni (alonid) wrote :

This is very similar to what I'm getting with the newer rootfs of vexpress64-openembedded_sdk-armv8_20130127-242, combined with the kernel: Linux genericarmv8 3.8.0-1-linaro-vexpress64 #1ubuntu1~ci+130127041142 SMP Sun Jan 27 04:15:58 UTC 2013 aarch64 GNU/Linux.

When I login with sshd:

[ 1494.369684] sshd[861]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x92000006
[ 1494.369763] pgd = ffffffc87e450000
[ 1494.369826] [00000000] *pgd=00000008fe7d7003, *pmd=0000000000000000

[ 1494.369994] Pid: 861, comm: sshd
[ 1494.370079] CPU: 0 Not tainted (3.8.0-1-linaro-vexpress64 #1ubuntu1~ci+130127041142)
[ 1494.370160] PC is at 0x7fb7cf345c
[ 1494.370224] LR is at 0x40bf90
[ 1494.370299] pc : [<0000007fb7cf345c>] lr : [<000000000040bf90>] pstate: a0000000
[ 1494.370373] sp : 0000007ffffff430
[ 1494.370434] x29: 0000007ffffff430 x28: 000000000044b000
[ 1494.370554] x27: 000000000046bf14 x26: 0000000000448928
[ 1494.370673] x25: 0000007ffffff5c0 x24: 000000000047e248
[ 1494.370791] x23: 0000000000000006 x22: 0000000000000001
[ 1494.370909] x21: 0000000000000001 x20: 000000000047e660
[ 1494.371028] x19: 000000000044b468 x18: 0000000000000018
[ 1494.371146] x17: 0000007fb7cf3458 x16: 000000000046a9f8
[ 1494.371264] x15: 0000000000000fc0 x14: 00000000000000c0
[ 1494.371383] x13: 0000007fb7dc2e50 x12: 0000000000000000
[ 1494.371500] x11: 0000000000000040 x10: 00000000fffffff8
[ 1494.371618] x9 : 0000000000000000 x8 : 0000000000000000
[ 1494.371735] x7 : 0000000000000fff x6 : 0000000000000000
[ 1494.371853] x5 : 0000000002800010 x4 : 0000000042800520
[ 1494.371972] x3 : 4280052002800010 x2 : 0000000000000000
[ 1494.372090] x1 : 000000000044b468 x0 : 0000000000000000

A bit of analysis shows the place in libc where it faults:

7fb7c79000-7fb7da4000 r-xp 00000000 fe:02 487 /lib/libc-2.17.so
7fb7da4000-7fb7db3000 ---p 0012b000 fe:02 487 /lib/libc-2.17.so
7fb7db3000-7fb7db7000 r-xp 0012a000 fe:02 487 /lib/libc-2.17.so
7fb7db7000-7fb7db9000 rwxp 0012e000 fe:02 487 /lib/libc-2.17.so

000000000007a458 <strcmp>:
   7a458: d2800002 movz x2, #0x0
 ** 7a45c: 38626803 ldrb w3, [x0,x2] **
   7a460: 38626824 ldrb w4, [x1,x2]
   7a464: 340000c3 cbz w3, 7a47c <strcmp+0x24>
   7a468: 6b04007f cmp w3, w4
   7a46c: 91000442 add x2, x2, #0x1
   7a470: 54ffff60 b.eq 7a45c <strcmp+0x4>
   7a474: 4b040060 sub w0, w3, w4
   7a478: d65f03c0 ret
   7a47c: 4b0403e0 neg w0, w4
   7a480: d65f03c0 ret

Caller inside sshd (according to LR):
  40bf84: 9400e1b4 bl 444654 <setlogin+0x200>
  40bf88: aa1303e1 mov x1, x19
  40bf8c: 97ffedf9 bl 407770 <strcmp@plt>
  40bf90: 6b1f001f cmp w0, wzr
  40bf94: 1a9f17e0 cset w0, eq

Any takers?