From nobody Tue Apr 02 15:21:20 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 4V8BRj4j2bz5Gq5v for ; Tue, 2 Apr 2024 15:21:21 +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 4V8BRj335dz4LvT for ; Tue, 2 Apr 2024 15:21:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712071281; a=rsa-sha256; cv=none; b=OVE0NVqcD3+VigSCvZFaQAZ11aE52jEe8bC92U0hYgH0b5ptxikE6/nN10XDSb6WxE8Myb b+DMKUXnLz3CdqO2faU1nr8KpxC29fFjusjR+w4s+DhIRVLZmdU1z5X1ew9PbBIk4vy3K/ rThyFG42nrj0HY5o7HK+VJjcSm41D56TYQdsiJd19fFRS9EbuKS6gQk2I4OIELElYKcIBS /pv8+Cg4aQl6/x3YpNJDmoHc7FWBvvnX0plsU3/IPP9BMnU1SrAaT2v3F4rEaajYZyOISS LdPVZX46HA+Ufi2PJj3GUQuBzRgk85d7WY7+ub9tSxellV2wc62w1KP5fwv3rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712071281; 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=J8hUfyquSqXsSc5A8GlcSYTdzmdrgLcDBDvyMKFYwDU=; b=w1kDrr1bdyZFkkrUvQWxtjvkQKUuUXgKTFGS4O28cEtipyAS5t2yeYRtdVUaIn92LznXOk 5VsCpMXLA3at4t8rQjKcbyT6/hpK86eE3cE36Xb7ep7jVBh2tCxDoiEFE3ytG972/OVCx1 xZYduO2r8aJG9xmXnnwzWcfoG2fTk5ndkezC+PYG8M5lZgbTHQL8PSf+/PjhJJDHY2uJRH izbveWR8/kBn8CN/RZXPBEeYyHBiYeRz/F3cYzDID6nYBdFY5gT9MW+ApTTWh9MAG4xxWg yGlKvJyH5spcHXe9A/sI9rWQZqrelSVOlHoIBrE/Y/3SseV8MN8tSEd4TsFbwQ== 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 4V8BRj2gLmzvNK for ; Tue, 2 Apr 2024 15:21:21 +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 432FLLr1037344 for ; Tue, 2 Apr 2024 15:21:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 432FLLCY037305 for bugs@FreeBSD.org; Tue, 2 Apr 2024 15:21:21 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 274375] page fault while load kernel module virtio Date: Tue, 02 Apr 2024 15:21:20 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: Open 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274375 --- Comment #4 from Zhenlei Huang --- (In reply to Mark Johnston from comment #1) > This looks like a problem with DTrace, there is some logic in sdt.ko's kl= dunload > handler to unregister providers, and something's going wrong there. virt= queue.c > defines two rather odd SDT probes, so we're trying to unregister them. That happens when a module file with SDT probes is failed to be loaded by kernel linker. While the kernel try to invoke kld_unload_try event handlers= for it and apparently it should not, as the file is in the progress of loading, i.e. it is partially linked. As for=20 > Note: `kldload virtio.ko` can trigger the panic but `kldload virtio` will= not. kernel linkers will check module named `virtio` firstly and refuse to load = so no bad things happen. But for `virtio.ko` the kernel will load the file and= get all modules in it before it knows `virtio` is present. Proposed fix https://reviews.freebsd.org/D44594. --=20 You are receiving this mail because: You are the assignee for the bug.=