Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Oct 2022 21:15:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266730] powerpc kernel crash on loadable modules that use copyin/copyout ifunc
Message-ID:  <bug-266730-227-1Vj8LBsjDl@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266730-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-266730-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266730

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D05f9810b31973fb0d5f07a6eb9a12a22f=
81c38ad

commit 05f9810b31973fb0d5f07a6eb9a12a22f81c38ad
Author:     Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>
AuthorDate: 2022-10-03 14:51:05 +0000
Commit:     Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>
CommitDate: 2022-10-06 00:14:19 +0000

    powerpc: cpuset: add local functions for copyin/copyout

    Add local functions to workaround an instruction segment trap (panic)
    when the indirect functions copyin and copyout are called by an external
    loadable kernel module (i.e. pfsync, zfs and linuxulator). The crash
    was triggered by change 47a57144af25a7bd768b29272d50a36fdf2874ba, but
    kernel binary linked with LLD 9 works fine. LLVM bisect points that LLD
    behavior chaged after dc06b0bc9ad055d06535462d91bfc2a744b2f589.

    This is know to affect powerpc targets only and the final fix is still
    being discussed with the LLVM community.

    PR:     266730
    Reviewed by:    luporl, jhibbits (on IRC, previous version)
    MFC after:      2 days
    Sponsored by:   Instituto de Pesquisas Eldorado (eldorado.org.br)
    Differential Revision:  https://reviews.freebsd.org/D36234

    (cherry picked from commit db79bf75ac9eb1b5678ccbaebb45fb88c0e0e1e3)

 sys/kern/kern_cpuset.c | 36 ++++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266730-227-1Vj8LBsjDl>