From nobody Mon Dec 12 20:08:16 2022 X-Original-To: net@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 4NWCNx4kJNz4Y1jl 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 4NWCNx3JVmz46rl for ; Mon, 12 Dec 2022 20:08:17 +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=1670875697; 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=LNra4r5PgIWOM95fReuO0NpW5uwQefuOwC6pJbsjMfc=; b=pJptscJT4EwWAqx8YLYbkS3yPPIkaORjN1tRm3s+xtki6KTqJ6DYv7hXCZGPumnqdwnVFU guVIxUGjKU+PNcgsXLbfZeLTFbMDMaC5puw3jmSqWmsEAuNTSElue4q0ny24K8khU2nXcW aT/UES62o0INus4d4xcT+jMWFRM+egXOLrSSEGP42M7LPvW4hYheAOITjrN3yS1kcU2Wt0 JZA+aV0HbMrs+Ynuu26CgSPKWrAHF0VOcXlSYPIozC/zwoFFW6g/ocg6+u9ELvq1sUCGsD 13tCmx/fGYSS5F0R6kInWxJwfEH3+/e2HPxcnExtKjj6f6TmoQTMLOocKjyukw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670875697; a=rsa-sha256; cv=none; b=KN2DXCz+hET2Gr+keIVd2wPHRK3xpJiQ3qt1gu9Zoa5i/K+xCaTZZ6M9BIvHhsm8Z8LUw7 tIZeo9XkeraaVciniFUFC11kCAJThtDb4apdVNIYydCGBkn+dn7s+Mje/wKY/AbTB7sjnS SBYdt9HM0qvw8/Q4mvoOvuiLRSWKhiGJlB/a+oVkggU3q1Do71JpsIJ5uqS/Cmd0Hfty/t v6ywIp09/cUadRNNBee7Ny666f/Cwe2TwSG3ml5CbyN+ugwxHbwRuX+QkWgAvbGO00RZK7 TIKmmEzGwlh9z3dh+4erpUgjL6IIGn/w5DNA525AeaUYm/D7b898LjmVr4MrWg== 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 4NWCNx2GyRzmc1 for ; Mon, 12 Dec 2022 20:08:17 +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 2BCK8HXg090349 for ; Mon, 12 Dec 2022 20:08:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BCK8Hqc090348 for net@FreeBSD.org; Mon, 12 Dec 2022 20:08:17 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: net@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: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@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 on the CC list for the bug.=