panic: kernel diagnostic assertion "uvm_page_owner_locked_p(pg)" failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_page.c", line 1268 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 57486 16748 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8242c327) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249de6a,ffffffff8245034c,4f4,ffffffff8245037f) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_pageunwire(fffffd8006006800) at uvm_pageunwire+0x19b sys/uvm/uvm_page.c:1268 uvm_fault_unwire_locked(fffffd806aec6ab0,bf1e0290000,bf1e048f000) at uvm_fault_unwire_locked+0x23b sys/uvm/uvm_fault.c:1656 uvm_unmap_kill_entry_withlock(fffffd806aec6ab0,fffffd806ca42af0,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:2135 uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd806aec6ab0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffed20) at reaper+0x15e sys/kern/kern_exit.c:462 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 1268 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8242c327) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249de6a,ffffffff8245034c,4f4,ffffffff8245037f) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_pageunwire(fffffd8006006800) at uvm_pageunwire+0x19b sys/uvm/uvm_page.c:1268 uvm_fault_unwire_locked(fffffd806aec6ab0,bf1e0290000,bf1e048f000) at uvm_fault_unwire_locked+0x23b sys/uvm/uvm_fault.c:1656 uvm_unmap_kill_entry_withlock(fffffd806aec6ab0,fffffd806ca42af0,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:2135 uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd806aec6ab0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffed20) at reaper+0x15e sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002160e3c0 rbx 0xfffffd8006006800 rdx 0 rcx 0 rax 0xffff8000ffffed20 r8 0x101010101010101 r9 0x8080808080808080 r10 0xcddd28762bcc0da8 r11 0x7b071ed3eb75d09b r12 0 r13 0xffffffff826a67c8 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff8170eaa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002160e3b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=57486 stat=onproc flags process=14000 proc=200 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffffea80,0xffff8000fffff7b0 process=0xffff8000ffffafa8 user=0xffff800021609000, vmspace=0xffffffff8292bc48 estcpu=36, cpticks=72, pctcpu=20.9 user=0, sys=190, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 49137 143773 0 0 3 0x14200 bored sosplice 81982 398578 84825 0 3 0x82 thrsleep syz-fuzzer 81982 134549 84825 0 2 0x4000482 syz-fuzzer 81982 490633 84825 0 3 0x4000082 thrsleep syz-fuzzer 81982 277535 84825 0 3 0x4000082 wait syz-fuzzer 81982 513506 84825 0 3 0x4000082 thrsleep syz-fuzzer 81982 390429 84825 0 3 0x4000082 wait syz-fuzzer 81982 225830 84825 0 3 0x4000082 wait syz-fuzzer 84825 273109 91742 0 3 0x10008a sigsusp ksh 91742 461032 46223 0 3 0x9a poll sshd 8094 429028 1 0 3 0x100083 ttyin getty 46223 318379 1 0 3 0x88 poll sshd 96249 189427 87147 73 2 0x100010 syslogd 87147 54328 1 0 3 0x100082 netio syslogd 3963 87491 1 0 3 0x100080 kqread resolvd 63388 255757 79410 77 3 0x100092 kqread dhcpleased 27027 394117 79410 77 3 0x100092 kqread dhcpleased 79410 108487 1 0 3 0x80 kqread dhcpleased 79658 460289 0 0 3 0x14200 bored smr 18584 111534 0 0 2 0x14200 zerothread 2634 465255 0 0 3 0x14200 aiodoned aiodoned 13221 442980 0 0 2 0x14600 update 14623 230660 0 0 3 0x14200 cleaner cleaner *16748 57486 0 0 7 0x14200 reaper 5367 46030 0 0 3 0x14200 pgdaemon pagedaemon 93950 287808 0 0 3 0x14200 bored viomb 25076 478297 0 0 3 0x40014200 acpi0 acpi0 56057 386911 0 0 2 0x14200 softnet 22168 355391 0 0 2 0x14200 systqmp 37510 499517 0 0 3 0x14200 bored systq 89414 172308 0 0 2 0x40014200 softclock 8588 350408 0 0 3 0x40014200 idle0 1 112214 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 10133 6381K 6714K 78643K 11765 0 pcb 13 8K 8K 78643K 81 0 rtable 63 2K 5K 78643K 277 0 ifaddr 24 7K 13K 78643K 157 0 counters 19 16K 17K 78643K 43 0 ioctlops 0 0K 4K 78643K 86 0 iov 0 0K 12K 78643K 4 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1233 78K 78K 78643K 1409 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 80 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 2 1K 49K 78643K 707 0 proc 57 55K 79K 78643K 409 0 subproc 0 0K 3K 78643K 65 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 48 0 in_multi 11 0K 3K 78643K 97 0 ether_multi 1 0K 0K 78643K 22 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 2K 78643K 437 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 210 49K 61K 78643K 9544 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 41 0 NDP 3 0K 1K 78643K 35 0 temp 35 4179K 4243K 78643K 5038 0 kqueue 10 14K 20K 78643K 43 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 50 0 47 1 0 1 1 0 8 0 rtentry 112 67 0 45 2 1 1 2 0 8 0 unpcb 136 175 0 162 1 0 1 1 0 8 0 syncache 296 9 0 9 2 2 0 1 0 8 0 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 736 131 0 127 3 2 1 3 0 8 0 arp 88 10 0 8 1 0 1 1 0 8 0 inpcb 304 408 0 401 2 1 1 2 0 8 0 nd6 48 12 0 12 1 1 0 1 0 8 0 kcovpl 48 5 0 5 1 0 1 1 0 8 1 ppxss 1152 20 0 20 1 1 0 1 0 8 0 pfrktable 1344 22 0 22 1 1 0 1 0 8 0 pfrule 1360 52 0 52 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 276 0 180 18 5 13 18 0 8 7 art_table 32 277 0 180 3 2 1 3 0 8 0 art_node 16 66 0 46 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 73 0 63 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2274 0 867 89 0 89 89 0 8 0 ffsino 240 2274 0 867 84 0 84 84 0 8 0 nchpl 144 3255 0 1659 61 0 61 61 0 8 0 uvmvnodes 80 2429 0 0 50 0 50 50 0 8 0 vnodes 224 2429 0 0 143 0 143 143 0 8 0 namei 1024 8686 0 8686 2 2 0 1 0 8 0 scxspl 216 9680 0 9680 9 8 1 8 0 8 1 plimitpl 152 59 0 48 1 0 1 1 0 8 0 sigapl 424 920 0 893 5 1 4 5 0 8 0 futexpl 64 5091 0 5091 4 4 0 1 0 8 0 knotepl 112 359 0 313 2 0 2 2 0 8 0 kqueuepl 184 101 0 95 1 0 1 1 0 8 0 pipepl 304 102 0 89 2 0 2 2 0 8 0 fdescpl 432 906 0 893 4 2 2 3 0 8 0 filepl 120 3163 0 3088 5 0 5 5 0 8 0 lockfpl 104 24 0 22 1 0 1 1 0 8 0 lockfspl 48 13 0 11 1 0 1 1 0 8 0 sessionpl 144 20 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 8 1 0 1 1 0 8 0 ucredpl 96 450 0 440 1 0 1 1 0 8 0 zombiepl 144 893 0 886 1 0 1 1 0 8 0 processpl 1000 920 0 886 5 0 5 5 0 8 0 procpl 672 1663 0 1621 5 1 4 5 0 8 0 sosppl 168 13 0 13 1 1 0 1 0 8 0 sockpl 448 633 0 610 5 2 3 5 0 8 0 mcl64k 65536 90 0 90 5 5 0 1 0 8 0 mcl16k 16384 19 0 19 1 1 0 1 0 8 0 mcl12k 12288 16 0 16 1 1 0 1 0 8 0 mcl9k 9216 16 0 16 1 1 0 1 0 8 0 mcl8k 8192 8 0 8 1 1 0 1 0 8 0 mcl4k 4096 44 0 44 3 3 0 1 0 8 0 mcl2k 2048 14681 0 14590 20 8 12 12 0 8 0 mtagpl 96 59 0 59 3 3 0 2 0 8 0 mbufpl 256 34371 0 34163 28 9 19 24 0 8 4 bufpl 288 6113 0 135 427 0 427 427 0 8 0 anonpl 24 284838 0 265803 270 41 229 269 0 188 103 amapchunkpl 152 27866 0 26661 108 14 94 108 0 158 44 amappl16 200 1597 0 1450 11 3 8 9 0 8 0 amappl15 192 328 0 326 1 0 1 1 0 8 0 amappl14 184 143 0 142 1 0 1 1 0 8 0 amappl13 176 40 0 38 1 0 1 1 0 8 0 amappl12 168 6 0 5 2 1 1 1 0 8 0 amappl11 160 46 0 34 1 0 1 1 0 8 0 amappl10 152 51 0 44 1 0 1 1 0 8 0 amappl9 144 650 0 644 1 0 1 1 0 8 0 amappl8 136 344 0 313 4 2 2 2 0 8 0 amappl7 128 72 0 63 1 0 1 1 0 8 0 amappl6 120 326 0 310 1 0 1 1 0 8 0 amappl5 112 837 0 821 1 0 1 1 0 8 0 amappl4 104 570 0 546 1 0 1 1 0 8 0 amappl3 96 169 0 153 1 0 1 1 0 8 0 amappl2 88 344 0 304 2 0 2 2 0 8 0 amappl1 80 18489 0 18020 14 3 11 12 0 8 0 amappl 88 9217 0 9064 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 906 0 887 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 906 0 887 1 0 1 1 0 8 0 vmmpekpl 168 8627 0 8604 2 0 2 2 0 8 0 vmmpepl 168 81899 0 80420 84 10 74 80 0 357 4 vmsppl 272 905 0 886 3 1 2 2 0 8 0 rwobjpl 24 22503 0 19167 21 0 21 21 0 8 0 pdppl 4096 1818 0 1772 82 35 47 56 0 8 1 pvpl 32 570948 0 552333 517 169 348 501 0 265 176 pmappl 216 905 0 886 3 1 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 779 0 77 21 0 21 21 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(ffffffff8242c327) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249de6a,ffffffff8245034c,4f4,ffffffff8245037f) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_pageunwire(fffffd8006006800) at uvm_pageunwire+0x19b sys/uvm/uvm_page.c:1268 uvm_fault_unwire_locked(fffffd806aec6ab0,bf1e0290000,bf1e048f000) at uvm_fault_unwire_locked+0x23b sys/uvm/uvm_fault.c:1656 uvm_unmap_kill_entry_withlock(fffffd806aec6ab0,fffffd806ca42af0,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:2135 uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd806aec6ab0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffed20) at reaper+0x15e sys/kern/kern_exit.c:462 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:440 panic(ffffffff8242c327) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff8249de6a,ffffffff8245034c,4f4,ffffffff8245037f) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_pageunwire(fffffd8006006800) at uvm_pageunwire+0x19b sys/uvm/uvm_page.c:1268 uvm_fault_unwire_locked(fffffd806aec6ab0,bf1e0290000,bf1e048f000) at uvm_fault_unwire_locked+0x23b sys/uvm/uvm_fault.c:1656 uvm_unmap_kill_entry_withlock(fffffd806aec6ab0,fffffd806ca42af0,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:2135 uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806aec6ab0) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd806aec6ab0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffed20) at reaper+0x15e sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -9