From nobody Mon Oct 03 12:03:37 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 4Mgzy21J5Wz4dqBC for ; Mon, 3 Oct 2022 12:03:38 +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 4Mgzy20CF3z3qHM for ; Mon, 3 Oct 2022 12:03:38 +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 4Mgzy16PM0z1BmH for ; Mon, 3 Oct 2022 12:03:37 +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 293C3bea013950 for ; Mon, 3 Oct 2022 12:03:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 293C3b3d013949 for bugs@FreeBSD.org; Mon, 3 Oct 2022 12:03:37 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: Mon, 03 Oct 2022 12:03:37 +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=1664798618; 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=iNRAwwztMF5MGJY0ye7bSTdXeL17rYk0+zzdaRVFHco=; b=kEHUTIsjdsW7A/7AbClIFqFLpubd+tBm46tU6SOvuN2zmfCMiRd0t5eeuQQme3e9I6rh/m M7muaWJs/akIIo853+BMxx8R87PAVQTwoZprig0pqebgbFc2oshyRqA0cYRs5yo42JJR5r DhXJBJOn9ioElVzVkekx3GBw+oJ0GClUbR8IBq0U+c4w91e0bfygihtqbLz6QDLxftT9NH JvtNzfzqqrfbA9YluvHoonk+bOg0KVcbGJKbJKgLBKxf6PeFjKle0WHf/xaTajyma0WiA/ 2SzaaeOXltmxCGnkUniszanrxcT21fY0eQtL3/mJKmluWUFVCAhjGN/OZYDldQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664798618; a=rsa-sha256; cv=none; b=LkKTf65A/FpxrrwWUZP5pg91Lf4H+f7Nml4sgRKVRL0YLQlIZk2fQDOdnTe1x33eMew+9Z /bDGfVYC7SxmGUcbtYvEWpqx6MPa1dy0XOmNG088Qb3JIWuervuO89pqRYd0KE468Edhgc yf90S88STGXezE5loUQZHaVxtXmgmL9hgOxYgU9UQVXcMIVu6sht0IanmINe5nCeCE1SrW iS711LP0NzzJ1Wx71OvLETpyAKrZGEz/sxJ+IoRgzqwk3mnPeZY34ocDp44/YZY7V0Am+0 Zwooi151dqaIwYxhryyH2V120Dsybj+aiASv2HO3sqlbWJ5LMBRkvtvv0L+XGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266730 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Ddb79bf75ac9eb1b5678ccbaebb45fb88c= 0e0e1e3 commit db79bf75ac9eb1b5678ccbaebb45fb88c0e0e1e3 Author: Alfredo Dal'Ava Junior AuthorDate: 2022-10-03 14:51:05 +0000 Commit: Alfredo Dal'Ava Junior CommitDate: 2022-10-03 15:03:09 +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 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.=