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 *479105 6965 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b56e5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067daa,ffffffff82fb773b,4e0,ffffffff830bae0b ) at __assert+0x29 uvm_pageunwire(fffffd8007473080) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075f5c160,b5ad198a000,b5ad1b8900 0) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075f5c160,fffffd806a1e9e40 ,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075f5c160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075f5c160) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457be0) 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(ffffffff830b56e5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067daa,ffffffff82fb773b,4e0,ffffffff830bae0b) at __assert+0x29 uvm_pageunwire(fffffd8007473080) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075f5c160,b5ad198a000,b5ad1b89000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075f5c160,fffffd806a1e9e40,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075f5c160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075f5c160) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457be0) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a455260 rbx 0xfffffd8007473080 rdx 0 rcx 0 rax 0xffff80002a457be0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe33a2b81bb621b4b r11 0xe5a5411765746083 r12 0 r13 0xffffffff83232da8 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff82b40c75 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a455250 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=479105 pid=6965 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,0xffff80002a457968 process=0xffff8000ffffead0 user=0xffff80002a450000, vmspace=0xffffffff835cb180 estcpu=36, cpticks=79, pctcpu=18.21, user=0, sys=55808, intr=9 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 97757 515489 59885 0 3 0x82 wait syz-executor 25319 146623 59885 0 3 0x82 wait syz-executor 21097 200058 59885 0 3 0x82 wait syz-executor 59723 480266 59885 0 3 0x82 nanoslp syz-executor 54042 502417 59885 0 3 0x82 wait syz-executor 28641 459464 59885 0 3 0x82 wait syz-executor 33141 424953 59885 0 3 0x82 wait syz-executor 85306 261304 0 0 3 0x14200 bored sosplice 59885 332370 27770 0 3 0x82 wait syz-executor 27770 329886 34687 0 3 0x10008a sigsusp ksh 34687 291318 98164 0 3 0x98 kqread sshd-session 98164 203882 10133 0 3 0x92 kqread sshd-session 6823 374851 1 0 3 0x100083 ttyin getty 10133 12042 1 0 3 0x88 kqread sshd 91044 402400 68899 73 2 0x1100010 syslogd 68899 237665 1 0 3 0x100082 sbwait syslogd 95029 512488 1 0 3 0x100080 kqread resolvd 21399 25282 52413 77 3 0x100092 kqread dhcpleased 11189 365106 52413 77 3 0x100092 kqread dhcpleased 52413 75084 1 0 3 0x80 kqread dhcpleased 22466 249537 0 0 3 0x14200 bored smr 2318 47014 0 0 2 0x14200 zerothread 69867 456799 0 0 3 0x14200 aiodoned aiodoned 57702 513029 0 0 3 0x14200 syncer update 38285 77801 0 0 3 0x14200 cleaner cleaner * 6965 479105 0 0 7 0x14200 reaper 86281 485829 0 0 3 0x14200 pgdaemon pagedaemon 30488 478136 0 0 3 0x14200 bored viomb 62547 118179 0 0 3 0x40014200 acpi0 acpi0 50738 392560 0 0 3 0x14200 bored softnet3 6795 257781 0 0 3 0x14200 bored softnet2 14854 388799 0 0 3 0x14200 bored softnet1 21249 86667 0 0 3 0x14200 bored softnet0 51113 23937 0 0 3 0x14200 bored systqmp 82737 6650 0 0 3 0x14200 bored systq 59447 509544 0 0 2 0x40014200 softclock 24578 13797 0 0 3 0x40014200 idle0 1 306765 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 10173 11038K 11444K 166960K 13744 0 pcb 17 16K 17K 166960K 291 0 rtable 202 7K 8K 166960K 3002 0 pf 34 14K 21K 166960K 261 0 ifaddr 37 7K 8K 166960K 398 0 ifgroup 46 2K 2K 166960K 429 0 sysctl 2 0K 1K 166960K 6 0 counters 29 17K 17K 166960K 133 0 ioctlops 0 0K 4K 166960K 254 0 iov 0 0K 16K 166960K 167 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1495 94K 94K 166960K 3575 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 66 0 dirhash 15 2K 3K 166960K 42 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 9 29K 97K 166960K 2667 0 sigio 0 0K 0K 166960K 42 0 proc 60 59K 124K 166960K 2837 0 subproc 91 5K 7K 166960K 1171 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 269 0 in_multi 87 6K 7K 166960K 1027 0 ether_multi 1 0K 0K 166960K 11 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 1616 0 pfkey data 0 0K 0K 166960K 35 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 214 90K 106K 166960K 21958 0 UVM aobj 50 4K 4K 166960K 55 0 pinsyscall 30 60K 102K 166960K 5760 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 68 0 NDP 10 0K 2K 166960K 291 0 temp 78 6816K 6944K 166960K 87374 0 kqueue 13 20K 32K 166960K 289 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 456 0 453 3 0 3 3 0 8 2 rtentry 112 1052 0 962 4 0 4 4 0 8 0 unpcb 144 1512 0 1497 14 5 9 9 0 8 8 syncache 336 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 0 1 1 0 8 1 tcpcb 808 581 0 577 12 7 5 8 0 8 4 arp 88 190 0 174 1 0 1 1 0 8 0 ipq 40 7 0 7 1 0 1 1 0 8 1 ipqe 40 77 0 77 1 0 1 1 0 8 1 inpcb 336 2670 0 2662 23 14 9 13 0 8 8 nd6 104 278 0 256 1 0 1 1 0 8 0 pkpcb 40 14 0 14 2 1 1 1 0 8 1 kcovpl 48 90 0 83 1 0 1 1 0 8 0 ppxss 1072 19 0 19 2 1 1 1 0 8 1 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pfrktable 1344 2 0 0 1 0 1 1 0 8 0 pftag 88 4 0 0 1 0 1 1 0 8 0 pfstitem 24 8 0 0 1 0 1 1 0 8 0 pfstkey 128 20 0 13 1 0 1 1 0 8 0 pfstate 344 10 0 6 1 0 1 1 0 8 0 pfrule 1344 15 0 11 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 4130 0 3722 30 0 30 30 0 8 1 art_table 32 4133 0 3722 4 0 4 4 0 8 0 art_node 16 1047 0 966 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 12 1 0 1 1 0 8 0 semapl 112 63 0 53 1 0 1 1 0 8 0 shmpl 112 52 0 5 2 0 2 2 0 8 0 dirhash 1024 37 0 18 3 0 3 3 0 8 0 dino2pl 256 4123 0 2478 104 0 104 104 0 8 0 ffsino 240 4123 0 2478 98 0 98 98 0 8 0 nchpl 144 6208 0 4426 67 0 67 67 0 8 0 uvmvnodes 80 6025 0 0 123 0 123 123 0 8 0 vnodes 216 6025 0 0 335 0 335 335 0 8 0 namei 1024 29253 0 29253 3 1 2 2 0 8 2 kstatmem 264 228 0 208 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 57644 0 57644 10 2 8 8 1 8 8 plimitpl 152 448 0 431 1 0 1 1 0 8 0 sigapl 424 2806 0 2759 8 0 8 8 0 8 1 futexpl 64 21394 0 21394 1 0 1 1 0 8 1 knotepl 120 52458 0 52411 24 14 10 17 0 8 8 kqueuepl 184 421 0 412 1 0 1 1 0 8 0 pipepl 288 480 0 453 3 0 3 3 0 8 0 fdescpl 432 2764 0 2743 5 1 4 5 0 8 0 filepl 120 14693 0 14476 23 7 16 17 0 8 7 lockfpl 104 477 0 475 1 0 1 1 0 8 0 lockfspl 48 194 0 192 1 0 1 1 0 8 0 sessionpl 144 101 0 93 1 0 1 1 0 8 0 pgrppl 48 204 0 188 1 0 1 1 0 8 0 ucredpl 104 1496 0 1484 1 0 1 1 0 8 0 zombiepl 144 3507 0 3498 1 0 1 1 0 8 0 processpl 1096 2806 0 2759 6 0 6 6 0 8 1 procpl 648 5178 0 5125 9 1 8 8 0 8 3 sosppl 168 11 0 11 1 0 1 1 0 8 1 sockpl 504 4670 0 4644 83 71 12 40 0 8 8 mcl64k 65536 12 0 12 2 1 1 1 0 8 1 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 4885 0 4836 14 6 8 13 0 8 1 mcl2k2 2112 5 0 5 1 0 1 1 0 8 1 mcl2k 2048 3340 0 3338 6 3 3 4 0 8 2 mtagpl 96 33 0 31 1 0 1 1 0 8 0 mbufpl 256 27338 0 27132 33 10 23 27 0 8 7 bufpl 280 11215 0 3766 533 0 533 533 0 8 0 anonpl 24 431298 0 423427 125 27 98 98 0 187 50 amapchunkpl 152 85077 0 84370 63 13 50 50 0 158 22 amappl16 200 7663 0 7643 73 63 10 27 0 8 8 amappl15 192 24 0 24 1 1 0 1 0 8 0 amappl14 184 271 0 261 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 4668 0 4637 3 1 2 3 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 113 0 113 1 1 0 1 0 8 0 amappl8 136 25 0 24 1 0 1 1 0 8 0 amappl7 128 253 0 242 1 0 1 1 0 8 0 amappl6 120 964 0 962 1 0 1 1 0 8 0 amappl5 112 448 0 439 1 0 1 1 0 8 0 amappl4 104 518 0 502 1 0 1 1 0 8 0 amappl3 96 13645 0 13541 5 1 4 4 0 8 0 amappl2 88 1768 0 1704 2 0 2 2 0 8 0 amappl1 80 19611 0 19101 14 2 12 13 0 8 0 amappl 88 20870 0 20712 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 2 0 2 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 1 1 1 0 8 1 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 54 0 5 1 0 1 1 0 8 0 uaddrrnd 24 2764 0 2735 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2764 0 2735 1 0 1 1 0 8 0 vmmpekpl 168 22370 0 22321 3 0 3 3 0 8 0 vmmpepl 168 173103 0 171374 108 9 99 99 0 357 22 vmsppl 344 2763 0 2734 4 1 3 4 0 8 0 rwobjpl 24 55223 0 48328 43 0 43 43 0 8 0 pdppl 4096 5534 0 5468 208 142 66 82 0 8 0 pvpl 32 1354221 0 1342817 498 139 359 361 0 265 237 pmappl 216 2763 0 2734 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 635 0 260 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(ffffffff830b56e5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067daa,ffffffff82fb773b,4e0,ffffffff830bae0b) at __assert+0x29 uvm_pageunwire(fffffd8007473080) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075f5c160,b5ad198a000,b5ad1b89000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075f5c160,fffffd806a1e9e40,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075f5c160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075f5c160) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457be0) 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(ffffffff830b56e5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067daa,ffffffff82fb773b,4e0,ffffffff830bae0b) at __assert+0x29 uvm_pageunwire(fffffd8007473080) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075f5c160,b5ad198a000,b5ad1b89000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075f5c160,fffffd806a1e9e40,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075f5c160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075f5c160) at uvmspace_free+0xbd sys/uvm/uvm_map.c:3422 reaper(ffff80002a457be0) at reaper+0x225 sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -9