Bug 227786 - panic: probe defined without a provider
Summary: panic: probe defined without a provider
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-26 09:26 UTC by Eitan Adler
Modified: 2018-04-27 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eitan Adler freebsd_committer freebsd_triage 2018-04-26 09:26:47 UTC
Unread portion of the kernel message buffer:
[1786] panic: probe defined without a provider
[1786] cpuid = 20
[1786] time = 1523508024
[1786] KDB: stack backtrace:
[1786] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe010fc77360
[1786] vpanic() at vpanic+0x18d/frame 0xfffffe010fc773c0
[1786] doadump() at doadump/frame 0xfffffe010fc77440
[1786] sdt_kld_load() at sdt_kld_load+0x24e/frame 0xfffffe010fc775f0
[1786] linker_load_module() at linker_load_module+0xd43/frame 0xfffffe010fc77900
[1786] kern_kldload() at kern_kldload+0xf1/frame 0xfffffe010fc77950
[1786] sys_kldload() at sys_kldload+0x5b/frame 0xfffffe010fc77980
[1786] amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe010fc77ab0
[1786] fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe010fc77ab0
[1786] --- syscall (304, FreeBSD ELF64, sys_kldload), rip = 0x8002cfd8a, rsp = 0x7fffffff6338, rbp = 0x7fffffff68b0 ---
[1786] KDB: enter: panic

(kgdb) bt
#7  0xffffffff80babf53 in kdb_trap (type=0x3, code=0xffff0ff0, tf=<optimized out>) at /usr/src/sys/kern/subr_kdb.c:697
#8  0xffffffff81024aa8 in trap (frame=0xfffffe010fc77290) at /usr/src/sys/amd64/amd64/trap.c:548
#9  <signal handler called>
#10 kdb_enter (why=0xffffffff8129f663 "panic", msg=<optimized out>) at /usr/src/sys/kern/subr_kdb.c:479
#11 0xffffffff80b66b5a in vpanic (fmt=<optimized out>, ap=0xfffffe010fc77400) at /usr/src/sys/kern/kern_shutdown.c:826
#12 0xffffffff80b66920 in kassert_panic (fmt=0xffffffff83bacce0 "probe defined without a provider") at /usr/src/sys/kern/kern_shutdown.c:723
#13 0xffffffff83bac2de in sdt_create_probe (probe=0xffffffff844d9c50 <sdt_opencrypto_dev_ioctl_error>) at /usr/src/sys/cddl/dev/sdt/sdt.c:156
#14 sdt_kld_load (arg=<optimized out>, lf=0xfffff8003a739200) at /usr/src/sys/cddl/dev/sdt/sdt.c:291
#15 0xffffffff80b36de3 in linker_load_file (filename=<optimized out>, result=<optimized out>) at /usr/src/sys/kern/kern_linker.c:475
#16 linker_load_module (kldname=<optimized out>, modname=0x0, parent=0x0, verinfo=<optimized out>, lfpp=0xfffffe010fc77918) at /usr/src/sys/kern/kern_linker.c:2092
#17 0xffffffff80b38361 in kern_kldload (td=<optimized out>, file=<optimized out>, fileid=0xfffffe010fc77964) at /usr/src/sys/kern/kern_linker.c:1071
#18 0xffffffff80b3848b in sys_kldload (td=0xfffff8004b4cb000, uap=<optimized out>) at /usr/src/sys/kern/kern_linker.c:1097
#19 0xffffffff8102606b in syscallenter (td=0xfffff8004b4cb000) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:134
#20 amd64_syscall (td=0xfffff8004b4cb000, traced=0x0) at /usr/src/sys/amd64/amd64/trap.c:936
#21 <signal handler called>
#22 0x00000008002cfd8a in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffff6338

(kgdb) info  locals
mod =   "\b"
func =   "\317\n\016\177\b\370\377\377"
name =   ""
prov = 0x0
len = <optimized out>
from = <optimized out>
to = <optimized out>

(kgdb) frame
Stack level 13, frame at 0xfffffe010fc77600:
 rip = 0xffffffff83bac2de in sdt_create_probe (/usr/src/sys/cddl/dev/sdt/sdt.c:156); saved rip = 0xffffffff80b36de3
 inlined into frame 14, caller of frame at 0xfffffe010fc77450
 source language c.
 Arglist at unknown address.
 Locals at unknown address, Previous frame's sp is 0xfffffe010fc77450
 Saved registers:
  rbx at 0xfffffe010fc77420, rbp at 0xfffffe010fc77440, r12 at 0xfffffe010fc77428, r14 at 0xfffffe010fc77430, r15 at 0xfffffe010fc77438, rip at 0xfffffe010fc77448
probe = 0xffffffff844d9c50 <sdt_opencrypto_dev_ioctl_error>
mod =   "\b"
func =   "\317\n\016\177\b\370\377\377"
name =   ""
prov = 0x0
len = <optimized out>
from = <optimized out>
to = <optimized out>
Comment 1 Ed Maste freebsd_committer 2018-04-27 00:33:36 UTC
what module was loaded?
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-04-27 05:09:48 UTC
Woops, thought I added that: this happened when loading dcons
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-04-27 05:12:42 UTC
wait, wrong crash.

This happened when I accidentally ran "kldload *" in /boot/kernel.

In particular:
(kgdb) p kldname
$2 = 0xfffff80057945400 "cryptodev.ko"
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2018-04-27 05:13:36 UTC
(kgdb) up
#17 0xffffffff80b38361 in kern_kldload (td=<optimized out>,
    file=<optimized out>, fileid=0xfffffe010fc77964)
    at /usr/src/sys/kern/kern_linker.c:1071
1071            error = linker_load_module(kldname, modname, NULL, NULL, &lf);
(kgdb) p kldname
$2 = 0xfffff80057945400 "cryptodev.ko"