panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 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 panic(ffffffff8242e274) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249db53,ffffffff82429ae3,c4,ffffffff8244647c) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002166e7f0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:196 exit1(ffff800027fa1270,0,0,3) at exit1+0x3b5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff800027fa1270,0,0) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:1979 userret(ffff800027fa1270) at userret+0x1f3 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff800027fa1270) at userret+0x1f3 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffcb300, 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 *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8242e274) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249db53,ffffffff82429ae3,c4,ffffffff8244647c) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002166e7f0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:196 exit1(ffff800027fa1270,0,0,3) at exit1+0x3b5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff800027fa1270,0,0) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:1979 userret(ffff800027fa1270) at userret+0x1f3 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff800027fa1270) at userret+0x1f3 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffcb300, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800024b694a0 rbx 0x3 rdx 0 rcx 0 rax 0xffff800027fa1270 r8 0x101010101010101 r9 0x8080808080808080 r10 0x72cc88ae3b642bc4 r11 0x12bb3a680d811dec r12 0 r13 0xffff80002166e7f0 r14 0 r15 0x1 rip 0xffffffff81c4a7a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024b69490 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=276362 stat=onproc flags process=1008 proc=82000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800027fa0550,0xffffffff8286d1a0 process=0xffff80002166e7f0 user=0xffff800024b64000, vmspace=0xfffffd80652b5cc8 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 28387 309743 72662 0 2 0 syz-executor.0 28387 206186 72662 0 3 0x4000080 fsleep syz-executor.0 75690 474890 68147 0 2 0 syz-executor.3 75690 311715 68147 0 2 0x4000000 syz-executor.3 75690 517608 68147 0 3 0x4000080 fsleep syz-executor.3 72662 272359 69002 0 3 0x82 nanoslp syz-executor.0 68147 19674 69002 0 3 0x82 nanoslp syz-executor.3 93204 245826 69002 0 2 0x2 syz-executor.2 48166 251790 0 0 3 0x14200 acct acct 33016 196231 69002 0 3 0x82 nanoslp syz-executor.1 61042 223082 1 0 3 0x100083 ttyin getty 28518 393316 0 0 3 0x14280 nfsidl nfsio 45913 400358 0 0 3 0x14280 nfsidl nfsio 46807 85375 0 0 3 0x14280 nfsidl nfsio 84758 494239 0 0 3 0x14280 nfsidl nfsio 33456 187142 0 0 3 0x14280 nfsidl nfsio 53543 490646 0 0 3 0x14280 nfsidl nfsio 96269 96638 0 0 3 0x14200 bored sosplice 69002 121061 41392 0 3 0x82 kqread syz-fuzzer 69002 353069 41392 0 3 0x4000082 thrsleep syz-fuzzer 69002 189676 41392 0 3 0x4000082 thrsleep syz-fuzzer 69002 424792 41392 0 3 0x4000082 thrsleep syz-fuzzer 69002 174671 41392 0 3 0x4000082 thrsleep syz-fuzzer 69002 201500 41392 0 3 0x4000082 thrsleep syz-fuzzer 69002 2269 41392 0 3 0x4000082 thrsleep syz-fuzzer 41392 404424 84247 0 3 0x10008a sigsusp ksh 84247 436952 28283 0 3 0x9a poll sshd 28283 96367 1 0 3 0x88 poll sshd 18712 216052 55344 73 3 0x100090 kqread syslogd 55344 221953 1 0 3 0x100082 netio syslogd 39839 337768 1 0 3 0x100080 kqread resolvd 47338 396003 758 77 3 0x100092 kqread dhcpleased 49910 111585 758 77 3 0x100092 kqread dhcpleased 758 156160 1 0 3 0x80 kqread dhcpleased 50197 401402 0 0 3 0x14200 bored smr 62155 7221 0 0 2 0x14200 zerothread 26525 470081 0 0 3 0x14200 aiodoned aiodoned 31428 116961 0 0 3 0x14200 syncer update 55016 127614 0 0 3 0x14200 cleaner cleaner 97544 172524 0 0 3 0x14200 reaper reaper 26282 189506 0 0 3 0x14200 pgdaemon pagedaemon 84037 210063 0 0 3 0x14200 bored viomb 43162 83051 0 0 3 0x40014200 acpi0 acpi0 61334 293220 0 0 3 0x14200 bored softnet 51432 253320 0 0 3 0x14200 bored systqmp 91378 174654 0 0 3 0x14200 bored systq 40830 58903 0 0 2 0x40014200 softclock 64434 302042 0 0 3 0x40014200 idle0 1 134377 0 0 3 0x80082 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 devbuf 10186 6458K 8614K 78643K 38245 0 pcb 13 20K 25K 78643K 2810 0 rtable 323 61K 63K 78643K 11448 0 ifaddr 174 49K 54K 78643K 3538 0 sysctl 2 0K 0K 78643K 4 0 counters 24 17K 17K 78643K 316 0 ioctlops 0 0K 4K 78643K 13542 0 iov 0 0K 32K 78643K 2222 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1558 98K 98K 78643K 13662 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 113 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 2973 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 8 25K 37K 78643K 25413 0 sigio 0 0K 0K 78643K 1148 0 proc 70 79K 79K 78643K 3016 0 subproc 52 3K 4K 78643K 1004 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1148 0 in_multi 41 2K 4K 78643K 5187 0 ether_multi 1 0K 0K 78643K 292 0 mrt 1 0K 0K 78643K 54 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 235 1049K 1049K 78643K 235 0 exec 0 0K 2K 78643K 4388 0 pfkey data 0 0K 1K 78643K 67 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 585 1679K 1680K 78643K 305882 0 UVM aobj 131 7K 7K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 1 0K 0K 78643K 3818 0 NDP 9 0K 0K 78643K 1356 0 temp 138 4266K 4521K 78643K 133280 0 kqueue 10 14K 20K 78643K 622 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 3120 0 3117 19 18 1 3 0 8 0 rtentry 112 2067 0 2017 2 0 2 2 0 8 0 unpcb 136 17022 0 17007 159 154 5 9 0 8 4 syncache 296 65 0 65 18 18 0 1 0 8 0 tcpqe 32 81 0 81 9 9 0 1 0 8 0 tcpcb 736 18920 0 18913 449 447 2 35 0 8 1 arp 88 159 0 151 1 0 1 1 0 8 0 ipq 40 158 0 158 17 17 0 1 0 8 0 ipqe 40 1907 0 1907 17 17 0 1 0 8 0 inpcb 304 46400 0 46392 357 349 8 16 0 8 7 rttmr 72 3 0 3 1 1 0 1 0 8 0 ip6q 72 5 0 5 2 2 0 1 0 8 0 ip6af 40 8 0 8 2 2 0 1 0 8 0 nd6 48 1156 0 1144 1 0 1 1 0 8 0 pkpcb 40 43 0 43 8 8 0 1 0 8 0 kcovpl 48 77 0 73 1 0 1 1 0 8 0 ppxss 1152 144 0 144 31 31 0 1 0 8 0 pfstscr 40 195 0 193 1 0 1 1 0 8 0 pfosfp 40 3 0 2 1 0 1 1 0 8 0 pfosfpen 112 3 0 2 1 0 1 1 0 8 0 pfrktable 1344 2894 0 2798 30 21 9 9 0 8 1 pftag 88 178 0 160 2 1 1 1 0 8 0 pfqueue 264 11 0 11 3 3 0 1 0 8 0 pfstitem 24 103 0 99 1 0 1 1 0 8 0 pfstkey 112 367 0 363 1 0 1 1 0 8 0 pfstate 320 185 0 183 1 0 1 1 0 8 0 pfrule 1360 10697 0 9736 82 1 81 81 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 31788 0 31559 53 38 15 18 0 8 0 art_table 32 31789 0 31559 3 0 3 3 0 8 0 art_node 16 2057 0 2015 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 7 1 0 1 1 0 8 0 semapl 112 2971 0 2961 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 36217 0 34758 92 0 92 92 0 8 0 ffsino 240 36218 0 34758 87 0 87 87 0 8 0 nchpl 144 72611 0 71010 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 260735 0 260733 4 3 1 2 0 8 0 vcpupl 1984 340 0 0 43 0 43 43 0 8 0 vmpool 528 485 0 145 24 1 23 23 0 8 0 pfiaddrpl 120 2329 0 1613 23 1 22 22 0 8 0 scsiplug 72 16 0 16 1 1 0 1 0 8 0 scxspl 216 290948 0 290948 34 33 1 8 0 8 1 plimitpl 152 2551 0 2541 1 0 1 1 0 8 0 sigapl 424 25448 0 25407 8 3 5 7 0 8 0 futexpl 64 294492 0 294490 4 3 1 1 0 8 0 knotepl 112 8100 0 8050 6 4 2 4 0 8 0 kqueuepl 184 3935 0 3926 74 73 1 4 0 8 0 pipepl 304 3115 0 3099 72 68 4 7 0 8 2 fdescpl 432 25404 0 25385 3 0 3 3 0 8 0 filepl 120 201169 0 201020 221 209 12 13 0 8 7 lockfpl 104 10967 0 10965 7 6 1 2 0 8 0 lockfspl 48 2479 0 2477 1 0 1 1 0 8 0 sessionpl 144 93 0 81 1 0 1 1 0 8 0 pgrppl 48 177 0 165 1 0 1 1 0 8 0 ucredpl 96 34506 0 34494 1 0 1 1 0 8 0 zombiepl 144 25500 0 25499 1 0 1 1 0 8 0 processpl 1000 25448 0 25407 8 2 6 8 0 8 0 procpl 672 62281 0 62231 26 21 5 7 0 8 0 sosppl 168 128 0 128 29 29 0 1 0 8 0 sockpl 448 66704 0 66675 956 938 18 31 0 8 14 mcl64k 65536 3931 0 3931 24 23 1 1 0 8 1 mcl16k 16384 1398 0 1398 40 39 1 1 0 8 1 mcl12k 12288 1423 0 1423 28 27 1 1 0 8 1 mcl9k 9216 814 0 814 42 41 1 1 0 8 1 mcl8k 8192 2870 0 2870 37 36 1 9 0 8 1 mcl4k 4096 2206 0 2206 21 20 1 1 0 8 1 mcl2k2 2112 116 0 116 49 49 0 1 0 8 0 mcl2k 2048 149158 0 149115 44 37 7 12 0 8 0 mtagpl 96 2051 0 1783 27 19 8 8 0 8 0 mbufpl 256 517469 0 516737 1288 1237 51 545 0 8 0 bufpl 288 44981 0 38564 459 0 459 459 0 8 0 anonpl 24 6899472 0 6879696 470 349 121 207 0 188 0 amapchunkpl 152 787299 0 786523 257 226 31 65 0 158 1 amappl16 200 65521 0 64796 256 217 39 51 0 8 0 amappl15 192 5674 0 5672 1 0 1 1 0 8 0 amappl14 184 2824 0 2821 1 0 1 1 0 8 0 amappl13 176 3472 0 3471 1 0 1 1 0 8 0 amappl12 168 619 0 615 1 0 1 1 0 8 0 amappl11 160 2506 0 2495 1 0 1 1 0 8 0 amappl10 152 4150 0 4145 1 0 1 1 0 8 0 amappl9 144 6197 0 6190 1 0 1 1 0 8 0 amappl8 136 4024 0 3935 6 2 4 4 0 8 0 amappl7 128 2568 0 2557 1 0 1 1 0 8 0 amappl6 120 6355 0 6332 1 0 1 1 0 8 0 amappl5 112 25505 0 25490 1 0 1 1 0 8 0 amappl4 104 10595 0 10564 1 0 1 1 0 8 0 amappl3 96 4694 0 4678 1 0 1 1 0 8 0 amappl2 88 5720 0 5667 2 0 2 2 0 8 0 amappl1 80 439206 0 438724 12 1 11 12 0 8 0 amappl 88 303815 0 303513 8 1 7 7 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 25889 0 25529 3 0 3 3 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25889 0 25529 3 0 3 3 0 8 0 vmmpekpl 168 140153 0 140089 4 0 4 4 0 8 0 vmmpepl 168 2298401 0 2295555 699 570 129 150 0 357 0 vmsppl 272 25888 0 25529 26 1 25 25 0 8 0 rwobjpl 24 525095 0 517345 66 19 47 48 0 8 0 pdppl 4096 51785 0 51398 473 84 389 390 0 8 2 pvpl 32 11322082 0 11300280 704 522 182 328 0 265 1 pmappl 216 25888 0 25529 22 1 21 21 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 4142 0 2906 56 20 36 41 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8242e274) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249db53,ffffffff82429ae3,c4,ffffffff8244647c) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002166e7f0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:196 exit1(ffff800027fa1270,0,0,3) at exit1+0x3b5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff800027fa1270,0,0) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:1979 userret(ffff800027fa1270) at userret+0x1f3 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff800027fa1270) at userret+0x1f3 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffcb300, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8242e274) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249db53,ffffffff82429ae3,c4,ffffffff8244647c) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002166e7f0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:196 exit1(ffff800027fa1270,0,0,3) at exit1+0x3b5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff800027fa1270,0,0) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:1979 userret(ffff800027fa1270) at userret+0x1f3 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff800027fa1270) at userret+0x1f3 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffcb300, count: -8