From nobody Mon Dec 12 20:08:16 2022 X-Original-To: toolchain@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 4NWCNx2MxPz4Y24k for ; Mon, 12 Dec 2022 20:08:17 +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 4NWCNw5Zbsz46kg for ; Mon, 12 Dec 2022 20:08:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670875696; 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=3s9EdCzE/Npb7fQQYMS9UOpyLIafzJmNhrcYauT/rx4=; b=W3f31M/Ka+RpseHui+bHruwDvvjhEvwn+8KXHZIJ5fKRWbvZ/C83sJW3qzk3ON2HroAEOO /UKS0eUNLhnqN0uuFUu0QJPmAs1soXaKDCEAoQY374KIt22aaYjOBgIPxrVdwrFGnsWrsS nh3LNJquWO6EuxLEbtJtUNsKzoglHJA2e7C1kEnth+rcWnQCbIbNyPM1UdFjwl7JCmL47e YZiS6MgDOmQXIH2RlH3EYwgpifyKo0w5akO8Q6LtjjSWZ48GuCUY47uuqGKAZoHSxKN07D zKbImQ2WW8Y6DzPz7j2/GEiMsfubTzkhwCZV2vBLjA0ak0DCywO7eJamne68BA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670875696; a=rsa-sha256; cv=none; b=QftvyKVymjaE81Ts4K0qJugW+Z4+tMtd6on+CFgWvnPeGhgpXxl0Q+kYO1kZl8I+xHhLOO 3fVZftI+56u/BrzgTkm32TwK/feWjIbPN2qGh2TvzUFeCIsJxZIEmWhHmE/PoO+nKEW94K 0XkgD0spPVIl12QpKq07gxc3K2YmfAVr7Ks52lkL3HZodihAHVTpA5uZcQn+lw0G8FBr7l e3UcGcwuU7lBHEi5KmX25aBwjTFiCA3KVPVl0rnBbT0ic0GOVel+BssbF6i9VVr2UKQvS1 LCvHuNqaI2r06zMOIUsKxXYsy0Z+L0GvD/Kaq7FobYlkaSDE7t5yoP9KPS5DZA== 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 4NWCNw4cJHzmhP for ; Mon, 12 Dec 2022 20:08:16 +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 2BCK8GMP090331 for ; Mon, 12 Dec 2022 20:08:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BCK8Ga7090330 for toolchain@FreeBSD.org; Mon, 12 Dec 2022 20:08:16 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: toolchain@FreeBSD.org Subject: [Bug 264094] VNET and DPCPU defined in modules panic on use on arm64 after LLVM 14 import due to new linker relaxation Date: Mon, 12 Dec 2022 20:08:16 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? mfc-stable12? 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: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264094 --- Comment #21 from Mark Johnston --- (In reply to Jessica Clarke from comment #20) Oh, right. So kmod_syms.awk is defeating the hack in VNET_DEFINE_STATIC. = That can be bandaged easily enough. I tried implementing your suggestion of adding an explicit offset with each VNET definition. It's a bit painful due to consumers doing things like: VNET_DEFINE(LIST_HEAD(, foo), n) =3D LIST_HEAD_INITIALIZER(); I don't think it's possible to implement VNET_DEFINE this way without either outlawing static initializers (or making them an argument to the macro itse= lf instead of using assignment), or outlawing anonymous types, i.e., the above would have to be: LIST_HEAD(foo_list, foo); VNET_DEFINE(struct foo_list, n) =3D LIST_HEAD_INITIALIZER(); I would go with the second option, but it does require a bunch of consumers= to be patched. I haven't yet compared the generated code with what we had before. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=