From nobody Wed Dec 25 01:44:18 2024 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 4YHvgl3tP0z5h0hw for ; Wed, 25 Dec 2024 01:44:19 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YHvgl2Jvrz4rr7 for ; Wed, 25 Dec 2024 01:44:19 +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=1735091059; 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=XVMNLqAydDz8qaa8F5vPR+ZASbEsPnU7s9YknvQ7CaE=; b=Z6tV0K91P0WXd7ic2mU/6rb13r+izkZtnkllgirK/BqTKf+j3foWzZ73gGbsmFx6f3CmXy pBYETaVf89pAPbne9NDR33k2wzlMsZTcltWY+LoFHJBT3apSosbsnUuPm+oEE3jkgv0lnS hjJ7WDxW23N1G8VXav4DI80s7UXoApORfuYo/K2JFYVBuQvhzCemhgjap8vGXGN2usALkW SHvgB8y15bwmzVQ7sBIEqC9CUmVpOfBWoRfVNnxVVWTHJcf3f9pJPeZMThcSfS9JYuuq3L pthGhXodyK4fkVFXcn3rKcevZXPLOudPhmUaELB/yEkH1BSQXpaVwhf2u5wrrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735091059; a=rsa-sha256; cv=none; b=SNMM0q1l9rhjhqobChgqMMal/bAsqtVJl6B/RFbHaxZAVoaB5oc4VfVlan4ZtSgDCu/11O pcY03mHqoAyOP1HuUHe8DNJuzwJrEk5C3/icgQLNmzKDA1cnfh+ubm6bHdFeuyUGwLh0k8 /E8vY2jrgTRO5VxY5OGSHee/9yaK5xv4nU8rx1xiu0i4dvdast7nQ4St9j1q7u2tpJzDpy GvNqUx+Oc+fFqO8qPY2R5dDYoiNa1eIFIFKtZtkfaDNU+wTQA+e7dwk4euEi+b153TL59/ A8P2g1/RyJ8UmijxLnVRDQUVv8zC3XO2T+tMESN+IbPTnMlDCV2vML/N3MH4FQ== 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 4YHvgl1wfKz14MC for ; Wed, 25 Dec 2024 01:44:19 +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 4BP1iJVv049184 for ; Wed, 25 Dec 2024 01:44:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BP1iJx6049183 for bugs@FreeBSD.org; Wed, 25 Dec 2024 01:44:19 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: bugs@FreeBSD.org Subject: [Bug 267028] kernel panics when booting with both (zfs,ko or vboxnetflt,ko or acpi_wmi.ko) and amdgpu.ko Date: Wed, 25 Dec 2024 01:44:18 +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-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267028 --- Comment #294 from Mark Millard --- (In reply to George Mitchell from comment #292) As it looks like those printf lines might be contributing to problems of themselves, here is an alternate patch that keeps history internally that I'd be able to examine via the vmcore.* Again: Only compile tested. I doubt there is any reason to keep any kernel , kernel.debug , or vmcore.* that is based on the prior patch. Might as well delete such to get the disk space back. The below is based on the original, official code, not on the prior patch. # git -C /usr/alt-src diff sys/kern/kern_linker.c diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 5271d002fba4..fb5697ee5067 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -1515,14 +1515,36 @@ modlist_lookup2(const char *name, const struct mod_depend *verinfo) return (bestmod); } +#define MODLIST_NEWMOD_HIST_SLOTS 256 +static struct modlist_newmod_hist_type { + modlist_t modAddr; + linker_file_t containerAddr; + char const* modnameAddr; + int version; +} modlist_newmod_hist[MODLIST_NEWMOD_HIST_SLOTS]; +static int modlist_newmod_hist_pos=3D MODLIST_NEWMOD_HIST_SLOTS; // First = use will wrap to 0 first. + static modlist_t modlist_newmodule(const char *modname, int version, linker_file_t containe= r) { modlist_t mod; mod =3D malloc(sizeof(struct modlist), M_LINKER, M_NOWAIT | M_ZERO); + + ++modlist_newmod_hist_pos; + if (MODLIST_NEWMOD_HIST_SLOTS<=3Dmodlist_newmod_hist_pos) modlist_newmod_hist_pos=3D 0; +#undef MODLIST_NEWMOD_HIST_SLOTS + modlist_newmod_hist[modlist_newmod_hist_pos].modAddr=3D mod; + modlist_newmod_hist[modlist_newmod_hist_pos].containerAddr=3D conta= iner; + modlist_newmod_hist[modlist_newmod_hist_pos].modnameAddr=3D modna= me; + modlist_newmod_hist[modlist_newmod_hist_pos].version=3D versi= on; + if (mod =3D=3D NULL) panic("no memory for module list"); + + if (mod < (modlist_t)0xfffff80000000100) + panic("modlist_newmodule: mod < (modlist_t)PHYS_TO_DMAP(0x100)"); + mod->container =3D container; mod->name =3D modname; mod->version =3D version; --=20 You are receiving this mail because: You are the assignee for the bug.=