./file0À °þÿÿpanic: 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(ffffffff830c0887) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075efa,ffffffff83046bd2,bc,ffffffff82ff9984) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d02a0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d02a0,ffff8000376270e0,ffff800037627030) at sys_exit+0x1a syscall(ffff8000376270e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bbfbd2dfee0, 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(ffffffff830c0887) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075efa,ffffffff83046bd2,bc,ffffffff82ff9984) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d02a0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d02a0,ffff8000376270e0,ffff800037627030) at sys_exit+0x1a syscall(ffff8000376270e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bbfbd2dfee0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037626e30 rbx 0xffff8000327f59c8 rdx 0 rcx 0 rax 0xffff80002a4d02a0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xfc3dcb504bced3b3 r11 0xf5f5f571ba13fc0b r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff815279a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037626e20 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=268777 pid=92868 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=17, usrpri=66, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4d02a0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003766e7c0,0xffff80002a4d07c0 process=0xffff8000327f59c8 user=0xffff800037622000, vmspace=0xfffffd807e3729b8 estcpu=16, cpticks=11, pctcpu=0.4, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20944 201146 32578 0 2 0 syz-executor 20944 115368 32578 0 2 0x4000000 syz-executor 89806 301958 64618 0 2 0 syz-executor 89806 392763 64618 0 3 0x4000080 fsleep syz-executor 60969 258165 53102 0 2 0 syz-executor 60969 509078 53102 0 3 0x4000080 fsleep syz-executor 18423 54822 63050 0 2 0 syz-executor 18423 209587 63050 0 3 0x4000080 fsleep syz-executor 96578 52986 80413 0 2 0x10 syz-executor 96578 275166 80413 0 3 0x4000090 fsleep syz-executor 96578 155265 80413 0 3 0x4000090 fsleep syz-executor 66632 294374 72516 0 2 0 syz-executor 66632 365881 72516 0 3 0x4000080 fsleep syz-executor 66632 266603 72516 0 3 0x4000080 fsleep syz-executor 66632 501114 72516 0 3 0x4000080 fsleep syz-executor 9388 499214 83891 0 2 0 syz-executor 9388 244445 83891 0 3 0x4000080 fsleep syz-executor 9388 142188 83891 0 3 0x4000080 fsleep syz-executor 9388 44954 83891 0 3 0x4000080 fsleep syz-executor 39419 212019 0 0 3 0x14200 bored sosplice 83891 518005 63844 0 3 0x82 nanoslp syz-executor 64618 11648 63844 0 3 0x82 nanoslp syz-executor 80413 105228 63844 0 3 0x82 nanoslp syz-executor 53102 349010 63844 0 3 0x82 nanoslp syz-executor 72516 353107 63844 0 3 0x82 nanoslp syz-executor 32578 114781 63844 0 3 0x82 nanoslp syz-executor 8085 169793 63844 0 3 0x82 nanoslp syz-executor 63050 304389 63844 0 3 0x82 nanoslp syz-executor 63844 203720 6506 0 3 0x82 kqread syz-executor 6506 147227 82114 0 3 0x10008a sigsusp ksh 82114 517412 18834 0 3 0x98 kqread sshd-session 18834 267849 81277 0 3 0x92 kqread sshd-session 67308 347832 1 0 3 0x100083 ttyin getty 81277 229618 1 0 3 0x88 kqread sshd 68080 1983 13948 73 3 0x1100090 kqread syslogd 13948 519406 1 0 3 0x100082 sbwait syslogd 31022 60928 1 0 3 0x100080 kqread resolvd 44591 451590 72848 77 3 0x100092 kqread dhcpleased 86187 442266 72848 77 3 0x100092 kqread dhcpleased 72848 397019 1 0 3 0x80 kqread dhcpleased 35516 73891 0 0 3 0x14200 bored smr 33016 438075 0 0 2 0x14200 zerothread 59613 204158 0 0 3 0x14200 aiodoned aiodoned 52508 244613 0 0 3 0x14200 syncer update 68194 514574 0 0 3 0x14200 cleaner cleaner 69902 175875 0 0 3 0x14200 reaper reaper 76162 281156 0 0 3 0x14200 pgdaemon pagedaemon 35721 484288 0 0 3 0x14200 bored viomb 346 281409 0 0 3 0x40014200 acpi0 acpi0 10666 401422 0 0 3 0x14200 bored softnet3 61100 197799 0 0 3 0x14200 bored softnet2 58579 477173 0 0 3 0x14200 bored softnet1 75272 90672 0 0 3 0x14200 bored softnet0 39271 298265 0 0 3 0x14200 bored systqmp 42565 465891 0 0 3 0x14200 bored systq 1810 347028 0 0 3 0x40014200 tmoslp softclock 96238 146124 0 0 3 0x40014200 idle0 1 130022 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 10178 11053K 11363K 166960K 11516 0 pcb 18 13K 14K 166960K 86 0 rtable 240 8K 8K 166960K 384 0 pf 36 14K 14K 166960K 50 0 ifaddr 44 7K 7K 166960K 55 0 ifgroup 56 2K 2K 166960K 76 0 sysctl 4 1K 1K 166960K 4 0 counters 32 17K 17K 166960K 38 0 ioctlops 0 0K 4K 166960K 44 0 iov 0 0K 16K 166960K 73 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1435 90K 90K 166960K 1561 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 8 2K 2K 166960K 15 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 320 0 sigio 0 0K 0K 166960K 5 0 proc 64 75K 100K 166960K 498 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 24 0 in_multi 99 7K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 438 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 73K 87K 166960K 4303 0 UVM aobj 9 2K 2K 166960K 10 0 pinsyscall 39 78K 95K 166960K 1333 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 6 0 NDP 13 0K 2K 166960K 35 0 temp 37 6810K 6874K 166960K 5071 0 kqueue 13 20K 29K 166960K 47 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 51 0 48 1 0 1 1 0 8 0 rtentry 112 116 0 6 4 0 4 4 0 8 0 unpcb 144 276 0 261 6 4 2 6 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 54 0 48 2 1 1 2 0 8 0 arp 88 20 0 2 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 0 1 0 1 1 0 8 0 inpcb 336 454 0 444 8 6 2 7 0 8 1 nd6 104 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 3 1 0 1 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 1 0 0 1 0 1 1 0 8 0 art_heap4 256 457 0 4 29 0 29 29 0 8 0 art_table 32 458 0 4 4 0 4 4 0 8 0 art_node 16 114 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semupl 112 13 0 13 1 1 0 1 0 8 0 semapl 112 9 0 3 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1874 0 373 95 0 95 95 0 8 0 ffsino 240 1874 0 373 89 0 89 89 0 8 0 nchpl 144 2345 0 667 63 0 63 63 0 8 0 uvmvnodes 80 2123 0 0 44 0 44 44 0 8 0 vnodes 216 2123 0 0 118 0 118 118 0 8 0 namei 1024 7684 0 7683 3 2 1 2 0 8 0 kstatmem 264 38 0 12 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 7049 0 7049 8 7 1 8 1 8 1 plimitpl 152 67 0 51 1 0 1 1 0 8 0 sigapl 424 618 0 571 8 1 7 8 0 8 1 futexpl 64 2881 0 2870 1 0 1 1 0 8 0 knotepl 120 9557 0 9510 10 8 2 10 0 8 0 kqueuepl 184 53 0 43 1 0 1 1 0 8 0 pipepl 288 110 0 83 3 1 2 3 0 8 0 fdescpl 432 581 0 552 5 1 4 5 0 8 0 filepl 120 3028 0 2787 17 7 10 15 0 8 1 lockfpl 104 63 0 60 1 0 1 1 0 8 0 lockfspl 48 29 0 26 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 14 1 0 1 1 0 8 0 ucredpl 104 320 0 308 1 0 1 1 0 8 0 zombiepl 144 597 0 596 1 0 1 1 0 8 0 processpl 1096 618 0 571 5 0 5 5 0 8 1 procpl 648 920 0 861 7 0 7 7 0 8 1 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 504 789 0 761 31 26 5 31 0 8 1 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 2858 0 2808 17 10 7 17 0 8 0 mcl2k 2048 468 0 467 1 0 1 1 0 8 0 mtagpl 96 10 0 4 1 0 1 1 0 8 0 mbufpl 256 6164 0 5996 11 0 11 11 0 8 0 bufpl 280 3498 0 97 243 0 243 243 0 8 0 anonpl 24 178100 0 174742 47 19 28 45 0 187 0 amapchunkpl 152 14741 0 14189 32 10 22 29 0 158 0 amappl16 200 5158 0 5136 24 18 6 14 0 8 1 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 110 0 100 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1193 0 1163 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 15 0 15 1 1 0 1 0 8 0 amappl9 144 133 0 133 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 100 0 90 1 0 1 1 0 8 0 amappl6 120 171 0 169 1 0 1 1 0 8 0 amappl5 112 128 0 120 1 0 1 1 0 8 0 amappl4 104 276 0 262 1 0 1 1 0 8 0 amappl3 96 2696 0 2591 3 0 3 3 0 8 0 amappl2 88 844 0 765 2 0 2 2 0 8 0 amappl1 80 7693 0 7170 13 2 11 13 0 8 0 amappl 88 3953 0 3764 6 1 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 581 0 551 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 581 0 551 1 0 1 1 0 8 0 vmmpekpl 168 5976 0 5938 3 0 3 3 0 8 0 vmmpepl 168 44475 0 42673 93 11 82 88 0 357 1 vmsppl 352 580 0 551 4 1 3 4 0 8 0 rwobjpl 24 19247 0 16245 19 0 19 19 0 8 0 pdppl 4096 1168 0 1102 98 32 66 80 0 8 0 pvpl 32 337352 0 328276 115 29 86 110 0 265 1 pmappl 216 580 0 551 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 398 0 83 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(ffffffff830c0887) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075efa,ffffffff83046bd2,bc,ffffffff82ff9984) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d02a0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d02a0,ffff8000376270e0,ffff800037627030) at sys_exit+0x1a syscall(ffff8000376270e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bbfbd2dfee0, 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(ffffffff830c0887) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075efa,ffffffff83046bd2,bc,ffffffff82ff9984) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d02a0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d02a0,ffff8000376270e0,ffff800037627030) at sys_exit+0x1a syscall(ffff8000376270e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bbfbd2dfee0, count: -8