[Bug 231790] mips64: attempting to load a module results in relocation errors and crash

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 28 17:08:10 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231790

            Bug ID: 231790
           Summary: mips64: attempting to load a module results in
                    relocation errors and crash
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: emaste at freebsd.org

On an EdgeRouter Lite

uname -a: FreeBSD  12.0-ALPHA7 FreeBSD 12.0-ALPHA7 r338982+19c946c159e5(master) 
ERL  mips

# kldload /boot/kernel/geom_nop.ko
kldload: unexpected relocation type 3
kldload: unexpected relocation type 12
kldload: unexpected relocation type 11
<many more lines, types 3, 11, and 12>
cpu:0-Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)
panic: trap
cpuid = 0
time = 1538152731
Uptime: 3h32m5s

Some examples of the relocations:
# for r in R_MIPS_REL32 R_MIPS_GPREL32 R_MIPS_16; do readelf -r
/boot/kernel/geom_nop.ko | grep $r | head -n 5; done
000000000028 000200000003 R_MIPS_REL32        0000000000000000 .rodata + 420
000000000184 000200000003 R_MIPS_REL32        0000000000000000 .rodata + 3a0
0000000002a8 000200000003 R_MIPS_REL32        0000000000000000 .rodata + 420
000000000578 000200000003 R_MIPS_REL32        0000000000000000 .rodata + 2da4
0000000005c8 000200000003 R_MIPS_REL32        0000000000000000 .rodata + 2da4
000000000034 004a0000000c R_MIPS_GPREL32      0000000000000000
__mtx_unlock_sleep + 0
00000000004c 00630000000c R_MIPS_GPREL32      0000000000000000  + 0
000000000098 00040000000c R_MIPS_GPREL32      0000000000000000 .data + 0
0000000000b0 00300000000c R_MIPS_GPREL32      0000000000000000 arc4random + 0
0000000000d0 00090000000c R_MIPS_GPREL32      0000000000000478 g_nop_orphan + 0
000000000000 000200000001 R_MIPS_16           0000000000000000 .rodata + 0
000000000020 000200000001 R_MIPS_16           0000000000000000 .rodata + 440
000000000040 000200000001 R_MIPS_16           0000000000000000 .rodata + 478
000000000060 000200000001 R_MIPS_16           0000000000000000 .rodata + 4b0
000000000080 000200000001 R_MIPS_16           0000000000000000 .rodata + 2dd0

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list