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 *156322 35359 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(fffffd8007410900) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c1be820,782022fc000,782024fb00 0) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c1be820,fffffd807d8616c0 ,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c1be820) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c1be820) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a4576d0) 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(fffffd8007410900) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c1be820,782022fc000,782024fb000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c1be820,fffffd807d8616c0,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c1be820) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c1be820) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a4576d0) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a4556c0 rbx 0xfffffd8007410900 rdx 0 rcx 0 rax 0xffff80002a4576d0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2c9054f418c1d7c4 r11 0xb1dc435d6f6460fb r12 0 r13 0xffffffff8312e898 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff82391265 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a4556b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=156322 pid=35359 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=0xffff80002a40d950,0xffff80002a457458 process=0xffff8000ffffef18 user=0xffff80002a450000, vmspace=0xffffffff834c5998 estcpu=36, cpticks=22, pctcpu=20.22, user=0, sys=73700, intr=13 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45922 174965 98688 0 2 0x2 syz-executor 76777 493386 98688 0 2 0x2 syz-executor 86556 147633 98688 0 2 0x2 syz-executor 35664 517084 98688 0 3 0x82 wait syz-executor 58521 321091 98688 0 2 0x2 syz-executor 54580 331644 98688 0 2 0x2 syz-executor 96413 430973 98688 0 3 0x82 piperd syz-executor 68075 324426 98688 0 2 0x2 syz-executor 52689 305900 0 0 3 0x14200 acct acct 76223 360847 1 0 3 0x100083 ttyopn getty 787 290352 0 0 3 0x14200 bored sosplice 98688 180806 65480 0 3 0x82 wait syz-executor 65480 247986 46851 0 3 0x10008a sigsusp ksh 46851 53732 97344 0 3 0x98 kqread sshd-session 97344 7773 1 0 3 0x92 kqread sshd-session 60590 230603 51172 73 2 0x1100010 syslogd 51172 126223 1 0 3 0x100082 sbwait syslogd 40964 311202 1 0 3 0x100080 kqread resolvd 85353 492049 79901 77 3 0x100092 kqread dhcpleased 14806 117359 79901 77 3 0x100092 kqread dhcpleased 79901 202729 1 0 3 0x80 kqread dhcpleased 25439 109055 0 0 2 0x14200 smr 88332 335365 0 0 2 0x14200 zerothread 29688 229599 0 0 3 0x14200 aiodoned aiodoned 22023 488089 0 0 3 0x14200 syncer update 56303 208811 0 0 3 0x14200 cleaner cleaner *35359 156322 0 0 7 0x14200 reaper 64093 15761 0 0 3 0x14200 pgdaemon pagedaemon 75978 88765 0 0 3 0x14200 bored viomb 88154 224525 0 0 3 0x40014200 acpi0 acpi0 64646 95173 0 0 3 0x14200 bored softnet3 29126 337513 0 0 3 0x14200 bored softnet2 77831 238487 0 0 3 0x14200 bored softnet1 40432 253821 0 0 3 0x14200 bored softnet0 89512 371128 0 0 3 0x14200 bored systqmp 84816 84785 0 0 3 0x14200 bored systq 23183 353318 0 0 2 0x40014200 softclock 20120 434398 0 0 3 0x40014200 idle0 1 277449 0 0 3 0x80082 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 10270 11155K 11520K 166960K 13329 0 pcb 17 15K 17K 166960K 376 0 rtable 201 7K 8K 166960K 3452 0 pf 30 12K 13K 166960K 259 0 ifaddr 38 7K 8K 166960K 458 0 ifgroup 50 2K 2K 166960K 478 0 sysctl 3 0K 0K 166960K 3 0 counters 30 17K 17K 166960K 139 0 ioctlops 0 0K 4K 166960K 378 0 iov 0 0K 24K 166960K 139 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1442 91K 91K 166960K 3600 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 29 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 98 0 dirhash 15 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 10 30K 97K 166960K 2595 0 sigio 0 0K 0K 166960K 25 0 proc 60 59K 100K 166960K 3271 0 subproc 91 5K 7K 166960K 1352 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 192 0 in_multi 85 6K 8K 166960K 1205 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 1728 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 172 72K 98K 166960K 19381 0 UVM aobj 40 6K 6K 166960K 45 0 pinsyscall 30 60K 96K 166960K 6134 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 81 0 NDP 11 0K 2K 166960K 332 0 temp 77 6816K 6944K 166960K 77051 0 kqueue 12 18K 28K 166960K 195 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 398 0 395 3 2 1 3 0 8 0 rtentry 112 1222 0 1133 4 0 4 4 0 8 0 unpcb 144 1373 0 1358 6 4 2 6 0 8 1 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 524 0 521 7 6 1 7 0 8 0 arp 88 222 0 204 1 0 1 1 0 8 0 ipq 40 8 0 7 1 0 1 1 0 8 0 ipqe 40 105 0 104 1 0 1 1 0 8 0 inpcb 336 2332 0 2327 18 11 7 12 0 8 6 nd6 104 324 0 305 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 1 0 1 0 8 0 kcovpl 48 104 0 97 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 1 0 1 0 8 0 pfrule 1344 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 4876 0 4492 33 4 29 32 0 8 0 art_table 32 4880 0 4492 5 1 4 5 0 8 0 art_node 16 1220 0 1141 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 95 0 85 1 0 1 1 0 8 0 shmpl 112 42 0 5 2 0 2 2 0 8 0 dirhash 1024 21 0 2 3 0 3 3 0 8 0 dino2pl 256 3618 0 1935 106 0 106 106 0 8 0 ffsino 240 3619 0 1935 100 0 100 100 0 8 0 nchpl 144 5272 0 3471 68 0 68 68 0 8 0 uvmvnodes 80 5591 0 0 115 0 115 115 0 8 0 vnodes 216 5591 0 0 311 0 311 311 0 8 0 namei 1024 27779 0 27777 2 1 1 2 0 8 0 kstatmem 264 240 0 218 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 48146 0 48146 8 7 1 8 1 8 1 plimitpl 152 521 0 504 1 0 1 1 0 8 0 sigapl 424 2690 0 2649 7 1 6 7 0 8 0 futexpl 64 16593 0 16593 1 0 1 1 0 8 1 knotepl 120 38664 0 38621 23 20 3 17 0 8 0 kqueuepl 184 273 0 265 1 0 1 1 0 8 0 pipepl 288 528 0 501 5 2 3 5 0 8 0 fdescpl 432 2671 0 2649 5 1 4 5 0 8 0 filepl 120 13741 0 13523 16 5 11 14 0 8 2 lockfpl 104 479 0 477 2 1 1 2 0 8 0 lockfspl 48 214 0 212 1 0 1 1 0 8 0 sessionpl 144 121 0 114 1 0 1 1 0 8 0 pgrppl 48 245 0 229 1 0 1 1 0 8 0 ucredpl 104 1752 0 1741 1 0 1 1 0 8 0 zombiepl 144 2651 0 2649 1 0 1 1 0 8 0 processpl 1096 2690 0 2649 4 0 4 4 0 8 0 procpl 648 4246 0 4202 6 0 6 6 0 8 0 sosppl 168 10 0 10 1 1 0 1 0 8 0 sockpl 504 4258 0 4235 57 45 12 21 0 8 8 mcl64k 65536 26 0 26 1 1 0 1 0 8 0 mcl16k 16384 7 0 7 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 17 0 17 1 1 0 1 0 8 0 mcl4k 4096 4190 0 4134 14 6 8 14 0 8 0 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 3202 0 3201 4 2 2 3 0 8 1 mtagpl 96 49 0 47 1 0 1 1 0 8 0 mbufpl 256 24886 0 24716 30 16 14 24 0 8 0 bufpl 280 11195 0 3591 544 0 544 544 0 8 0 anonpl 24 378152 0 370429 120 41 79 79 0 187 11 amapchunkpl 152 63547 0 62946 68 20 48 48 0 158 16 amappl16 200 5511 0 5483 42 40 2 15 0 8 0 amappl15 192 10 0 9 1 0 1 1 0 8 0 amappl14 184 303 0 294 1 0 1 1 0 8 0 amappl13 176 48 0 48 1 1 0 1 0 8 0 amappl12 168 4793 0 4771 2 0 2 2 0 8 0 amappl11 160 60 0 50 1 0 1 1 0 8 0 amappl10 152 60 0 59 1 0 1 1 0 8 0 amappl9 144 186 0 186 1 1 0 1 0 8 0 amappl8 136 22 0 21 1 0 1 1 0 8 0 amappl7 128 291 0 282 1 0 1 1 0 8 0 amappl6 120 1125 0 1123 1 0 1 1 0 8 0 amappl5 112 553 0 544 1 0 1 1 0 8 0 amappl4 104 577 0 565 1 0 1 1 0 8 0 amappl3 96 11666 0 11590 4 1 3 4 0 8 0 amappl2 88 2007 0 1953 2 0 2 2 0 8 0 amappl1 80 20917 0 20502 13 3 10 13 0 8 0 amappl 88 18185 0 18062 5 0 5 5 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 255 0 255 1 1 0 1 0 8 0 dma64 64 7 0 7 1 1 0 1 0 8 0 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 44 0 5 1 0 1 1 0 8 0 uaddrrnd 24 2671 0 2649 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2671 0 2649 1 0 1 1 0 8 0 vmmpekpl 168 21627 0 21571 3 0 3 3 0 8 0 vmmpepl 168 166586 0 165280 89 17 72 89 0 357 2 vmsppl 344 2670 0 2648 4 1 3 4 0 8 0 rwobjpl 24 52239 0 45896 39 0 39 39 0 8 0 pdppl 4096 5348 0 5296 236 172 64 82 0 8 12 pvpl 32 1390252 0 1380265 604 242 362 362 0 265 235 pmappl 216 2670 0 2648 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 626 0 271 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(fffffd8007410900) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c1be820,782022fc000,782024fb000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c1be820,fffffd807d8616c0,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c1be820) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c1be820) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a4576d0) 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(fffffd8007410900) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c1be820,782022fc000,782024fb000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c1be820,fffffd807d8616c0,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c1be820) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c1be820) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a4576d0) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9