panic: kernel diagnostic assertion "uvm_page_owner_locked_p(pg)" failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_page.c", line 1269 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *423808 11228 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825786fe) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825eb387,ffffffff8259c70c,4f5,ffffffff8259c73f) at __assert+0x25 sys/kern/subr_prf.c:157 uvm_pageunwire(fffffd8005fbe180) at uvm_pageunwire+0x16b sys/uvm/uvm_page.c:1269 uvm_fault_unwire_locked(fffffd806632f330,aedd3e74000,aedd4073000) at uvm_fault_unwire_locked+0x226 sys/uvm/uvm_fault.c:1681 uvm_unmap_kill_entry_withlock(fffffd806632f330,fffffd806aa94978,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1887 uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2523 uvmspace_free(fffffd806632f330) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3436 reaper(ffff8000ffff97a8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: 6 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 "uvm_page_owner_locked_p(pg)" failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_page.c", line 1269 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825786fe) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825eb387,ffffffff8259c70c,4f5,ffffffff8259c73f) at __assert+0x25 sys/kern/subr_prf.c:157 uvm_pageunwire(fffffd8005fbe180) at uvm_pageunwire+0x16b sys/uvm/uvm_page.c:1269 uvm_fault_unwire_locked(fffffd806632f330,aedd3e74000,aedd4073000) at uvm_fault_unwire_locked+0x226 sys/uvm/uvm_fault.c:1681 uvm_unmap_kill_entry_withlock(fffffd806632f330,fffffd806aa94978,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1887 uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2523 uvmspace_free(fffffd806632f330) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3436 reaper(ffff8000ffff97a8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000216bfd30 rbx 0xfffffd8005fbe180 rdx 0 rcx 0 rax 0xffff8000ffff97a8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x30a772c3c2be1d5a r11 0x677d96ab9c00c03c r12 0 r13 0xffff8000216bfe58 r14 0 r15 0x1 rip 0xffffffff824b37e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000216bfd20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=423808 stat=onproc flags process=14000 proc=200 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffffce0,0xffff8000ffff9518 process=0xffff8000ffffafa8 user=0xffff8000216bb000, vmspace=0xffffffff82a96898 estcpu=36, cpticks=26, pctcpu=19.50 user=0, sys=55, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 93155 243801 28368 0 2 0x482 syz-executor.0 69234 333086 28368 0 3 0x82 piperd syz-executor.3 34647 177021 1 0 3 0x100083 ttyin getty 2700 307794 0 0 3 0x14200 bored sosplice 929 439351 28368 0 2 0x482 syz-executor.5 28368 426851 6559 0 3 0x82 wait syz-fuzzer 28368 490899 6559 0 3 0x4000082 thrsleep syz-fuzzer 28368 34668 6559 0 3 0x4000082 wait syz-fuzzer 28368 267542 6559 0 3 0x4000082 thrsleep syz-fuzzer 28368 74197 6559 0 3 0x4000082 thrsleep syz-fuzzer 28368 139414 6559 0 3 0x4000082 wait syz-fuzzer 28368 499500 6559 0 3 0x4000082 wait syz-fuzzer 28368 212986 6559 0 3 0x4000082 thrsleep syz-fuzzer 28368 26371 6559 0 3 0x4000082 thrsleep syz-fuzzer 28368 163916 6559 0 3 0x4000082 wait syz-fuzzer 28368 45004 6559 0 3 0x4000082 kqread syz-fuzzer 28368 131157 6559 0 3 0x4000082 wait syz-fuzzer 28368 480245 6559 0 3 0x4000082 wait syz-fuzzer 28368 141499 6559 0 3 0x4000082 wait syz-fuzzer 6559 302432 14059 0 3 0x10008a sigsusp ksh 14059 447992 63950 0 3 0x9a kqread sshd 63950 208947 1 0 3 0x88 kqread sshd 32873 324719 90097 73 2 0x1100010 syslogd 90097 6983 1 0 3 0x100082 netio syslogd 70458 100349 1 0 3 0x100080 kqread resolvd 52229 61140 58287 77 3 0x100092 kqread dhcpleased 96317 314666 58287 77 3 0x100092 kqread dhcpleased 58287 297003 1 0 3 0x80 kqread dhcpleased 19603 498722 0 0 2 0x14200 smr 48707 511682 0 0 2 0x14200 zerothread 67500 273044 0 0 3 0x14200 aiodoned aiodoned 22047 191438 0 0 3 0x14200 syncer update 55712 380651 0 0 3 0x14200 cleaner cleaner *11228 423808 0 0 7 0x14200 reaper 80801 514340 0 0 3 0x14200 pgdaemon pagedaemon 13411 419113 0 0 3 0x14200 bored viomb 64282 402609 0 0 3 0x40014200 acpi0 acpi0 3512 43620 0 0 3 0x14200 bored softnet 7327 45015 0 0 3 0x14200 bored softnet 86757 92161 0 0 3 0x14200 bored softnet 73109 391484 0 0 3 0x14200 bored softnet 99956 438857 0 0 3 0x14200 bored systqmp 98535 230072 0 0 3 0x14200 bored systq 37542 312716 0 0 2 0x40014200 softclock 3528 21955 0 0 3 0x40014200 idle0 1 14375 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 10168 6405K 7241K 78643K 13428 0 pcb 13 8K 8K 78643K 66 0 rtable 172 13K 14K 78643K 727 0 ifaddr 71 16K 18K 78643K 310 0 sysctl 2 0K 0K 78643K 2 0 counters 24 17K 17K 78643K 67 0 ioctlops 0 0K 4K 78643K 199 0 iov 0 0K 16K 78643K 118 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1272 79K 80K 78643K 2322 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 0K 0K 78643K 2 0 sem 11 1K 1K 78643K 11 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 8 25K 65K 78643K 2825 0 sigio 0 0K 0K 78643K 12 0 proc 59 59K 75K 78643K 805 0 subproc 78 4K 6K 78643K 221 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 76 0 in_multi 66 4K 6K 78643K 232 0 ether_multi 1 0K 0K 78643K 11 0 mrt 1 0K 0K 78643K 17 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 85 387K 387K 78643K 85 0 exec 0 0K 2K 78643K 1024 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 8 62K 62K 78643K 8 0 UVM amap 227 168K 8201K 78643K 15063 0 UVM aobj 15 2K 2K 78643K 22 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 101 0 NDP 9 0K 2K 78643K 86 0 temp 117 4717K 4782K 78643K 18454 0 kqueue 12 18K 26K 78643K 194 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 161 0 158 1 0 1 1 0 8 0 rtentry 112 218 0 141 4 1 3 4 0 8 0 unpcb 144 667 0 654 2 1 1 2 0 8 0 syncache 296 55 0 55 3 3 0 1 0 8 0 tcpqe 32 50 0 50 5 5 0 1 0 8 0 tcpcb 768 413 0 409 8 7 1 6 0 8 0 arp 88 36 0 24 1 0 1 1 0 8 0 inpcb 320 1020 0 1013 5 4 1 3 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 51 0 36 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 kcovpl 48 17 0 11 1 0 1 1 0 8 0 ppxss 1160 12 0 12 1 1 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pfanchor 1280 73 0 65 2 1 1 2 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 4 0 0 1 0 1 1 0 8 0 pfstkey 120 8 0 8 1 1 0 1 0 8 0 pfstate 336 4 0 4 1 1 0 1 0 8 0 pfrule 1360 36 0 28 2 1 1 1 0 8 0 rttmr 136 8 0 8 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 865 0 541 41 16 25 29 0 8 4 art_table 32 866 0 541 5 1 4 4 0 8 0 art_node 16 217 0 147 1 0 1 1 0 8 0 sysvmsgpl 40 56 0 26 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 19 0 7 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5204 0 3761 91 0 91 91 0 8 0 ffsino 240 5204 0 3761 86 0 86 86 0 8 0 nchpl 144 8679 0 7019 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 24016 0 24016 9 8 1 2 0 8 1 vcpupl 2048 7 0 0 1 0 1 1 0 8 0 vmpool 536 7 0 0 1 0 1 1 0 8 0 kstatmem 264 104 0 86 2 0 2 2 0 8 0 scxspl 216 26998 0 26998 9 8 1 8 0 8 1 plimitpl 152 160 0 145 1 0 1 1 0 8 0 sigapl 424 3096 0 3054 6 1 5 6 0 8 0 futexpl 64 18827 0 18827 6 5 1 1 0 8 1 knotepl 120 27288 0 27218 13 9 4 7 0 8 0 kqueuepl 184 314 0 306 1 0 1 1 0 8 0 pipepl 288 349 0 326 3 1 2 3 0 8 0 fdescpl 432 3079 0 3060 4 0 4 4 0 8 0 filepl 120 10175 0 9984 10 2 8 9 0 8 0 lockfpl 104 781 0 779 1 0 1 1 0 8 0 lockfspl 48 229 0 227 1 0 1 1 0 8 0 sessionpl 144 33 0 17 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 1658 0 1648 1 0 1 1 0 8 0 zombiepl 144 3063 0 3054 1 0 1 1 0 8 0 processpl 1000 3096 0 3054 7 1 6 6 0 8 0 procpl 672 6033 0 5973 7 0 7 7 0 8 0 sosppl 168 55 0 55 4 4 0 1 0 8 0 sockpl 456 1852 0 1829 11 8 3 7 0 8 0 mcl64k 65536 4 0 4 1 1 0 1 0 8 0 mcl16k 16384 13 0 13 1 1 0 1 0 8 0 mcl12k 12288 30 0 30 2 2 0 1 0 8 0 mcl9k 9216 14 0 14 3 3 0 1 0 8 0 mcl8k 8192 127 0 127 6 6 0 1 0 8 0 mcl4k 4096 151 0 151 6 6 0 1 0 8 0 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 18712 0 18651 26 14 12 13 0 8 1 mtagpl 96 197 0 195 5 4 1 4 0 8 0 mbufpl 256 71323 0 71129 29 12 17 29 0 8 0 bufpl 288 8884 0 2480 458 0 458 458 0 8 0 anonpl 24 591883 0 572447 226 34 192 197 0 188 73 amapchunkpl 152 445976 0 444762 4414 4301 113 4411 0 158 65 amappl16 200 7715 0 7545 47 36 11 34 0 8 0 amappl15 192 881 0 874 1 0 1 1 0 8 0 amappl14 184 164 0 158 1 0 1 1 0 8 0 amappl13 176 134 0 132 1 0 1 1 0 8 0 amappl12 168 659 0 653 1 0 1 1 0 8 0 amappl11 160 90 0 74 1 0 1 1 0 8 0 amappl10 152 42 0 37 1 0 1 1 0 8 0 amappl9 144 1682 0 1680 1 0 1 1 0 8 0 amappl8 136 721 0 662 4 1 3 3 0 8 0 amappl7 128 156 0 138 1 0 1 1 0 8 0 amappl6 120 1425 0 1412 2 1 1 2 0 8 0 amappl5 112 2212 0 2195 1 0 1 1 0 8 0 amappl4 104 1214 0 1182 3 2 1 2 0 8 0 amappl3 96 8335 0 8276 2 0 2 2 0 8 0 amappl2 88 914 0 874 2 0 2 2 0 8 0 amappl1 80 72909 0 72291 21 7 14 19 0 8 0 amappl 88 14343 0 14204 4 0 4 4 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 21 0 7 1 0 1 1 0 8 0 uaddrrnd 24 3086 0 3055 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3086 0 3055 1 0 1 1 0 8 0 vmmpekpl 168 22746 0 22701 3 0 3 3 0 8 0 vmmpepl 168 287932 0 285981 138 44 94 121 0 357 2 vmsppl 272 3085 0 3054 4 1 3 3 0 8 0 rwobjpl 24 72236 0 65169 43 0 43 43 0 8 0 pdppl 4096 6178 0 6115 161 96 65 71 0 8 2 pvpl 32 1347830 0 1329326 536 171 365 370 0 265 172 pmappl 216 3085 0 3054 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 933 0 166 23 0 23 23 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:437 panic(ffffffff825786fe) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825eb387,ffffffff8259c70c,4f5,ffffffff8259c73f) at __assert+0x25 sys/kern/subr_prf.c:157 uvm_pageunwire(fffffd8005fbe180) at uvm_pageunwire+0x16b sys/uvm/uvm_page.c:1269 uvm_fault_unwire_locked(fffffd806632f330,aedd3e74000,aedd4073000) at uvm_fault_unwire_locked+0x226 sys/uvm/uvm_fault.c:1681 uvm_unmap_kill_entry_withlock(fffffd806632f330,fffffd806aa94978,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1887 uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2523 uvmspace_free(fffffd806632f330) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3436 reaper(ffff8000ffff97a8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825786fe) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825eb387,ffffffff8259c70c,4f5,ffffffff8259c73f) at __assert+0x25 sys/kern/subr_prf.c:157 uvm_pageunwire(fffffd8005fbe180) at uvm_pageunwire+0x16b sys/uvm/uvm_page.c:1269 uvm_fault_unwire_locked(fffffd806632f330,aedd3e74000,aedd4073000) at uvm_fault_unwire_locked+0x226 sys/uvm/uvm_fault.c:1681 uvm_unmap_kill_entry_withlock(fffffd806632f330,fffffd806aa94978,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1887 uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806632f330) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2523 uvmspace_free(fffffd806632f330) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3436 reaper(ffff8000ffff97a8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -9