ÚÓÒ ÷ëN›ã;½0panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000339f66a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003765f468,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003765f468,ffff80002a5cf7c0,ffff80002a5cf710) at sys_exit+0x1a syscall(ffff80002a5cf7c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d86a0f126d0, 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 188 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000339f66a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003765f468,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003765f468,ffff80002a5cf7c0,ffff80002a5cf710) at sys_exit+0x1a syscall(ffff80002a5cf7c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d86a0f126d0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5cf510 rbx 0xffff8000339f66a0 rdx 0 rcx 0 rax 0xffff80003765f468 r8 0 r9 0x8080808080808080 r10 0x1d681c61fdd38b42 r11 0x83b32e1bb86ba77d r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff82f9e745 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5cf500 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=430996 pid=7851 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=50, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003765f468 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003765ecd0,0xffff80002a4d1990 process=0xffff8000339f66a0 user=0xffff80002a5ca000, vmspace=0xfffffd80683dc6f8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 63623 174441 27526 0 3 0x80 fsleep syz-executor 63623 19372 27526 0 2 0x4000000 syz-executor 87107 292468 54406 0 2 0x101004 sh 54406 277192 91218 0 3 0x10008a sigsusp sh 53946 74894 80648 0 3 0x80 fsleep syz-executor 53946 467708 80648 0 3 0x4000080 netcon syz-executor 53946 435723 80648 0 3 0x4000080 fsleep syz-executor 91218 146756 34456 0 3 0x82 wait syz-executor 14722 154355 48212 0 3 0x80 fsleep syz-executor 14722 220991 48212 0 3 0x4000080 netcon syz-executor 99775 313179 15282 0 3 0x80 fsleep syz-executor 99775 444173 15282 0 3 0x4000080 ttyin syz-executor 2941 160202 86114 0 3 0x80 fsleep syz-executor 2941 460600 86114 0 3 0x4000080 kqread syz-executor 2941 405086 86114 0 3 0x4000080 fsleep syz-executor 89209 91599 36353 0 3 0x80 fsleep syz-executor 89209 79163 36353 0 3 0x4000080 ttyin syz-executor 89209 133711 36353 0 3 0x4000080 fsleep syz-executor 20982 193809 0 0 3 0x14280 nfsidl nfsio 98735 500274 0 0 3 0x14280 nfsidl nfsio 95038 143095 0 0 3 0x14280 nfsidl nfsio 28112 118046 0 0 3 0x14280 nfsidl nfsio 78701 142433 0 0 3 0x14280 nfsidl nfsio 70813 490871 0 0 3 0x14280 nfsidl nfsio 82795 234165 0 0 3 0x14280 nfsidl nfsio 14680 107604 0 0 3 0x14280 nfsidl nfsio 428 188851 0 0 3 0x14280 nfsidl nfsio 98604 366970 0 0 3 0x14280 nfsidl nfsio 29866 50059 0 0 3 0x14280 nfsidl nfsio 62603 344101 0 0 3 0x14280 nfsidl nfsio 42245 344075 0 0 3 0x14280 nfsidl nfsio 62912 502708 0 0 3 0x14280 nfsidl nfsio 50594 248192 0 0 3 0x14280 nfsidl nfsio 24631 174114 0 0 3 0x14280 nfsidl nfsio 17405 182908 0 0 3 0x14280 nfsidl nfsio 15677 183713 0 0 3 0x14280 nfsidl nfsio 47067 340771 0 0 3 0x14280 nfsidl nfsio 67306 391357 0 0 3 0x14280 nfsidl nfsio 15282 498502 34456 0 2 0x482 syz-executor 51909 38597 0 0 3 0x14200 bored sosplice 70899 198596 34456 0 2 0x482 syz-executor 86114 441606 34456 0 2 0x482 syz-executor 80648 499106 34456 0 2 0x482 syz-executor 27526 247729 34456 0 3 0x82 nanoslp syz-executor 48212 314809 34456 0 3 0x82 nanoslp syz-executor 36353 511073 34456 0 2 0x482 syz-executor 34456 261268 61095 0 2 0x2 syz-executor 61095 503341 84172 0 3 0x10008a sigsusp ksh 84172 461621 64809 0 3 0x98 kqread sshd-session 64809 524167 2240 0 3 0x92 kqread sshd-session 13472 90874 1 0 3 0x100083 ttyopn getty 2240 197884 1 0 3 0x88 kqread sshd 49934 116825 23974 73 3 0x1100090 kqread syslogd 23974 351113 1 0 3 0x100082 sbwait syslogd 50279 89251 1 0 3 0x100080 kqread resolvd 89218 345554 34221 77 3 0x100092 kqread dhcpleased 44510 465523 34221 77 3 0x100092 kqread dhcpleased 34221 31879 1 0 3 0x80 kqread dhcpleased 23521 142807 0 0 3 0x14200 bored smr 69868 493133 0 0 2 0x14200 zerothread 83595 183303 0 0 3 0x14200 aiodoned aiodoned 20445 644 0 0 3 0x14200 syncer update 43136 64098 0 0 3 0x14200 cleaner cleaner 32165 369207 0 0 3 0x14200 reaper reaper 47659 149179 0 0 3 0x14200 pgdaemon pagedaemon 35654 505557 0 0 3 0x14200 bored viomb 4609 148259 0 0 3 0x40014200 acpi0 acpi0 95694 259743 0 0 3 0x14200 bored softnet3 66130 158631 0 0 3 0x14200 bored softnet2 18448 136435 0 0 3 0x14200 bored softnet1 16131 347080 0 0 3 0x14200 bored softnet0 43062 326927 0 0 3 0x14200 bored systqmp 14687 499642 0 0 3 0x14200 bored systq 65363 12864 0 0 2 0x40014200 softclock 44148 515747 0 0 3 0x40014200 idle0 1 89253 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 devbuf 10177 11049K 11568K 166960K 12580 0 pcb 17 14K 16K 166960K 230 0 rtable 174 6K 8K 166960K 694 0 pf 31 13K 14K 166960K 76 0 ifaddr 35 5K 7K 166960K 99 0 ifgroup 50 2K 2K 166960K 126 0 sysctl 3 0K 0K 166960K 3 0 counters 30 17K 17K 166960K 50 0 ioctlops 0 0K 4K 166960K 97 0 iov 0 0K 16K 166960K 43 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1490 94K 94K 166960K 2187 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 32 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 89K 166960K 885 0 sigio 0 0K 0K 166960K 6 0 proc 64 75K 91K 166960K 803 0 subproc 104 6K 6K 166960K 234 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 90 0 in_multi 73 5K 7K 166960K 235 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 1 0K 1K 166960K 588 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 226 72K 89K 166960K 9147 0 UVM aobj 28 4K 4K 166960K 32 0 pinsyscall 41 82K 92K 166960K 2150 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 59 0 NDP 11 0K 1K 166960K 68 0 temp 75 6820K 6888K 166960K 22979 0 kqueue 14 22K 28K 166960K 136 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 195 0 191 4 2 2 3 0 8 1 rtentry 112 223 0 148 4 0 4 4 0 8 0 unpcb 144 812 0 795 9 5 4 6 0 8 3 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 211 0 205 7 0 7 7 0 8 6 arp 88 37 0 23 1 0 1 1 0 8 0 ipq 40 4 0 1 1 0 1 1 0 8 0 ipqe 40 82 0 78 1 0 1 1 0 8 0 inpcb 336 913 0 902 10 3 7 7 0 8 6 nd6 104 56 0 39 1 0 1 1 0 8 0 pkpcb 40 6 0 5 2 1 1 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 1 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 344 1 0 1 1 1 0 1 0 8 0 pfrule 1344 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 956 0 607 31 5 26 31 0 8 2 art_table 32 958 0 607 4 0 4 4 0 8 0 art_node 16 220 0 152 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 29 0 19 1 0 1 1 0 8 0 shmpl 112 29 0 4 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2709 0 1197 95 0 95 95 0 8 0 ffsino 240 2709 0 1197 89 0 89 89 0 8 0 nchpl 144 3860 0 3304 63 41 22 63 0 8 0 uvmvnodes 80 3380 0 0 69 0 69 69 0 8 0 vnodes 216 3380 0 0 188 0 188 188 0 8 0 namei 1024 13188 0 13186 3 2 1 2 0 8 0 kstatmem 264 62 0 40 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 11560 0 11560 8 7 1 8 1 8 1 plimitpl 152 157 0 140 1 0 1 1 0 8 0 sigapl 424 1168 0 1100 8 0 8 8 0 8 0 futexpl 64 9951 0 9942 1 0 1 1 0 8 0 knotepl 120 44035 0 43987 39 29 10 17 0 8 7 kqueuepl 184 254 0 243 4 3 1 4 0 8 0 pipepl 288 173 0 146 3 0 3 3 0 8 0 fdescpl 432 1129 0 1099 5 1 4 5 0 8 0 filepl 120 6562 0 6313 17 5 12 14 0 8 3 lockfpl 104 212 0 210 1 0 1 1 0 8 0 lockfspl 48 88 0 86 1 0 1 1 0 8 0 sessionpl 144 31 0 23 1 0 1 1 0 8 0 pgrppl 48 53 0 37 1 0 1 1 0 8 0 ucredpl 104 1009 0 997 1 0 1 1 0 8 0 zombiepl 144 1213 0 1212 1 0 1 1 0 8 0 processpl 1096 1168 0 1100 5 0 5 5 0 8 0 procpl 648 2140 0 2063 8 0 8 8 0 8 1 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 504 1971 0 1938 39 27 12 21 0 8 7 mcl64k 65536 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 3476 0 3425 18 10 8 17 0 8 1 mcl2k 2048 889 0 868 3 0 3 3 0 8 0 mtagpl 96 62 0 45 2 1 1 2 0 8 0 mbufpl 256 11718 0 11482 26 10 16 24 0 8 0 bufpl 280 3320 0 108 230 0 230 230 0 8 0 anonpl 24 198938 0 195595 71 19 52 52 0 187 23 amapchunkpl 152 42632 0 42147 57 20 37 40 0 158 17 amappl16 200 4238 0 4213 35 24 11 19 0 8 8 amappl15 192 42 0 42 1 1 0 1 0 8 0 amappl14 184 131 0 121 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1894 0 1862 3 0 3 3 0 8 1 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 123 0 122 1 0 1 1 0 8 0 amappl8 136 41 0 40 1 0 1 1 0 8 0 amappl7 128 111 0 100 1 0 1 1 0 8 0 amappl6 120 252 0 250 1 0 1 1 0 8 0 amappl5 112 164 0 153 1 0 1 1 0 8 0 amappl4 104 310 0 294 1 0 1 1 0 8 0 amappl3 96 5483 0 5392 3 0 3 3 0 8 0 amappl2 88 1475 0 1394 2 0 2 2 0 8 0 amappl1 80 10029 0 9506 12 0 12 12 0 8 0 amappl 88 8682 0 8510 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 255 0 255 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 31 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1129 0 1098 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1129 0 1098 1 0 1 1 0 8 0 vmmpekpl 168 9810 0 9765 3 0 3 3 0 8 0 vmmpepl 168 76842 0 75070 99 9 90 90 0 357 12 vmsppl 352 1128 0 1098 4 1 3 4 0 8 0 rwobjpl 24 26026 0 21755 26 0 26 26 0 8 0 pdppl 4096 2265 0 2196 115 46 69 79 0 8 0 pvpl 32 512856 0 504017 149 31 118 118 0 265 31 pmappl 216 1128 0 1098 2 0 2 2 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 454 0 110 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000339f66a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003765f468,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003765f468,ffff80002a5cf7c0,ffff80002a5cf710) at sys_exit+0x1a syscall(ffff80002a5cf7c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d86a0f126d0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000339f66a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003765f468,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003765f468,ffff80002a5cf7c0,ffff80002a5cf710) at sys_exit+0x1a syscall(ffff80002a5cf7c0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d86a0f126d0, count: -8