From nobody Tue Sep 05 00:47:56 2023 X-Original-To: stable@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 4Rfn172Kbxz4sYGT for ; Tue, 5 Sep 2023 00:48:11 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rfn171qCrz4c1K for ; Tue, 5 Sep 2023 00:48:11 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693874891; 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; bh=y3vJ/mreyZDCsElqUfa++/6B1Jb09sXGRJPgcKtbMio=; b=K8/anbGbYclT4ZolbFcmHNEPB4wl+COaN5d/ju6DYs+MdnU8ynxw4o/tFOnhhF6wF4yzGc wW78OT2LzWVwZIFu/ZsdCgRcakiXiXXlxJb/LLw4OhLS08TFwbFtF9dh4kFPmC2fAiOcKL 4RO98/lJ34Xb99GApnoW5t6vZ3Z4Jk4dep915tjW3OeG+XM8QBHTFl+dnG02kBvPtdXDQ/ xBfDdf6mGtfOoMIydqlkw2xznVlB7fD+++Q9DPW4D8EW0FXEDCgSnAkDnQlD9qbvspZh38 Sxdk5JdYN8eP7pf/g3sUSVVYy/tZVy/yd1n77D42/fCjRwSc7v0xH9jFEI6WVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693874891; a=rsa-sha256; cv=none; b=Jr70H3jy//I8qG8eGfgX97ZR+xRw0+ygKRr2hykEz5cin8uzIhcGXtky3NQORpK7kt+nS6 Y5z53KZ4Myeu9cTb/pXf72W9/Gxe489y1LZwkX02wu1d3Sm++iZW1j/T3LjUM/dv9xgna6 uNz7TjLPSfU/LfFIp8PSZ+hxyhjRNHbTKwlcetK1o167Ohzeqrz7FifEkfS+RqAuUPHP5H PBXN/9oqAynKj6ad/R1UbujEClooi322OVaSg57o6oOL+hSd5SnmWGubJzOT0zCaObGtjL GyTWvJYmwF3DsbecMrEw36FrnjEocxLgljqKAco9EF9VgPOQjTwJtmQmi8F4FA== 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=1693874891; 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; bh=y3vJ/mreyZDCsElqUfa++/6B1Jb09sXGRJPgcKtbMio=; b=dy48AG3QutguhYlRk1RYsJAhhAdcbkeYiQ50unRPknFmGF0IKBqshkOj5dCwUMpVITA663 7+XTT+8488NzvlyU8TtQiJCbP+tjWU+oN+x9MmxtMKX6Bd4fKsy0+Dg7BC9n3yw/xpEMme /a8bT7N7nz2xTdUle3GYJ1dzARSmtmKopvMdpxbxPf5+7ln+rWv1fN+KRnKf1+wfGd8lqY 0FKjT2KmtapxcQ4bPJzLx1htD5gsFZsqbbFm6qtYO+Z3xfzEEJy8gq5ediQDxczBhcB/8O as4BUjAWzbl0gywR+dHfsjhqxsW+iB1ulUhdjCSFkDdCIx44q7RU+yoChsV+/Q== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Rfn162zlmz11m0 for ; Tue, 5 Sep 2023 00:48:10 +0000 (UTC) (envelope-from zlei@FreeBSD.org) From: Zhenlei Huang Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: vm_fault_lookup: fault on nofault entry, while loading module cc_cubic with GENERIC-KASAN Message-Id: <7088027B-74F7-4622-95CF-DF2CEBBB8A6E@FreeBSD.org> Date: Tue, 5 Sep 2023 08:47:56 +0800 To: stable@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.4) Hi, Observed unexpected kernel panic while loading modules. I have a test VM installed 13.2. I have `cc_cubic_load=3DYES` in /boot/loader.conf to test cc_cubic. Recently I installed custom=20 GENERIC-DEBUG kernel (current/15) to test some features and the kernel panics during early boot. To narrow down the root cause, I tested stable/14 (d6fec2dacf80) with stock kernel config GENERIC-KASAN, it still panics. I can reliably repeat the panic with `options KASAN`. I'm not familiar with KASAN, so post here. Steps to repeat: On current/15 or stable/14 built with `options KASAN`. # kldload cc_cubic interface cubic.2 already present in the KLD 'kernel'! panic: vm_fault_lookup: fault on nofault entry, addr: 0xfffffe0061b0f000 cpuid =3D 1 time =3D 1693873182 KDB: stack backtrace: #0 0xffffffff813419b3 at kdb_backtrace+0x103 #1 0xffffffff81287ced at vpanic+0x1fd #2 0xffffffff81287ae5 at panic+0xb5 #3 0xffffffff819b1db0 at vm_fault+0x2e80 #4 0xffffffff819aedff at vm_fault_trap+0xdf #5 0xffffffff81c27c38 at trap_pfault+0x378 #6 0xffffffff81c2696b at trap+0x4db #7 0xffffffff81be4c08 at calltrap+0x8 Uptime: 23s Dumping 162 out of 951 = MB:..10%..20%..30%..40%..50%..60%..70%..79%..89%..99% Dump complete Some informations that may help: loaded modules: root@:~ # kldstat=20 Id Refs Address Size Name 1 11 0xffffffff80200000 34b4cd8 kernel 2 1 0xffffffff83e19000 7208 intpm.ko 3 1 0xffffffff83e21000 39a8 smbus.ko 4 1 0xffffffff83e25000 cd10 vmci.ko 5 1 0xffffffff83e32000 3428 mac_ntpd.ko part of dmesg: ---<>--- Copyright (c) 1992-2023 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 14.0-ALPHA4 amd64 1400097 #0 stable/14-n265029-d6fec2dacf80: Mon = Sep 4 16:32:22 CST 2023 = zlei@:/usr/obj/home/zlei/freebsd-src-stable14/amd64.amd64/sys/GENERIC-KASA= N amd64 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) VT(vga): text 80x25 CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz (2700.00-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x306d4 Family=3D0x6 Model=3D0x3d = Stepping=3D4 = Features=3D0xf83fbff = Features2=3D0xfffa3203 AMD Features=3D0x2c100800 AMD Features2=3D0x121 Structured Extended = Features=3D0x1c27ab Structured Extended = Features3=3D0xbc000400 XSAVE Features=3D0x1 IA32_ARCH_CAPS=3D0xc TSC: P-state invariant Hypervisor: Origin =3D "VMwareVMware" real memory =3D 1073741824 (1024 MB) avail memory =3D 801873920 (764 MB) Best regards, Zhenlei