NetBSD Problem Report #60779

From www@netbsd.org  Wed Sep 23 20:41:04 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3E11F1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 23 Sep 2026 20:41:04 +0000 (UTC)
Message-Id: <20260923204103.0F45F1A923C@mollari.NetBSD.org>
Date: Wed, 23 Sep 2026 20:41:03 +0000 (UTC)
From: als@thangorodrim.ch
Reply-To: als@thangorodrim.ch
To: gnats-bugs@NetBSD.org
Subject: Kernel complains about  unexpected mips insn on boot when full diags are turned on
X-Send-Pr-Version: www-1.0
X-From4GNATS: "als@thangorodrim.ch via gnats" <gnats-admin@NetBSD.org>

>Number:         60779
>Category:       port-evbmips
>Synopsis:       Kernel complains about  unexpected mips insn on boot when full diags are turned on
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbmips-maintainer
>State:          pending-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 23 20:45:00 +0000 2026
>Closed-Date:    
>Last-Modified:  Fri Sep 25 06:31:36 +0000 2026
>Originator:     Alexander Schreiber
>Release:        NetBSD 11.0
>Organization:
Not much
>Environment:
NetBSD erlite3 11.0 NetBSD 11.0 (ERLITE3) #3: Sat Sep  5 17:07:05 UTC 2026  root@erlite3:/usr/obj/sys/arch/evbmips/compile/ERLITE3 evbmips

>Description:
I grabbed the HEAD/20260919024529Z src snapshot from https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD
and configured it for multiprocessor, also turned on all debugging/diag options I could find that
would actually build.

Upon boot, I got a massive spew (easily 100+ lines) of:

[   1.0000000] mips_fixup_addr: unexpected mips insn 0x67bdffe0 at 0xffffffff813c0118
[   1.0000000] mips_fixup_addr: unexpected mips insn 0x67bdfff0 at 0xffffffff813c05f8


Diff to the shipped OCTEON config:
----------------------- cut here -----------------------
--- OCTEON      2026-07-07 08:14:15.000000000 +0000
+++ ERLITE3     2026-09-21 20:42:03.269928587 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: OCTEON,v 1.19 2026/07/07 08:14:15 kbowling Exp $
+#      $NetBSD: OCTEON,v 1.14 2024/01/29 18:27:11 christos Exp $

 include        "arch/mips/conf/std.octeon"
 include        "arch/evbmips/conf/files.octeon"
@@ -12,6 +12,31 @@
 options        FDT
 options        FDT_DEFAULT_STDOUT_PATH="\"uart0:115200n8\""

+
+
+# MP
+options        MULTIPROCESSOR
+
+# Kernel Undefined Behavior Sanitizer (kUBSan).
+options        KUBSAN                  # mandatory
+#options        UBSAN_ALWAYS_FATAL      # optional: panic on all kUBSan reports
+
+# Kernel Code Coverage Driver.
+makeoptions    KCOV=1
+options        KCOV
+
+# Heartbeat checks
+options         HEARTBEAT
+options         HEARTBEAT_MAX_PERIOD_DEFAULT=15
+
+
+
+
+
+
+# config
+options                INCLUDE_CONFIG_FILE
+
 # Options for necessary to use MD
 #options       MEMORY_DISK_HOOKS
 #options       MEMORY_DISK_IS_ROOT     # force root on memory disk
@@ -34,10 +59,10 @@

 # Debugging options
 options        DIAGNOSTIC      # extra kernel sanity checking
-#options       DEBUG           # extra kernel debugging support
+options        DEBUG           # extra kernel debugging support
+options         LOCKDEBUG       # expensive locking checks/support
 #options       USERCONF        # userconf(4) support
-#options       SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
-#options       PMAP_DEBUG
+options        SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
 options        DDB             # kernel dynamic debugger
 options        DDB_HISTORY_SIZE=100 # enable history editing in DDB
 makeoptions    DEBUG="-g"      # compile full symbol table

----------------------- cut here -----------------------
>How-To-Repeat:
Grab HEAD/20260919024529Z src snapshot from https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD, configure it for multiprocessor, also turn on all debugging/diag options available.

Machine in question: Ubiquiti EdgeRouter Lite (Erlite3).


>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->pending-pullups
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Fri, 25 Sep 2026 06:31:36 +0000
State-Changed-Why:
[pullup-11 #498] PR//60779: Kernel complains about unexpected mips insn on boot...


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.