From owner-freebsd-bugs@freebsd.org Fri Sep 28 17:08:10 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 431C210B5135 for ; Fri, 28 Sep 2018 17:08:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C76AC7A7E6 for ; Fri, 28 Sep 2018 17:08:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 86CDE10B5134; Fri, 28 Sep 2018 17:08:09 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49A0910B5133 for ; Fri, 28 Sep 2018 17:08:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D66887A7E4 for ; Fri, 28 Sep 2018 17:08:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 237E76A40 for ; Fri, 28 Sep 2018 17:08:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w8SH87xG047402 for ; Fri, 28 Sep 2018 17:08:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8SH87qW047401 for bugs@FreeBSD.org; Fri, 28 Sep 2018 17:08:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231790] mips64: attempting to load a module results in relocation errors and crash Date: Fri, 28 Sep 2018 17:08:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2018 17:08:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231790 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@FreeBSD.org Reporter: emaste@freebsd.org On an EdgeRouter Lite uname -a: FreeBSD 12.0-ALPHA7 FreeBSD 12.0-ALPHA7 r338982+19c946c159e5(mas= ter)=20 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 =3D 2 (TLB miss (load or instr. fetch) - kernel mode) panic: trap cpuid =3D 0 time =3D 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 + 2d= a4 0000000005c8 000200000003 R_MIPS_REL32 0000000000000000 .rodata + 2d= a4 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 + 2d= d0 --=20 You are receiving this mail because: You are the assignee for the bug.=