From nobody Thu May 15 10:42:36 2025 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 4Zymxm2vzpz5w7S3 for ; Thu, 15 May 2025 10:42:36 +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 4Zymxm1wT4z3XVN for ; Thu, 15 May 2025 10:42:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747305756; 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=kBQ5tNzsbSvSx2Hc4LIhISF8kV0udEX2gxvslQsGQFQ=; b=nGX787bUG69C1Ks0I1df5h/dOior3QBcTvqX+/GuFA7opDePto+ily/rHYHX2jNwpTlxo3 6A8ZQDI2eH0QtdcK1rqzgkPQCbL8Ikr9mOUNCazv85qvPltPfFjKImViOUXsUtnTjm2npx edlMGy23GO7BJaqcRFdq7lWwGCU5whRkqxoPY6kYYwic3c89v971/W3P8AUYhdqkMlnrkW gqUhjp6pBUKyIgrYoSNAISESerjzr8uQDvYegeGuqNBP2wecUJ1X3dTd1QzI3WzgVVolYd mOnMFLv+7mTROK39oBjBHJGP1b2oieidk2y8Pb+q0dBDXRUG87MvdL4O2lGh/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747305756; 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=kBQ5tNzsbSvSx2Hc4LIhISF8kV0udEX2gxvslQsGQFQ=; b=tKdOlWi3PWhaiuXzO1EVwa2im03P7WToTBNxYrOOhg2g7Gm+r11EA4jYG487s2WpyWvWdl FlUBOsVEPbZVHkGIwjhBwJXsceBTHZa0imrZj0AkiHZEIuLFIQV88KEUouESciOg9B5xKf 9pd5vksHn51WxhQIWRtLUftJY2S7tkytXgQ5TC9vZfA2iGH16uTePEj8xvSZz6hIgB02pr VgnO7W72ajNk1HJX8LMLc2AlHiukiNYbidkO3+iGYJIXTcbU0UtlQkIInksoerw7/T9IQS OTXaDg5EAT5xbQMuNaLVNWV0j6lEXWxPx5jvGrc8UKSiNlCGCvJt+zZVKqZ4Gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747305756; a=rsa-sha256; cv=none; b=KlipjSSXNszp4N8fLM+ZlIUMO7Cve6Y9RKiipdsrUDJq1sEBiY0f0tSSDoqPzbnVMg0JCI TeHXDNpef/7CNJGTecWhi0NNw3onJYUb4BQVZ/lYmO9+kLZGycGR2lZ/twAl4ejKHY6NOV u9ta0en5EGpn5ZWNDFPOdgeayPPPQbTifGufX0cGUeRSB0o8Ssfk2jGVuoeQ9JciYfSblK aPBsWxXJSfL/iqTaZtR9sdCFclvIpS2AZSRRMlFSta0XfDICq3MlYSHEjOZZM1Dq+3+r8e HGlvYgU3zQJWvl2h9u6Imp7LVJZKVhiTQLes2uHNbpLP0vdA4CI9olj8CW06bg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Zymxm1M0yz4Y for ; Thu, 15 May 2025 10:42:36 +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 54FAgaWD004046 for ; Thu, 15 May 2025 10:42:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54FAgaKH004044 for bugs@FreeBSD.org; Thu, 15 May 2025 10:42:36 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 286819] Boot panics when KMSAN enabled with Ethernet driver Date: Thu, 15 May 2025 10:42:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hareshx.sankar.raj@intel.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D286819 Bug ID: 286819 Summary: Boot panics when KMSAN enabled with Ethernet driver Product: Base System Version: 14.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: hareshx.sankar.raj@intel.com Boot panics when KMSAN is enabled in the kernel config. Kernel config used is: KERNCONF=3DGENERIC-KMSAN We had tested this in FBSD 14 stable branch and also on FBSD 14.2 release branch. The issue remains the same. Steps to reproduce: git clone https://github.com/freebsd/freebsd-src /usr/src/ git checkout stable/14 echo "Build kernel" cd /usr/src && make buildworld buildkernel -j`sysctl hw.ncpu | sed s'/hw.nc= pu: //'` KERNCONF=3DGENERIC-KMSAN echo "Install kernel" make installworld installkernel -j`sysctl hw.ncpu | sed s'/hw.ncpu: //'` KERNCONF=3DGENERIC-KMSAN echo "Reboot" reboot Kernel build and installation is successful. Boot failed with below panic. panic: MSan: uninitialized variable in 0xffffffff81234e16 cpuid =3D 48 time =3D 1746712489 KDB: stack backtrace: #0 0xffffffff834a2616 at kdb_backtrace+0x166 #1 0xffffffff832ca9bf at vpanic+0x66f #2 0xffffffff832ca34d at panic+0x1dd #3 0xffffffff834b1ed9 at __msan_warning+0x219 #4 0xffffffff81234e16 at em_newitr+0xa66 #5 0xffffffff81275a02 at em_msix_que+0x172 #6 0xffffffff83a48b47 at iflib_fast_intr_rxtx+0xe7 #7 0xffffffff8314bfc4 at intr_event_handle+0x3e4 #8 0xffffffff84f4037b at intr_execute_handlers+0x1bb #9 0xffffffff854a0fe0 at lapic_handle_intr+0x190 #10 0xffffffff84f81d11 at Xapic_isr1+0xe1 #11 0xffffffff84f315f5 at cpu_idle_acpi+0xf5 #12 0xffffffff84f31907 at cpu_idle+0x2d7 #13 0xffffffff8340521a at sched_idletd+0x62a #14 0xffffffff83139496 at fork_exit+0x266 #15 0xffffffff84f81a2e at fork_trampoline+0xe Based on initial analysis, the error is found as below. (kgdb) list *0xffffffff81234e16 0xffffffff81234e16 is in em_newitr (/usr/src/sys/dev/e1000/if_em.c:1700). warning: Source file is more recent than executable. 1695 nextlatency =3D itr_latency_bulk; 1696 else if ((packets < 5) && (bytes > 512)) 1697 nextlatency =3D itr_latency_low; 1698 break; 1699 case itr_latency_low: /* 20k ints/s */ 1700 if (bytes > 10000) { 1701 /* Handle TSO */ 1702 if (bytes_packets > 8000) 1703 nextlatency =3D itr_latency= _bulk; 1704 else if ((packets < 10) || The stack frame associated with the panic is happening in /usr/src/sys/dev/e1000/if_em.c Ethernet driver. --=20 You are receiving this mail because: You are the assignee for the bug.=