kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Mon Dec 20 07:36:20 PST 2021 OpenBSD/amd64 (ci-openbsd-multicore-3.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.177' (ED25519) to the list of known hosts. executing program 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 panic(ffffffff82457a9f) at panic+0x177 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 dt_ioctl_record_stop(ffff800000b26800) at dt_ioctl_record_stop+0x165 dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 spec_close(ffff8000211b29e0) at spec_close+0x363 VOP_CLOSE(fffffd806d5c1310,1,fffffd807f7d8780,ffff8000ffff67f0) at VOP_CLOSE+0xe3 vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 fdrop(fffffd806e588308,ffff8000ffff67f0) at fdrop+0xc7 closef(fffffd806e588308,ffff8000ffff67f0) at closef+0x11c fdfree(ffff8000ffff67f0) at fdfree+0xf4 exit1(ffff8000ffff67f0,0,0,1) at exit1+0x37d sys_exit(ffff8000ffff67f0,ffff8000211b2c70,ffff8000211b2cd0) at sys_exit+0x16 syscall(ffff8000211b2d40) at syscall+0x489 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 panic(ffffffff82457a9f) at panic+0x177 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 dt_ioctl_record_stop(ffff800000b26800) at dt_ioctl_record_stop+0x165 dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 spec_close(ffff8000211b29e0) at spec_close+0x363 VOP_CLOSE(fffffd806d5c1310,1,fffffd807f7d8780,ffff8000ffff67f0) at VOP_CLOSE+0xe3 vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 fdrop(fffffd806e588308,ffff8000ffff67f0) at fdrop+0xc7 closef(fffffd806e588308,ffff8000ffff67f0) at closef+0x11c fdfree(ffff8000ffff67f0) at fdfree+0xf4 exit1(ffff8000ffff67f0,0,0,1) at exit1+0x37d sys_exit(ffff8000ffff67f0,ffff8000211b2c70,ffff8000211b2cd0) at sys_exit+0x16 syscall(ffff8000211b2d40) at syscall+0x489 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 proc=2000 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 panic(ffffffff82457a9f) at panic+0x177 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 dt_ioctl_record_stop(ffff800000b26800) at dt_ioctl_record_stop+0x165 dtclose(11e6e,1,2000,ffff8000ffff67f0) at dtclose+0xe2 spec_close(ffff8000211b29e0) at spec_close+0x363 VOP_CLOSE(fffffd806d5c1310,1,fffffd807f7d8780,ffff8000ffff67f0) at VOP_CLOSE+0xe3 vn_closefile(fffffd806e588308,ffff8000ffff67f0) at vn_closefile+0xd7 fdrop(fffffd806e588308,ffff8000ffff67f0) at fdrop+0xc7 closef(fffffd806e588308,ffff8000ffff67f0) at closef+0x11c fdfree(ffff8000ffff67f0) at fdfree+0xf4 exit1(ffff8000ffff67f0,0,0,1) at exit1+0x37d sys_exit(ffff8000ffff67f0,ffff8000211b2c70,ffff8000211b2cd0) at sys_exit+0x16 syscall(ffff8000211b2d40) at syscall+0x489 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 x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sched_idle(ffff800020d38ff0) at sched_idle+0x417 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sched_idle(ffff800020d38ff0) at sched_idle+0x417 end trace frame: 0x0, count: -5 ddb{1}>