From nobody Wed Oct 05 21:15:26 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MjS5p2h56z4f5l2 for ; Wed, 5 Oct 2022 21:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjS5p0ddhz3GD5 for ; Wed, 5 Oct 2022 21:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MjS5n6kZyz12Lk for ; Wed, 5 Oct 2022 21:15:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 295LFPOe098841 for ; Wed, 5 Oct 2022 21:15:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 295LFPdH098840 for bugs@FreeBSD.org; Wed, 5 Oct 2022 21:15:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266730] powerpc kernel crash on loadable modules that use copyin/copyout ifunc Date: Wed, 05 Oct 2022 21:15:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665004526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YbCNye+GmtezYaCxuJECDpf92IHb6ts01IF/O0Fd59Y=; b=hTUoA3T1K3Cy4zn65QuAlwomHjNfRU4xd7TkjGciFqjMkOrXa23aGQNmeFDeqpw78+y4NW LZ+A2yBWkD1rDSePu5Gaz2rAJX8zmjNWYfo8W0EYyNflVGTtb61PIIP60hGNRzZ0nYCAPZ YtIsXsIJbziEhTf+8V2/cyB1C470TLVkA6/+llKJLL64jkvJaD2vBWc1kmtkEWvFBx/zBk tET34eH8J3gXipmlvCFQDTrAguGHO5Zk4fl8MwM0WvfUR4KEnM1VLrk9yeyqbP5tp2b94X swv5s5hKZ+9+jnlhP/oW4fO/+PxluimiDbEQYfYzrXfqkAYbn8/iLWE06Y8k/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665004526; a=rsa-sha256; cv=none; b=TOQ4apmOO8z1XOg59SCQ6tTYsU9EiNxF6jUvU9AkVpSI8D/yoX7rBT2ifGgz57GSPpb8VL Cj55Q93yto1ybdmxtWqan1aZoxnI5UbXW01Yx0JwrPDYrrJHIH2DjbEU+LjKrJCv04LJOL sZjhQpyNu8x01pXcNfkLCBCyKONYcgetbpoJdBuGseiPXJdt8mhpupwcNSDWom0uwm8ZBo EO2UFR0ueJ3LUKwy/A1861H8VsyMBXjvwiC9lOfPxtHF0rqtu8zRnfw+IuCgdFVt3LLzcO a3zjfSaiaJY3J9EOlMYYzlYk6r48FZmns4kM5Umkxg2fbuanYwzhIvEPaTq/Gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2022-10-03 14:51:05 +0000 Commit: Alfredo Dal'Ava Junior 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.=