assert "suser(curproc) == NUM" failed in dt_dev.c

1 view
Skip to first unread message

syzbot

unread,
Dec 20, 2021, 10:21:32 AM12/20/21
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5387241f8527 When removing the last value from an attribut..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=16bb8295b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=90e094f33d329fb2c3ab

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+90e094...@syzkaller.appspotmail.com

panic: kernel diagnostic assertion "suser(curproc) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/dev/dt/dt_dev.c", line 431
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
489620 10919 0 0x14000 0x200 1 reaper
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161
dt_ioctl_record_stop(ffff800000b8d780) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431
dtclose(11e6e,1,2000,ffff8000ffff42a0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff42a0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204
spec_close(ffff80002128eb50) at spec_close+0x363 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd8064eff2b0,1,fffffd807f7d86c0,ffff8000ffff42a0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806811a1e8,ffff8000ffff42a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806811a1e8,ffff8000ffff42a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624
fdrop(fffffd806811a1e8,ffff8000ffff42a0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806811a1e8,ffff8000ffff42a0) at closef+0x11c sys/kern/kern_descrip.c:1263
fdfree(ffff8000ffff42a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195
exit1(ffff8000ffff42a0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202
sys_exit(ffff8000ffff42a0,ffff80002128ede0,ffff80002128ee40) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff80002128eeb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002128eeb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
end trace frame: 0xffff80002128ef30, count: 0
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: kernel diagnostic assertion "suser(curproc) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/dev/dt/dt_dev.c", line 431
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161
dt_ioctl_record_stop(ffff800000b8d780) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431
dtclose(11e6e,1,2000,ffff8000ffff42a0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff42a0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204
spec_close(ffff80002128eb50) at spec_close+0x363 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd8064eff2b0,1,fffffd807f7d86c0,ffff8000ffff42a0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806811a1e8,ffff8000ffff42a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806811a1e8,ffff8000ffff42a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624
fdrop(fffffd806811a1e8,ffff8000ffff42a0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806811a1e8,ffff8000ffff42a0) at closef+0x11c sys/kern/kern_descrip.c:1263
fdfree(ffff8000ffff42a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195
exit1(ffff8000ffff42a0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202
sys_exit(ffff8000ffff42a0,ffff80002128ede0,ffff80002128ee40) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff80002128eeb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002128eeb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffbbc40, count: -15
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff80002128e960
rbx 0xffffffff82830bff cpu_info_full_primary+0x2bff
rdx 0
rcx 0
rax 0xffff8000ffff42a0
r8 0x101010101010101
r9 0x8080808080808080
r10 0xdd56f9c81fcfe8cd
r11 0x372967a4171c8e9b
r12 0xffffffff82830a00 cpu_info_full_primary+0x2a00
r13 0
r14 0
r15 0x1
rip 0xffffffff8146ad58 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff80002128e950
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.0) pid=99961 stat=onproc
flags process=1018<EXITING,SUGID,SINGLEEXIT> proc=2000<WEXIT>
pri=32, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff47e0,0xffffffff829f1908
process=0xffff8000ffff0c90 user=0xffff800021289000, vmspace=0xfffffd806ee6d008
estcpu=36, cpticks=3, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
29959 124696 0 0 3 0x14200 bored sosplice
37600 220387 0 0 3 0x14280 nfsidl nfsio
75822 37910 0 0 3 0x14280 nfsidl nfsio
86931 110941 0 0 3 0x14280 nfsidl nfsio
19053 177336 0 0 3 0x14280 nfsidl nfsio
95901 172434 0 0 3 0x14280 nfsidl nfsio
53130 163615 0 0 3 0x14280 nfsidl nfsio
24979 324012 0 0 3 0x14280 nfsidl nfsio
54246 444292 0 0 3 0x14280 nfsidl nfsio
9517 28783 0 0 3 0x14280 nfsidl nfsio
95944 520501 0 0 3 0x14280 nfsidl nfsio
80842 27813 0 0 3 0x14280 nfsidl nfsio
28109 180838 0 0 3 0x14280 nfsidl nfsio
5034 48858 0 0 3 0x14280 nfsidl nfsio
32043 233129 0 0 3 0x14280 nfsidl nfsio
24696 133781 0 0 3 0x14280 nfsidl nfsio
68223 318236 0 0 3 0x14280 nfsidl nfsio
93641 32004 0 0 3 0x14280 nfsidl nfsio
50891 181806 0 0 3 0x14280 nfsidl nfsio
42543 364904 0 0 3 0x14280 nfsidl nfsio
21269 324102 0 0 3 0x14280 nfsidl nfsio
73830 340486 24620 0 3 0x82 nanoslp syz-executor.1
75652 54564 24620 0 3 0x82 nanoslp syz-executor.0
24620 279049 5575 0 3 0x82 thrsleep syz-fuzzer
24620 457231 5575 0 3 0x4000082 thrsleep syz-fuzzer
24620 252210 5575 0 3 0x4000082 thrsleep syz-fuzzer
24620 319280 5575 0 3 0x4000082 thrsleep syz-fuzzer
24620 388203 5575 0 3 0x4000082 kqread syz-fuzzer
24620 440345 5575 0 3 0x4000082 thrsleep syz-fuzzer
24620 55713 5575 0 3 0x4000082 thrsleep syz-fuzzer
24620 451603 5575 0 3 0x4000082 thrsleep syz-fuzzer
5575 76270 50252 0 3 0x10008a sigsusp ksh
50252 225872 77378 0 3 0x9a poll sshd
53741 389127 1 0 3 0x100083 ttyin getty
77378 12847 1 0 3 0x88 poll sshd
26023 368959 45608 74 3 0x100092 bpf pflogd
45608 136152 1 0 3 0x80 netio pflogd
13976 381432 74861 73 3 0x100090 kqread syslogd
74861 444577 1 0 3 0x100082 netio syslogd
71017 282653 1 0 3 0x100080 kqread resolvd
26098 189353 29742 77 3 0x100092 kqread dhcpleased
61140 468445 29742 77 3 0x100092 kqread dhcpleased
29742 265220 1 0 3 0x80 kqread dhcpleased
99818 136776 0 0 3 0x14200 bored smr
4995 270260 0 0 2 0x14200 zerothread
44388 171191 0 0 3 0x14200 aiodoned aiodoned
82870 517992 0 0 3 0x14200 syncer update
11656 226034 0 0 3 0x14200 cleaner cleaner
10919 489620 0 0 7 0x14200 reaper
43594 92564 0 0 3 0x14200 pgdaemon pagedaemon
36205 7434 0 0 3 0x14200 bored viomb
60578 218220 0 0 3 0x40014200 acpi0 acpi0
55780 184844 0 0 3 0x40014200 idle1
48197 462730 0 0 2 0x14200 softnet
99792 154364 0 0 3 0x14200 bored systqmp
38026 478408 0 0 3 0x14200 bored systq
33917 107234 0 0 3 0x40014200 bored softclock
64107 204710 0 0 3 0x40014200 idle0
1 2383 0 0 3 0x80082 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
CPU 1:
exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff829e55a0)
#0 witness_lock+0x44d
#1 mtx_enter_try+0x100
#2 mtx_enter+0x4b sys/kern/kern_lock.c:266
#3 uvm_pmr_freepageq+0xcc sys/uvm/uvm_pmemrange.c:1333
#4 amap_wipeout+0x1ff sys/uvm/uvm_amap.c:523
#5 uvm_unmap_detach+0x7d sys/uvm/uvm_map.c:1599
#6 uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789
#7 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
#8 reaper+0x18b sys/kern/kern_exit.c:462
#9 proc_trampoline+0x1c
Process 10919 (reaper) thread 0xffff800021149a40 (489620)
exclusive kernel: protection fault trap, code=0
Faulted in DDB; continuing...
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10129 6471K 8047K 78643K 18410 0
pcb 13 11K 13K 78643K 137 0
rtable 87 3K 4K 78643K 216 0
ifaddr 44 10K 10K 78643K 49 0
counters 44 34K 34K 78643K 44 0
ioctlops 0 0K 4K 78643K 1588 0
iov 0 0K 12K 78643K 32 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1436 90K 90K 78643K 6429 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 8 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 46 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 5 13K 25K 78643K 1624 0
proc 70 87K 111K 78643K 368 0
subproc 26 1K 1K 78643K 26 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 130 0
in_multi 29 1K 2K 78643K 59 0
ether_multi 1 0K 0K 78643K 7 0
mrt 1 0K 0K 78643K 7 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 43 201K 201K 78643K 43 0
exec 0 0K 2K 78643K 1581 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 222 31K 32K 78643K 23405 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 30 0
NDP 6 0K 0K 78643K 11 0
temp 81 4193K 4257K 78643K 10107 0
kqueue 10 14K 18K 78643K 38 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 30 0 27 1 0 1 1 0 8 0
rtentry 112 55 0 22 2 0 2 2 0 8 0
unpcb 128 4431 0 4412 13 12 1 7 0 8 0
syncache 296 4 0 4 1 1 0 1 0 8 0
tcpcb 736 2200 0 2191 31 29 2 11 0 8 0
arp 120 6 0 0 1 0 1 1 0 8 0
inpcb 304 3288 0 3281 26 25 1 9 0 8 0
rttmr 72 3 0 3 1 1 0 1 0 8 0
nd6 48 9 0 5 1 0 1 1 0 8 0
kcovpl 48 2 0 0 1 0 1 1 0 8 0
pffrag 232 3 0 3 1 1 0 1 0 482 0
pffrnode 88 3 0 3 1 1 0 1 0 8 0
pffrent 40 136 0 136 1 1 0 1 0 8 0
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 21 0 16 1 0 1 1 0 8 0
pfstkey 112 21 0 16 1 0 1 1 0 8 0
pfstate 320 21 0 16 2 0 2 2 0 8 0
pfrule 1360 24 0 19 2 1 1 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 243 0 81 13 2 11 12 0 8 0
art_table 32 244 0 81 2 0 2 2 0 8 0
art_node 16 54 0 26 1 0 1 1 0 8 0
semapl 112 44 0 34 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 4842 0 3435 89 0 89 89 0 8 0
ffsino 272 4842 0 3435 95 0 95 95 0 8 0
nchpl 144 7875 0 6253 61 0 61 61 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 224 5926 0 0 349 0 349 349 0 8 0
namei 1024 24894 0 24894 1 0 1 1 0 8 1
percpumem 16 34 0 0 1 0 1 1 0 8 0
scxspl 216 18154 0 18154 10 9 1 8 0 8 1
plimitpl 152 99 0 90 1 0 1 1 0 8 0
sigapl 424 1895 0 1842 7 0 7 7 0 8 1
futexpl 64 13787 0 13787 1 0 1 1 0 8 1
knotepl 112 50 0 0 2 0 2 2 0 8 0
kqueuepl 216 223 0 217 4 3 1 4 0 8 0
pipepl 336 305 0 295 10 9 1 6 0 8 0
fdescpl 496 1860 0 1842 3 0 3 3 0 8 0
filepl 152 17795 0 17683 29 22 7 14 0 8 2
lockfpl 104 171 0 169 1 0 1 1 0 8 0
lockfspl 48 86 0 84 1 0 1 1 0 8 0
sessionpl 144 18 0 7 1 0 1 1 0 8 0
pgrppl 48 21 0 10 1 0 1 1 0 8 0
ucredpl 96 2463 0 2448 1 0 1 1 0 8 0
zombiepl 144 1843 0 1841 1 0 1 1 0 8 0
processpl 1064 1895 0 1841 4 0 4 4 0 8 0
procpl 672 5514 0 5452 11 5 6 7 0 8 0
sosppl 168 2 0 2 1 1 0 1 0 8 0
sockpl 480 7749 0 7720 140 136 4 29 0 8 0
mcl64k 65536 8 0 0 1 0 1 1 0 8 0
mcl16k 16384 4 0 0 1 0 1 1 0 8 0
mcl12k 12288 10 0 0 1 0 1 1 0 8 0
mcl9k 9216 4 0 0 1 0 1 1 0 8 0
mcl8k 8192 8 0 0 1 0 1 1 0 8 0
mcl4k 4096 17 0 0 3 0 3 3 0 8 0
mcl2k2 2112 2 0 0 1 0 1 1 0 8 0
mcl2k 2048 151 0 0 17 0 17 17 0 8 0
mtagpl 96 56 0 0 2 0 2 2 0 8 0
mbufpl 256 473 0 0 29 0 29 29 0 8 0
bufpl 288 5879 0 140 410 0 410 410 0 8 0
anonpl 24 503788 0 487915 107 8 99 100 0 186 0
amapchunkpl 152 55457 0 54830 31 4 27 27 0 158 2
amappl16 200 3653 0 3163 30 4 26 27 0 8 0
amappl15 192 77 0 71 1 0 1 1 0 8 0
amappl14 184 1 0 1 1 1 0 1 0 8 0
amappl13 176 29 0 28 1 0 1 1 0 8 0
amappl12 168 807 0 799 1 0 1 1 0 8 0
amappl11 160 887 0 872 1 0 1 1 0 8 0
amappl10 152 23 0 19 1 0 1 1 0 8 0
amappl9 144 488 0 482 1 0 1 1 0 8 0
amappl8 136 370 0 328 2 0 2 2 0 8 0
amappl7 128 69 0 60 1 0 1 1 0 8 0
amappl6 120 147 0 129 1 0 1 1 0 8 0
amappl5 112 1268 0 1254 1 0 1 1 0 8 0
amappl4 104 2253 0 2226 1 0 1 1 0 8 0
amappl3 96 973 0 954 1 0 1 1 0 8 0
amappl2 88 372 0 334 2 1 1 2 0 8 0
amappl1 80 38247 0 37799 14 4 10 13 0 8 0
amappl 88 22985 0 22823 5 0 5 5 0 92 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma128 128 253 0 253 1 1 0 1 0 8 0
dma64 64 6 0 6 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 72 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 1860 0 1842 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1860 0 1842 1 0 1 1 0 8 0
vmmpekpl 168 19725 0 19701 2 0 2 2 0 8 0
vmmpepl 168 170963 0 169196 100 19 81 96 0 357 1
vmsppl 368 1859 0 1841 2 0 2 2 0 8 0
rwobjpl 56 49751 0 42553 103 1 102 103 0 8 0
pdppl 4096 3728 0 3682 62 16 46 50 0 8 0
pvpl 32 898351 0 879011 181 17 164 166 0 265 5
pmappl 248 1859 0 1841 2 0 2 2 0 8 0
extentpl 40 57 0 38 1 0 1 1 0 8 0
phpool 112 774 0 59 21 0 21 21 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161
dt_ioctl_record_stop(ffff800000b8d780) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431
dtclose(11e6e,1,2000,ffff8000ffff42a0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff42a0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204
spec_close(ffff80002128eb50) at spec_close+0x363 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd8064eff2b0,1,fffffd807f7d86c0,ffff8000ffff42a0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806811a1e8,ffff8000ffff42a0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806811a1e8,ffff8000ffff42a0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624
fdrop(fffffd806811a1e8,ffff8000ffff42a0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806811a1e8,ffff8000ffff42a0) at closef+0x11c sys/kern/kern_descrip.c:1263
fdfree(ffff8000ffff42a0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195
exit1(ffff8000ffff42a0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202
sys_exit(ffff8000ffff42a0,ffff80002128ede0,ffff80002128ee40) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff80002128eeb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002128eeb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffbbc40, count: -15
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff8290f450) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff8290f450) at __mp_lock+0x122 sys/kern/kern_lock.c:147
uvm_unmap_detach(ffff800021185a20,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615
uvm_map_teardown(fffffd806ee6dcf8) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789
uvmspace_free(fffffd806ee6dcf8) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff800021149a40) at reaper+0x18b sys/kern/kern_exit.c:462
end trace frame: 0x0, count: 7
ddb{1}> trace
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff8290f450) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff8290f450) at __mp_lock+0x122 sys/kern/kern_lock.c:147
uvm_unmap_detach(ffff800021185a20,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615
uvm_map_teardown(fffffd806ee6dcf8) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789
uvmspace_free(fffffd806ee6dcf8) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff800021149a40) at reaper+0x18b sys/kern/kern_exit.c:462
end trace frame: 0x0, count: -8


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 20, 2021, 10:38:35 AM12/20/21
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 5387241f8527 When removing the last value from an attribut..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=17eaf693b00000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=110e7271b00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=105df80db00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+90e094...@syzkaller.appspotmail.com

login: panic: kernel diagnostic assertion "suser(curproc) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/dev/dt/dt_dev.c", line 431
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 sys/kern/subr_prf.c:202
__assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 sys/kern/subr_prf.c:161
dt_ioctl_record_stop(ffff800000b26800) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 sys/dev/dt/dt_dev.c:431
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] sys/dev/dt/dt_dev.c:204
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 sys/dev/dt/dt_dev.c:204
spec_close(ffff8000211b29e0) at spec_close+0x363 sys/kern/spec_vnops.c:572 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806d5c1310,1,fffffd807f7d8780,ffff8000ffff67f0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] sys/kern/vfs_vnops.c:624
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 sys/kern/vfs_vnops.c:624
fdrop(fffffd806e588308,ffff8000ffff67f0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 sys/kern/kern_descrip.c:1279
closef(fffffd806e588308,ffff8000ffff67f0) at closef+0x11c sys/kern/kern_descrip.c:1263 sys/kern/kern_descrip.c:1263
fdfree(ffff8000ffff67f0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 sys/kern/kern_descrip.c:1195
exit1(ffff8000ffff67f0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys/kern/kern_exit.c:202
sys_exit(ffff8000ffff67f0,ffff8000211b2c70,ffff8000211b2cd0) at sys_exit+0x16 sys/kern/kern_exit.c:95 sys/kern/kern_exit.c:95
syscall(ffff8000211b2d40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211b2d40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211b2d40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] sys/arch/amd64/amd64/trap.c:585
syscall(ffff8000211b2d40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 sys/arch/amd64/amd64/trap.c:585
end trace frame: 0xffff8000211b2dc0, count: 0
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: kernel diagnostic assertion "suser(curproc) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/dev/dt/dt_dev.c", line 431
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 sys/kern/subr_prf.c:202
__assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 sys/kern/subr_prf.c:161
dt_ioctl_record_stop(ffff800000b26800) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 sys/dev/dt/dt_dev.c:431
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] sys/dev/dt/dt_dev.c:204
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 sys/dev/dt/dt_dev.c:204
spec_close(ffff8000211b29e0) at spec_close+0x363 sys/kern/spec_vnops.c:572 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806d5c1310,1,fffffd807f7d8780,ffff8000ffff67f0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] sys/kern/vfs_vnops.c:624
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 sys/kern/vfs_vnops.c:624
fdrop(fffffd806e588308,ffff8000ffff67f0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 sys/kern/kern_descrip.c:1279
closef(fffffd806e588308,ffff8000ffff67f0) at closef+0x11c sys/kern/kern_descrip.c:1263 sys/kern/kern_descrip.c:1263
fdfree(ffff8000ffff67f0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 sys/kern/kern_descrip.c:1195
exit1(ffff8000ffff67f0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys/kern/kern_exit.c:202
sys_exit(ffff8000ffff67f0,ffff8000211b2c70,ffff8000211b2cd0) at sys_exit+0x16 sys/kern/kern_exit.c:95 sys/kern/kern_exit.c:95
syscall(ffff8000211b2d40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211b2d40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211b2d40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] sys/arch/amd64/amd64/trap.c:585
syscall(ffff8000211b2d40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffeb930, count: -15
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff8000211b27f0
rbx 0xffffffff82830bff cpu_info_full_primary+0x2bff
rdx 0x3fd
rcx 0
rax 0x8b
r8 0x101010101010101
r9 0x8080808080808080
r10 0xccf1e16c966bd1cd
r11 0x23601ab029231ca7
r12 0xffffffff82830a00 cpu_info_full_primary+0x2a00
r13 0
r14 0
r15 0x1
rip 0xffffffff8146ad58 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000211b27e0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor9897) pid=157436 stat=onproc
flags process=1a<EXEC,EXITING,SUGID> proc=2000<WEXIT>
pri=17, usrpri=55, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff62b0,0xffffffff829f1908
process=0xffff8000211f3618 user=0xffff8000211ad000, vmspace=0xfffffd806eed3178
estcpu=5, cpticks=2, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
87973 141751 45479 0 3 0x10008a sigsusp ksh
45479 277777 13895 0 3 0x9a poll sshd
71442 330868 1 0 3 0x100083 ttyin getty
13895 176448 1 0 3 0x88 poll sshd
62105 195643 34693 74 3 0x100092 bpf pflogd
34693 118871 1 0 3 0x80 netio pflogd
80520 504486 54271 73 3 0x100090 kqread syslogd
54271 401011 1 0 3 0x100082 netio syslogd
54279 62723 1 0 3 0x100080 kqread resolvd
72559 29178 95769 77 3 0x100092 kqread dhcpleased
66315 107940 95769 77 3 0x100092 kqread dhcpleased
95769 293728 1 0 3 0x80 kqread dhcpleased
30201 424764 0 0 3 0x14200 bored smr
91341 54397 0 0 3 0x14200 pgzero zerothread
37736 244191 0 0 3 0x14200 aiodoned aiodoned
73117 477818 0 0 3 0x14200 syncer update
34076 86892 0 0 3 0x14200 cleaner cleaner
40759 455181 0 0 3 0x14200 reaper reaper
55272 345248 0 0 3 0x14200 pgdaemon pagedaemon
41516 4401 0 0 3 0x14200 bored viomb
73517 250229 0 0 3 0x40014200 acpi0 acpi0
10205 69182 0 0 7 0x40014200 idle1
80017 164126 0 0 3 0x14200 bored softnet
12040 439926 0 0 3 0x14200 bored systqmp
68155 497199 0 0 3 0x14200 bored systq
44593 19181 0 0 3 0x40014200 bored softclock
3165 62871 0 0 3 0x40014200 idle0
1 253319 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10119 6464K 6464K 78643K 11209 0
pcb 13 8K 8K 78643K 13 0
rtable 62 2K 2K 78643K 112 0
ifaddr 29 8K 8K 78643K 30 0
counters 40 33K 33K 78643K 40 0
ioctlops 0 0K 4K 78643K 1479 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1182 74K 74K 78643K 1187 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 1 0K 0K 78643K 1 0
proc 68 87K 87K 78643K 283 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 11 0K 0K 78643K 11 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 25 122K 122K 78643K 25 0
exec 0 0K 2K 78643K 352 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 83 3K 5K 78643K 1708 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 4 0K 0K 78643K 4 0
temp 24 4182K 4245K 78643K 2963 0
kqueue 9 12K 12K 78643K 9 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 17 0 14 1 0 1 1 0 8 0
rtentry 112 23 0 1 1 0 1 1 0 8 0
unpcb 128 37 0 22 1 0 1 1 0 8 0
syncache 296 5 0 5 1 0 1 1 0 8 1
tcpcb 736 8 0 5 1 0 1 1 0 8 0
arp 120 2 0 0 1 0 1 1 0 8 0
inpcb 304 32 0 26 1 0 1 1 0 8 0
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 8 0 0 1 0 1 1 0 8 0
pfstkey 112 8 0 0 1 0 1 1 0 8 0
pfstate 320 8 0 0 1 0 1 1 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 96 0 0 6 0 6 6 0 8 0
art_table 32 97 0 0 1 0 1 1 0 8 0
art_node 16 22 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1411 0 24 87 0 87 87 0 8 0
ffsino 272 1411 0 24 93 0 93 93 0 8 0
nchpl 144 1584 0 40 58 0 58 58 0 8 0
uvmvnodes 80 1422 0 0 30 0 30 30 0 8 0
vnodes 224 1422 0 0 84 0 84 84 0 8 0
namei 1024 4151 0 4151 1 0 1 1 0 8 1
percpumem 16 32 0 0 1 0 1 1 0 8 0
scxspl 216 3495 0 3495 2 1 1 2 0 8 1
plimitpl 152 16 0 9 1 0 1 1 0 8 0
sigapl 424 255 0 226 4 0 4 4 0 8 0
knotepl 112 25 0 0 1 0 1 1 0 8 0
kqueuepl 216 5 0 0 1 0 1 1 0 8 0
pipepl 336 69 0 66 1 0 1 1 0 8 0
fdescpl 496 241 0 226 3 0 3 3 0 8 0
filepl 152 1087 0 1028 3 0 3 3 0 8 0
lockfpl 104 6 0 4 1 0 1 1 0 8 0
lockfspl 48 4 0 2 1 0 1 1 0 8 0
sessionpl 144 18 0 9 1 0 1 1 0 8 0
pgrppl 48 18 0 9 1 0 1 1 0 8 0
ucredpl 96 71 0 58 1 0 1 1 0 8 0
zombiepl 144 227 0 226 1 0 1 1 0 8 0
processpl 1064 255 0 226 3 0 3 3 0 8 0
procpl 672 255 0 226 3 0 3 3 0 8 0
sockpl 480 86 0 62 4 0 4 4 0 8 0
mcl8k 8192 6 0 0 1 0 1 1 0 8 0
mcl4k 4096 5 0 0 1 0 1 1 0 8 0
mcl2k 2048 57 0 0 8 0 8 8 0 8 0
mtagpl 96 1 0 0 1 0 1 1 0 8 0
mbufpl 256 106 0 0 7 0 7 7 0 8 0
bufpl 288 1976 0 87 135 0 135 135 0 8 0
anonpl 24 35189 0 32866 17 2 15 17 0 186 1
amapchunkpl 152 3069 0 2925 7 0 7 7 0 158 0
amappl16 200 30 0 29 2 1 1 1 0 8 0
amappl15 192 66 0 62 1 0 1 1 0 8 0
amappl13 176 18 0 17 1 0 1 1 0 8 0
amappl12 168 36 0 33 1 0 1 1 0 8 0
amappl11 160 48 0 34 1 0 1 1 0 8 0
amappl10 152 2 0 0 1 0 1 1 0 8 0
amappl9 144 447 0 445 1 0 1 1 0 8 0
amappl8 136 268 0 268 1 0 1 1 0 8 1
amappl7 128 50 0 47 1 0 1 1 0 8 0
amappl6 120 103 0 93 1 0 1 1 0 8 0
amappl5 112 162 0 149 1 0 1 1 0 8 0
amappl4 104 534 0 513 1 0 1 1 0 8 0
amappl3 96 141 0 125 1 0 1 1 0 8 0
amappl2 88 316 0 283 1 0 1 1 0 8 0
amappl1 80 7789 0 7409 9 0 9 9 0 8 0
amappl 88 1461 0 1396 2 0 2 2 0 92 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma128 128 253 0 253 1 1 0 1 0 8 0
dma64 64 6 0 6 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 72 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 241 0 226 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 241 0 226 1 0 1 1 0 8 0
vmmpekpl 168 5977 0 5960 1 0 1 1 0 8 0
vmmpepl 168 23181 0 22335 42 0 42 42 0 357 3
vmsppl 368 240 0 226 2 0 2 2 0 8 0
rwobjpl 56 8839 0 6861 29 0 29 29 0 8 0
pdppl 4096 490 0 452 48 10 38 44 0 8 0
pvpl 32 113681 0 109531 37 0 37 37 0 265 2
pmappl 248 240 0 226 2 0 2 2 0 8 0
extentpl 40 57 0 38 1 0 1 1 0 8 0
phpool 112 400 0 13 12 0 12 12 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 sys/kern/subr_prf.c:202
__assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 sys/kern/subr_prf.c:161
dt_ioctl_record_stop(ffff800000b26800) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 sys/dev/dt/dt_dev.c:431
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline]
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] sys/dev/dt/dt_dev.c:204
dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 sys/dev/dt/dt_dev.c:204
spec_close(ffff8000211b29e0) at spec_close+0x363 sys/kern/spec_vnops.c:572 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806d5c1310,1,fffffd807f7d8780,ffff8000ffff67f0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] sys/kern/vfs_vnops.c:624
vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 sys/kern/vfs_vnops.c:624
fdrop(fffffd806e588308,ffff8000ffff67f0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 sys/kern/kern_descrip.c:1279
closef(fffffd806e588308,ffff8000ffff67f0) at closef+0x11c sys/kern/kern_descrip.c:1263 sys/kern/kern_descrip.c:1263
fdfree(ffff8000ffff67f0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 sys/kern/kern_descrip.c:1195
exit1(ffff8000ffff67f0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys/kern/kern_exit.c:202
sys_exit(ffff8000ffff67f0,ffff8000211b2c70,ffff8000211b2cd0) at sys_exit+0x16 sys/kern/kern_exit.c:95 sys/kern/kern_exit.c:95
syscall(ffff8000211b2d40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211b2d40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211b2d40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] sys/arch/amd64/amd64/trap.c:585
syscall(ffff8000211b2d40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffeb930, count: -15
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 sys/kern/kern_sched.c:178
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 sys/kern/kern_sched.c:178
end trace frame: 0x0, count: -5
ddb{1}>

Reply all
Reply to author
Forward
0 new messages