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

2018-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231790

Mark Linimon  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|m...@freebsd.org
   Hardware|Any |mips

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


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

2018-09-28 Thread bugzilla-noreply
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: b...@freebsd.org
  Reporter: ema...@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

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
0028 00020003 R_MIPS_REL32 .rodata + 420
0184 00020003 R_MIPS_REL32 .rodata + 3a0
02a8 00020003 R_MIPS_REL32 .rodata + 420
0578 00020003 R_MIPS_REL32 .rodata + 2da4
05c8 00020003 R_MIPS_REL32 .rodata + 2da4
0034 004a000c R_MIPS_GPREL32  
__mtx_unlock_sleep + 0
004c 0063000c R_MIPS_GPREL32    + 0
0098 0004000c R_MIPS_GPREL32   .data + 0
00b0 003c R_MIPS_GPREL32   arc4random + 0
00d0 0009000c R_MIPS_GPREL32  0478 g_nop_orphan + 0
 00020001 R_MIPS_16    .rodata + 0
0020 00020001 R_MIPS_16    .rodata + 440
0040 00020001 R_MIPS_16    .rodata + 478
0060 00020001 R_MIPS_16    .rodata + 4b0
0080 00020001 R_MIPS_16    .rodata + 2dd0

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"