panic: kernel diagnostic assertion "uvm_page_owner_locked_p(pg) " failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_pag e.c", line 1248 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *274062 57600 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b3528) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066bb1,ffffffff82fb6cc0,4e0,ffffffff830ba4e3 ) at __assert+0x29 uvm_pageunwire(fffffd80070a4500) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c18f010,adef516e000,adef516f00 0) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c18f010,fffffd806cfebab8 ,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c18f010) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c18f010) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457958) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: 6 https://www.openbsd.org/ddb.html describes the minimum info req uired in bug reports. Insufficient info makes it difficult to find and fix b ugs. 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 1248 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b3528) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066bb1,ffffffff82fb6cc0,4e0,ffffffff830ba4e3) at __assert+0x29 uvm_pageunwire(fffffd80070a4500) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c18f010,adef516e000,adef516f000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c18f010,fffffd806cfebab8,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c18f010) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c18f010) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457958) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a455be0 rbx 0xfffffd80070a4500 rdx 0 rcx 0 rax 0xffff80002a457958 r8 0x101010101010101 r9 0x8080808080808080 r10 0x11a040715f612358 r11 0xc9b3d8545d6a122e r12 0 r13 0xffffffff8312e898 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff82391265 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a455bd0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=274062 pid=57600 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=86, usrpri=86, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a40dbd8,0xffff80002a457458 process=0xffff8000ffffef18 user=0xffff80002a450000, vmspace=0xffffffff834c5998 estcpu=36, cpticks=27, pctcpu=19.15, user=0, sys=116565, intr=67 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66482 395881 18036 0 2 0x482 syz-executor 1804 399230 18036 0 3 0x82 wait syz-executor 6231 401792 18036 0 3 0x82 wait syz-executor 49278 372845 18036 0 3 0x82 wait syz-executor 71857 247588 18036 0 2 0x482 syz-executor 49985 354833 18036 0 3 0x82 wait syz-executor 84465 387749 18036 0 3 0x82 wait syz-executor 7765 367813 0 0 3 0x14280 nfsidl nfsio 53574 473415 0 0 3 0x14280 nfsidl nfsio 49268 133039 0 0 3 0x14280 nfsidl nfsio 67193 98363 0 0 3 0x14280 nfsidl nfsio 63106 196984 0 0 3 0x14280 nfsidl nfsio 51315 262770 0 0 3 0x14280 nfsidl nfsio 81620 256982 0 0 3 0x14280 nfsidl nfsio 51879 304728 0 0 3 0x14280 nfsidl nfsio 73099 119130 0 0 3 0x14280 nfsidl nfsio 63295 446811 0 0 3 0x14280 nfsidl nfsio 60787 5154 0 0 3 0x14280 nfsidl nfsio 99386 356758 0 0 3 0x14280 nfsidl nfsio 13282 213637 0 0 3 0x14280 nfsidl nfsio 48208 279910 0 0 3 0x14280 nfsidl nfsio 57508 293268 0 0 3 0x14280 nfsidl nfsio 15927 446145 0 0 3 0x14280 nfsidl nfsio 99770 80897 0 0 3 0x14280 nfsidl nfsio 50148 302483 0 0 3 0x14280 nfsidl nfsio 48759 167463 0 0 3 0x14280 nfsidl nfsio 20839 110384 0 0 3 0x14280 nfsidl nfsio 57317 13063 0 0 3 0x14200 acct acct 10607 10444 1 0 3 0x100083 ttyin getty 87889 208879 0 0 3 0x14200 bored sosplice 18036 174303 14667 0 3 0x82 wait syz-executor 14667 265820 9585 0 3 0x10008a sigsusp ksh 9585 389422 76808 0 3 0x98 kqread sshd-session 76808 373660 58034 0 3 0x92 kqread sshd-session 58034 336573 1 0 3 0x88 kqread sshd 46125 333548 98306 73 2 0x1100010 syslogd 98306 69742 1 0 3 0x100082 sbwait syslogd 49648 254691 1 0 3 0x100080 kqread resolvd 49296 13193 90038 77 3 0x100092 kqread dhcpleased 87185 299523 90038 77 3 0x100092 kqread dhcpleased 90038 81047 1 0 3 0x80 kqread dhcpleased 32885 446713 0 0 3 0x14200 bored smr 25414 225934 0 0 2 0x14200 zerothread 56341 314616 0 0 3 0x14200 aiodoned aiodoned 93113 71267 0 0 3 0x14200 syncer update 6409 476116 0 0 3 0x14200 cleaner cleaner *57600 274062 0 0 7 0x14200 reaper 44627 149752 0 0 3 0x14200 pgdaemon pagedaemon 64601 138668 0 0 3 0x14200 bored viomb 78585 63602 0 0 3 0x40014200 acpi0 acpi0 53536 502941 0 0 3 0x14200 bored softnet3 40709 261177 0 0 3 0x14200 bored softnet2 46504 462398 0 0 3 0x14200 bored softnet1 94889 217157 0 0 3 0x14200 bored softnet0 31859 452389 0 0 3 0x14200 bored systqmp 88697 445401 0 0 3 0x14200 bored systq 17631 47191 0 0 3 0x40014200 tmoslp softclock 56985 447029 0 0 3 0x40014200 idle0 1 485713 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 10184 11060K 11439K 166960K 13600 0 pcb 17 13K 14K 166960K 432 0 rtable 203 8K 9K 166960K 5585 0 pf 38 14K 271K 166960K 451 0 ifaddr 38 8K 10K 166960K 753 0 ifgroup 51 2K 2K 166960K 809 0 sysctl 2 0K 0K 166960K 6 0 counters 30 17K 17K 166960K 220 0 ioctlops 0 0K 4K 166960K 399 0 iov 0 0K 16K 166960K 189 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1486 93K 94K 166960K 5112 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 21 29K 48K 166960K 53 0 dirhash 15 2K 3K 166960K 45 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 9 29K 97K 166960K 4167 0 sigio 0 0K 0K 166960K 84 0 proc 60 59K 124K 166960K 5373 0 subproc 91 5K 6K 166960K 2302 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 301 0 in_multi 85 6K 7K 166960K 2018 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 121 546K 546K 166960K 121 0 exec 0 0K 1K 166960K 2901 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 232 92K 104K 166960K 29244 0 UVM aobj 49 6K 6K 166960K 51 0 pinsyscall 30 60K 96K 166960K 9587 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 85 0 NDP 11 0K 2K 166960K 558 0 temp 75 6816K 6944K 166960K 154456 0 kqueue 13 20K 30K 166960K 307 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 609 0 606 3 2 1 3 0 8 0 rtentry 112 2011 0 1922 4 1 3 4 0 8 0 unpcb 144 1614 0 1599 6 5 1 6 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 808 587 0 583 8 7 1 8 0 8 0 arp 88 366 0 350 1 0 1 1 0 8 0 ipq 40 5 0 5 1 1 0 1 0 8 0 ipqe 40 52 0 52 1 1 0 1 0 8 0 inpcb 336 2576 0 2569 11 9 2 7 0 8 1 nd6 104 540 0 519 1 0 1 1 0 8 0 pkpcb 40 11 0 11 1 1 0 1 0 8 0 kcovpl 48 177 0 170 1 0 1 1 0 8 0 ppxss 1072 9 0 9 1 1 0 1 0 8 0 pfstscr 40 7 0 7 1 1 0 1 0 8 0 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 3 0 3 1 1 0 1 0 8 0 pfstitem 24 5 0 0 1 0 1 1 0 8 0 pfstkey 128 19 0 14 1 0 1 1 0 8 0 pfstate 344 12 0 9 1 0 1 1 0 8 0 pfrule 1344 13 0 12 1 0 1 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 8040 0 7667 35 8 27 30 0 8 0 art_table 32 8044 0 7667 4 0 4 4 0 8 0 art_node 16 2009 0 1931 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 42 1 0 1 1 0 8 0 semapl 112 46 0 27 1 0 1 1 0 8 0 shmpl 112 48 0 2 2 0 2 2 0 8 0 dirhash 1024 40 0 20 3 0 3 3 0 8 0 dino2pl 256 4735 0 2914 114 0 114 114 0 8 0 ffsino 240 4735 0 2914 108 0 108 108 0 8 0 nchpl 144 7019 0 5105 71 0 71 71 0 8 0 uvmvnodes 80 7940 0 0 163 0 163 163 0 8 0 vnodes 216 7940 0 0 442 0 442 442 0 8 0 namei 1024 43187 0 43187 4 3 1 2 0 8 1 kstatmem 264 402 0 380 2 0 2 2 0 8 0 scsiplug 72 10 0 10 1 1 0 1 0 8 0 scxspl 216 78345 0 78345 8 7 1 8 1 8 1 plimitpl 152 781 0 764 1 0 1 1 0 8 0 sigapl 424 4155 0 4087 8 0 8 8 0 8 0 futexpl 64 24257 0 24257 1 0 1 1 0 8 1 knotepl 120 66901 0 66854 24 15 9 16 0 8 7 kqueuepl 184 597 0 588 5 4 1 5 0 8 0 pipepl 288 1009 0 982 7 4 3 7 0 8 0 fdescpl 432 4093 0 4072 5 1 4 5 0 8 0 filepl 120 19661 0 19444 15 7 8 14 0 8 0 lockfpl 104 539 0 537 2 1 1 2 0 8 0 lockfspl 48 186 0 184 1 0 1 1 0 8 0 sessionpl 144 193 0 185 1 0 1 1 0 8 0 pgrppl 48 388 0 372 1 0 1 1 0 8 0 ucredpl 104 2136 0 2125 1 0 1 1 0 8 0 zombiepl 144 4131 0 4122 3 2 1 1 0 8 0 processpl 1096 4155 0 4087 7 1 6 6 0 8 0 procpl 648 6397 0 6316 8 1 7 8 0 8 0 sosppl 168 9 0 9 1 1 0 1 0 8 0 sockpl 504 4828 0 4803 37 31 6 20 0 8 2 mcl64k 65536 32 0 32 3 2 1 1 0 8 1 mcl16k 16384 11 0 11 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 2 2 0 1 0 8 0 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 28 0 28 2 2 0 1 0 8 0 mcl4k 4096 5181 0 5129 17 9 8 17 0 8 0 mcl2k 2048 4965 0 4963 9 4 5 5 0 8 4 mtagpl 96 146 0 143 4 3 1 2 0 8 0 mbufpl 256 36420 0 36269 43 21 22 31 0 8 8 bufpl 280 13302 0 4773 611 1 610 610 0 8 0 anonpl 24 567658 0 559608 105 56 49 79 0 187 0 amapchunkpl 152 94157 0 93197 76 39 37 39 0 158 0 amappl16 200 7223 0 7205 43 42 1 14 0 8 0 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 451 0 441 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 7384 0 7354 3 1 2 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 16 0 16 1 1 0 1 0 8 0 amappl9 144 182 0 181 1 0 1 1 0 8 0 amappl8 136 18 0 17 1 0 1 1 0 8 0 amappl7 128 436 0 426 1 0 1 1 0 8 0 amappl6 120 1870 0 1866 1 0 1 1 0 8 0 amappl5 112 808 0 799 1 0 1 1 0 8 0 amappl4 104 799 0 782 1 0 1 1 0 8 0 amappl3 96 17052 0 16936 4 1 3 4 0 8 0 amappl2 88 3035 0 2972 2 0 2 2 0 8 0 amappl1 80 29786 0 29265 13 1 12 13 0 8 0 amappl 88 27532 0 27355 5 1 4 5 0 92 0 dma65536 65536 3 0 3 1 1 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 1 1 0 1 0 8 0 dma128 128 255 0 255 1 1 0 1 0 8 0 dma64 64 8 0 8 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 50 0 2 1 0 1 1 0 8 0 uaddrrnd 24 4093 0 4064 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4093 0 4064 1 0 1 1 0 8 0 vmmpekpl 168 32848 0 32793 3 0 3 3 0 8 0 vmmpepl 168 250366 0 248592 93 15 78 89 0 357 0 vmsppl 344 4092 0 4063 4 1 3 4 0 8 0 rwobjpl 24 75992 0 67155 54 0 54 54 0 8 0 pdppl 4096 8192 0 8126 338 270 68 82 0 8 2 pvpl 32 2075380 0 2063971 574 363 211 327 0 265 90 pmappl 216 4092 0 4063 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 751 0 376 12 0 12 12 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(ffffffff830b3528) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066bb1,ffffffff82fb6cc0,4e0,ffffffff830ba4e3) at __assert+0x29 uvm_pageunwire(fffffd80070a4500) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c18f010,adef516e000,adef516f000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c18f010,fffffd806cfebab8,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c18f010) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c18f010) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457958) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b3528) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066bb1,ffffffff82fb6cc0,4e0,ffffffff830ba4e3) at __assert+0x29 uvm_pageunwire(fffffd80070a4500) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c18f010,adef516e000,adef516f000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c18f010,fffffd806cfebab8,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c18f010) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c18f010) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457958) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9