From owner-freebsd-bugs@freebsd.org Sun Dec 24 07:47:08 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78969EA36A5 for ; Sun, 24 Dec 2017 07:47: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 mx1.freebsd.org (Postfix) with ESMTPS id 66D156D56F for ; Sun, 24 Dec 2017 07:47:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBO7l8ZH025087 for ; Sun, 24 Dec 2017 07:47:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224561] powerpc64: head -r327075 kldload (e.g.) of kernel modules built by clang 5.0.1 crashes the system Date: Sun, 24 Dec 2017 07:47: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: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Dec 2017 07:47:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224561 Bug ID: 224561 Summary: powerpc64: head -r327075 kldload (e.g.) of kernel modules built by clang 5.0.1 crashes the system Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net [I experiment with system-clang as a means of building FreeBSD for powerpc64 (and powerpc).] [Note: -r326192 and its clang 5.0.0 context did not have this issue. 5.0.1 may have added to the range of relocation handling needed for dynamically loaded kernel modules.] When the powerpc64 kernel is (cross) built via -r327075 and its clang (5.0.1), the kernel produced crashes when dynamically loading kernel modules (say via kldload or via geom_label_load=3D"YES" in /boot/loader.conf ). By contrast, the same sources used to cross build via devel/powerpc64-xtoolchain-gcc produces a kernel for which the same world (not updated) dynamically loads kernel modules just fine (including via kldload or via geom_label_load=3D"YES" in /boot/loader.conf ). Both cases are using: devel/powerpc64-binutils because (A) lld does not work for powerpc64 built via clang last I knew and (B) the system binutils do not work for that kind of context either. I'll note that for TARGET_ARCH=3Dpowerpc clang 5 and the system binutils do not work together. There is no devel/powerpc-binutils and last I knew lld did not work for powerpc yet. So I've not tested a clang based kernel for it. A gcc 4.2.1 based kernel does not have the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=