kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Sun Mar 24 14:35:55 PDT 2019 OpenBSD/amd64 (ci-openbsd-main-3.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.133' (ECDSA) to the list of known hosts. executing program login: panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *403278 54910 0 0x2 0x4000000 0 syz-executor5590 db_enter() at db_enter+0x18 panic() at panic+0x15c __assert(ffffffff81f44464,ffffffff81ef2c33,36f,ffffffff81f53f58) at __assert+0x2e unveil_check_final(ffff8000ffff4268,ffff800014990448) at unveil_check_final+0x805 namei(ffff800014990448) at namei+0x88a domknodat(ffff8000ffff4268,ffffff9c,20000a80,1108,0) at domknodat+0xa1 syscall(ffff800014990710) at syscall+0x541 Xsyscall(6,0,242f63470b8,0,242f6347098,242f6347090) at Xsyscall+0x128 end of kernel end trace frame: 0x245aa6ff3a0, count: 7 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 879 ddb> trace db_enter() at db_enter+0x18 panic() at panic+0x15c __assert(ffffffff81f44464,ffffffff81ef2c33,36f,ffffffff81f53f58) at __assert+0x2e unveil_check_final(ffff8000ffff4268,ffff800014990448) at unveil_check_final+0x805 namei(ffff800014990448) at namei+0x88a domknodat(ffff8000ffff4268,ffffff9c,20000a80,1108,0) at domknodat+0xa1 syscall(ffff800014990710) at syscall+0x541 Xsyscall(6,0,242f63470b8,0,242f6347098,242f6347090) at Xsyscall+0x128 end of kernel end trace frame: 0x245aa6ff3a0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149901e0 rbx 0xffff800014990290 rdx 0x2 rcx 0x1 rax 0x1 r8 0xffff8000149901a0 r9 0x1 r10 0x9ed4b579496f348a r11 0x82a88cb667ce459d r12 0x3000000008 r13 0xffff8000149901f0 r14 0x100 r15 0x1 rip 0xffffffff819129c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149901d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor5590) pid=403278 stat=onproc flags process=2 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff5078,0xffff8000ffff44d0 process=0xffff800014952d38 user=0xffff80001498b000, vmspace=0xfffffd803f013d68 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54910 90379 86386 0 2 0x2 syz-executor5590 *54910 403278 86386 0 7 0x4000002 syz-executor5590 54910 259612 86386 0 3 0x4000082 fsleep syz-executor5590 86386 454322 62432 0 3 0x10008a pause ksh 62432 170766 29599 0 3 0x92 select sshd 86118 266480 1 0 3 0x100083 ttyin getty 29599 89999 1 0 3 0x80 select sshd 23662 90339 99018 73 3 0x100090 kqread syslogd 99018 341069 1 0 3 0x100082 netio syslogd 25048 411966 1 77 3 0x100090 poll dhclient 12174 96550 1 0 3 0x80 poll dhclient 24856 42647 0 0 2 0x14200 zerothread 96402 270898 0 0 3 0x14200 aiodoned aiodoned 25464 395172 0 0 3 0x14200 syncer update 19268 142005 0 0 3 0x14200 cleaner cleaner 87698 53990 0 0 3 0x14200 reaper reaper 15933 176663 0 0 3 0x14200 pgdaemon pagedaemon 1458 358126 0 0 3 0x14200 bored crynlk 33068 517675 0 0 3 0x14200 bored crypto 66032 412981 0 0 3 0x40014200 acpi0 acpi0 87991 282784 0 0 3 0x14200 bored softnet 84293 263002 0 0 3 0x14200 bored systqmp 2363 17709 0 0 3 0x14200 bored systq 257 499103 0 0 2 0x40014200 softclock 12761 208408 0 0 3 0x40014200 idle0 12071 239374 0 0 3 0x14200 bored smr 1 172341 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9426 6306K 6307K 78643K 10519 0 0 pcb 23 9K 9K 78643K 55 0 0 rtable 61 1K 2K 78643K 116 0 0 ifaddr 21 7K 7K 78643K 21 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 13 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1166 73K 73K 78643K 1171 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 1 0K 0K 78643K 1 0 0 proc 43 38K 46K 78643K 211 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 0K 78643K 11 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 152 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 50 2K 3K 78643K 682 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 3 0K 0K 78643K 3 0 0 temp 30 2339K 2403K 78643K 1717 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 2 0 0 1 0 1 1 0 8 0 inpcbpl 280 22 0 16 1 0 1 1 0 8 0 plimitpl 152 13 0 8 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 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 dino1pl 128 1381 0 16 45 0 45 45 0 8 0 ffsino 240 1381 0 16 81 0 81 81 0 8 0 nchpl 144 1555 0 30 57 0 57 57 0 8 0 uvmvnodes 72 1390 0 0 26 0 26 26 0 8 0 vnodes 200 1390 0 0 74 0 74 74 0 8 0 namei 1024 3285 0 3284 2 1 1 1 0 8 0 scxspl 192 2363 0 2363 7 1 6 6 0 8 6 sigapl 432 176 0 166 2 0 2 2 0 8 0 futexpl 56 1 0 0 1 0 1 1 0 8 0 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 104 1 0 0 1 0 1 1 0 8 0 pipepl 112 118 0 111 2 1 1 1 0 8 0 fdescpl 424 177 0 166 2 0 2 2 0 8 0 filepl 120 817 0 775 2 0 2 2 0 8 0 lockfpl 104 6 0 6 1 1 0 1 0 8 0 lockfspl 32 3 0 3 1 1 0 1 0 8 0 sessionpl 112 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 96 47 0 40 1 0 1 1 0 8 0 zombiepl 144 166 0 166 2 1 1 1 0 8 1 processpl 840 191 0 166 4 0 4 4 0 8 0 procpl 600 193 0 166 3 0 3 3 0 8 0 sockpl 384 64 0 48 2 0 2 2 0 8 0 mcl4k 4096 10 0 10 1 0 1 1 0 8 1 mcl2k 2048 5922 0 5889 8 2 6 8 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 10161 0 10119 7 3 4 5 0 8 1 bufpl 256 2060 0 254 113 0 113 113 0 8 0 anonpl 16 18309 0 17168 8 3 5 7 0 62 0 amapchunkpl 152 577 0 538 2 0 2 2 0 158 0 amappl16 192 35 0 33 1 0 1 1 0 8 0 amappl15 184 44 0 40 1 0 1 1 0 8 0 amappl14 176 14 0 13 3 2 1 1 0 8 0 amappl13 168 22 0 19 1 0 1 1 0 8 0 amappl12 160 6 0 6 1 1 0 1 0 8 0 amappl11 152 19 0 8 1 0 1 1 0 8 0 amappl10 144 49 0 49 2 1 1 1 0 8 1 amappl9 136 367 0 366 1 0 1 1 0 8 0 amappl8 128 87 0 82 1 0 1 1 0 8 0 amappl7 120 13 0 12 1 0 1 1 0 8 0 amappl6 112 42 0 38 1 0 1 1 0 8 0 amappl5 104 159 0 149 1 0 1 1 0 8 0 amappl4 96 359 0 336 1 0 1 1 0 8 0 amappl3 88 106 0 100 1 0 1 1 0 8 0 amappl2 80 547 0 504 1 0 1 1 0 8 0 amappl1 72 11586 0 11183 16 7 9 16 0 8 0 amappl 72 391 0 370 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 177 0 166 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 177 0 166 1 0 1 1 0 8 0 vmmpekpl 168 5289 0 5274 1 0 1 1 0 8 0 vmmpepl 168 23615 0 22870 48 14 34 47 0 357 1 vmsppl 264 176 0 166 1 0 1 1 0 8 0 pdppl 4096 360 0 332 5 0 5 5 0 8 0 pvpl 32 73158 0 70295 31 4 27 27 0 265 1 pmappl 192 176 0 166 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 230 0 8 7 0 7 7 0 8 0 ddb>