Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2021 14:58:35 -0800
From:      Mark Millard via freebsd-current <freebsd-current@freebsd.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   On amd64 main-n251456-22c4ab6cb015-dirty (Dec.-7): /boot/kernel/ng_ubt.ko is getting "symbol sysctl___net_bluetooth undefined"
Message-ID:  <EBCB4BC4-EA53-413B-97BD-50CF31309D00@yahoo.com>
References:  <EBCB4BC4-EA53-413B-97BD-50CF31309D00.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Back when I upgraded the ThreadRipper 1950X amd64 system to (line split =
for readability):

# uname -apKU
FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #25 =
main-n251456-22c4ab6cb015-dirty:
Tue Dec  7 19:38:53 PST 2021   =20
=
root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6=
4.aarch64/sys/GENERIC-NODBG-CA72=20
arm64 aarch64 1400043 1400043

I started getting notices like:

Dec  7 18:38:57 amd64_ZFS kernel: link_elf_obj: symbol =
sysctl___net_bluetooth undefined
Dec  7 18:38:57 amd64_ZFS kernel: linker_load_file: =
/boot/kernel/ng_ubt.ko - unsupported file type

(Not that I use the bluetooth on the system.)

Is this expected for a kernel of that vintage?

For reference:

# more /usr/main-src/sys/amd64/conf/GENERIC-NODBG
#
# GENERIC -- Custom configuration for the amd64/amd64
#

include "GENERIC"

ident   GENERIC-NODBG

makeoptions     DEBUG=3D-g                # Build kernel with gdb(1) =
debug symbols
makeoptions     WITH_CTF=3D1              # Run ctfconvert(1) for DTrace =
support

options         NUMA
options         MAXMEMDOM=3D2

#options        ALT_BREAK_TO_DEBUGGER

options         KDB                     # Enable kernel debugger support

# For minimum debugger support (stable branch) use:
options         KDB_TRACE               # Print a stack trace for a =
panic
options         DDB                     # Enable the kernel debugger

# Extra stuff:
#options        VERBOSE_SYSINIT=3D0       # Enable verbose sysinit =
messages
#options        BOOTVERBOSE=3D1
#options        BOOTHOWTO=3DRB_VERBOSE
#options        KTR
#options        KTR_MASK=3DKTR_TRAP
##options       KTR_CPUMASK=3D0xF
#options        KTR_VERBOSE
#options        ACPI_DEBUG

# Disable any extra checking for. . .
nooptions       DEADLKRES               # Would enable the deadlock =
resolver
nooptions       INVARIANTS              # Would enable calls of extra =
sanity checking
nooptions       INVARIANT_SUPPORT       # Would enable extra sanity =
checks of internal structures, required by INVARIANTS
nooptions       WITNESS                 # Would enable checks to detect =
deadlocks and cycles
nooptions       WITNESS_SKIPSPIN        # Would enable running witness =
on spinlocks for speed
nooptions       DIAGNOSTIC
nooptions       MALLOC_DEBUG_MAXZONES

# Kernel Sanitizers
nooptions       COVERAGE                # Would enable generic kernel =
coverage. Used by KCOV
nooptions       KCOV                    # Would enable Kernel Coverage =
Sanitizer
# Warning: KUBSAN can result in a kernel too large for loader to load
nooptions       KUBSAN                  # Would enable Kernel Undefined =
Behavior Sanitizer

device  iwm
device  iwmfw


sysctl___net_bluetooth seems to be from one or more of:

# grep -r "net_bluetooth[^_]" /usr/main-src/sys/ | more
=
/usr/main-src/sys/netgraph/bluetooth/common/ng_bluetooth.c:SYSCTL_INT(_net=
_bluetooth, OID_AUTO, version,
=
/usr/main-src/sys/netgraph/bluetooth/common/ng_bluetooth.c:SYSCTL_NODE(_ne=
t_bluetooth, OID_AUTO, hci, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
=
/usr/main-src/sys/netgraph/bluetooth/common/ng_bluetooth.c:SYSCTL_NODE(_ne=
t_bluetooth, OID_AUTO, l2cap, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
=
/usr/main-src/sys/netgraph/bluetooth/common/ng_bluetooth.c:SYSCTL_NODE(_ne=
t_bluetooth, OID_AUTO, rfcomm, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
=
/usr/main-src/sys/netgraph/bluetooth/common/ng_bluetooth.c:SYSCTL_NODE(_ne=
t_bluetooth, OID_AUTO, sco, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,=20
=
/usr/main-src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c:SYSCTL_INT(_net_=
bluetooth, OID_AUTO, usb_isoc_enable, CTLFLAG_RWTUN | CTLFLAG_MPSAFE,
=
/usr/main-src/sys/netgraph/bluetooth/include/ng_bluetooth.h:SYSCTL_DECL(_n=
et_bluetooth);


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EBCB4BC4-EA53-413B-97BD-50CF31309D00>