panic: kernel diagnostic assertion "uvm_page_owner_locked_p(pg)" failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_page.c", line 1248 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 89647 76203 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b6ace) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83069aeb,ffffffff82fb9fdd,4e0,ffffffff830bd64a) at __assert+0x29 uvm_pageunwire(fffffd80063c8f00) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075bb8160,2a830ab1000,2a830cb0000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075bb8160,fffffd8075f09c00,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075bb8160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075bb8160) 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 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 1248 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b6ace) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83069aeb,ffffffff82fb9fdd,4e0,ffffffff830bd64a) at __assert+0x29 uvm_pageunwire(fffffd80063c8f00) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075bb8160,2a830ab1000,2a830cb0000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075bb8160,fffffd8075f09c00,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075bb8160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075bb8160) 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 0xffff80002a455320 rbx 0xfffffd80063c8f00 rdx 0 rcx 0 rax 0xffff80002a457be0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8babdf5b2152947f r11 0x796d9f642bc95c14 r12 0 r13 0xffffffff83246df8 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff8142f435 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a455310 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=89647 pid=76203 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=0xffff80002a40d6c8,0xffff80002a4576e0 process=0xffff8000ffffe240 user=0xffff80002a450000, vmspace=0xffffffff835a2628 estcpu=36, cpticks=50, pctcpu=17.47, user=0, sys=14098, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 44249 266681 9752 0 3 0x10008a sigsusp sh 9752 326943 42692 0 3 0x82 wait syz-executor 62616 313196 47368 0 3 0x10008a sigsusp sh 47368 142463 42692 0 3 0x82 wait syz-executor 92536 454517 89532 0 3 0x10008a sigsusp sh 62136 45703 56729 0 3 0x10008a sigsusp sh 14606 98737 42692 0 3 0x82 wait syz-executor 89532 390927 42692 0 3 0x82 wait syz-executor 56729 45837 42692 0 3 0x82 wait syz-executor 9302 430466 42692 0 3 0x82 wait syz-executor 78693 313458 42692 0 3 0x82 wait syz-executor 47076 244503 1 0 3 0x100083 ttyin getty 56190 191668 0 0 3 0x14280 nfsidl nfsio 42162 427957 0 0 3 0x14280 nfsidl nfsio 95004 52361 0 0 3 0x14280 nfsidl nfsio 70090 306803 0 0 3 0x14280 nfsidl nfsio 38948 285951 0 0 3 0x14280 nfsidl nfsio 4985 355564 0 0 3 0x14280 nfsidl nfsio 45017 39844 0 0 3 0x14280 nfsidl nfsio 17947 330401 0 0 3 0x14280 nfsidl nfsio 92501 192608 0 0 3 0x14280 nfsidl nfsio 60720 442707 0 0 3 0x14280 nfsidl nfsio 63622 269526 0 0 3 0x14280 nfsidl nfsio 84652 415752 0 0 3 0x14280 nfsidl nfsio 51146 148036 0 0 3 0x14280 nfsidl nfsio 62392 230859 0 0 3 0x14280 nfsidl nfsio 14044 306347 0 0 3 0x14280 nfsidl nfsio 97613 436747 0 0 3 0x14280 nfsidl nfsio 62313 142005 0 0 3 0x14280 nfsidl nfsio 24051 284578 0 0 3 0x14280 nfsidl nfsio 66101 14317 0 0 3 0x14280 nfsidl nfsio 25686 405452 0 0 3 0x14280 nfsidl nfsio 89518 520316 0 0 3 0x14200 bored sosplice 42692 411654 76239 0 3 0x82 wait syz-executor 76239 104058 72446 0 3 0x10008a sigsusp ksh 72446 474961 39657 0 3 0x98 kqread sshd-session 39657 213656 25130 0 3 0x92 kqread sshd-session 25130 192509 1 0 3 0x88 kqread sshd 41063 176816 48283 73 2 0x1100010 syslogd 48283 82477 1 0 3 0x100082 sbwait syslogd 47999 90318 1 0 3 0x100080 kqread resolvd 66899 213388 19490 77 3 0x100092 kqread dhcpleased 83661 368690 19490 77 3 0x100092 kqread dhcpleased 19490 412639 1 0 3 0x80 kqread dhcpleased 22132 115226 0 0 3 0x14200 bored smr 2441 401555 0 0 2 0x14200 zerothread 36114 326883 0 0 3 0x14200 aiodoned aiodoned 33188 106413 0 0 3 0x14200 syncer update 9862 165135 0 0 3 0x14200 cleaner cleaner *76203 89647 0 0 7 0x14200 reaper 44398 81127 0 0 3 0x14200 pgdaemon pagedaemon 36774 295217 0 0 3 0x14200 bored viomb 38692 3790 0 0 3 0x40014200 acpi0 acpi0 39036 101217 0 0 3 0x14200 bored softnet3 77595 280792 0 0 3 0x14200 bored softnet2 93037 139489 0 0 3 0x14200 bored softnet1 5313 271238 0 0 3 0x14200 bored softnet0 66843 310939 0 0 3 0x14200 bored systqmp 76299 371699 0 0 3 0x14200 bored systq 80286 327851 0 0 3 0x40014200 tmoslp softclock 83834 108775 0 0 3 0x40014200 idle0 1 38067 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 10169 11039K 11345K 166960K 12325 0 pcb 17 16K 18K 166960K 135 0 rtable 155 5K 8K 166960K 1371 0 pf 29 13K 17K 166960K 147 0 ifaddr 31 5K 7K 166960K 183 0 ifgroup 42 1K 2K 166960K 194 0 sysctl 4 1K 1K 166960K 4 0 counters 28 17K 17K 166960K 67 0 ioctlops 0 0K 4K 166960K 157 0 iov 0 0K 24K 166960K 52 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1457 92K 92K 166960K 2409 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 63 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 14 49K 97K 166960K 1235 0 sigio 0 0K 0K 166960K 47 0 proc 60 59K 116K 166960K 1470 0 subproc 104 6K 8K 166960K 559 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 91 0 in_multi 66 4K 7K 166960K 464 0 ether_multi 1 0K 0K 166960K 6 0 mrt 1 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 1014 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 250 101K 101K 166960K 10996 0 UVM aobj 18 2K 2K 166960K 18 0 pinsyscall 35 70K 98K 166960K 3102 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 33 0 NDP 9 0K 2K 166960K 127 0 temp 66 6812K 6879K 166960K 33427 0 kqueue 13 20K 32K 166960K 130 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 182 0 179 2 0 2 2 0 8 1 rtentry 112 473 0 405 4 0 4 4 0 8 1 unpcb 144 672 0 657 6 5 1 6 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 808 287 0 283 9 6 3 8 0 8 2 arp 88 84 0 70 1 0 1 1 0 8 0 ipq 40 6 0 6 1 0 1 1 0 8 1 ipqe 40 50 0 50 1 0 1 1 0 8 1 inpcb 336 1044 0 1037 11 8 3 10 0 8 2 nd6 104 122 0 107 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 1 1 1 0 8 1 kcovpl 48 43 0 35 1 0 1 1 0 8 0 ppxss 1072 3 0 3 1 0 1 1 0 8 1 pfstscr 40 6 0 5 2 1 1 1 0 8 0 pfrktable 1344 7 0 7 1 1 0 1 0 8 0 pfanchor 1288 2 0 2 1 1 0 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 6 2 1 1 1 0 8 0 pfstate 344 5 0 4 2 1 1 1 0 8 0 pfrule 1344 7 0 7 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1937 0 1622 31 3 28 30 0 8 3 art_table 32 1938 0 1622 4 0 4 4 0 8 0 art_node 16 470 0 409 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 13 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 60 0 50 1 0 1 1 0 8 0 shmpl 112 15 0 0 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2765 0 1204 98 0 98 98 0 8 0 ffsino 240 2765 0 1204 92 0 92 92 0 8 0 nchpl 144 3866 0 2146 64 0 64 64 0 8 0 uvmvnodes 80 3690 0 0 76 0 76 76 0 8 0 vnodes 216 3690 0 0 205 0 205 205 0 8 0 namei 1024 16645 0 16645 3 2 1 2 0 8 1 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 kstatmem 264 96 0 78 2 0 2 2 0 8 0 scxspl 216 23989 0 23989 10 7 3 8 1 8 3 plimitpl 152 191 0 170 1 0 1 1 0 8 0 sigapl 424 1470 0 1397 9 0 9 9 0 8 0 futexpl 64 10593 0 10593 1 0 1 1 0 8 1 knotepl 120 25503 0 25456 24 15 9 17 0 8 7 kqueuepl 184 233 0 224 3 2 1 3 0 8 0 pipepl 288 271 0 244 3 0 3 3 0 8 0 fdescpl 432 1432 0 1406 5 1 4 5 0 8 0 filepl 120 7527 0 7298 14 5 9 14 0 8 1 lockfpl 104 335 0 333 2 1 1 2 0 8 0 lockfspl 48 155 0 153 1 0 1 1 0 8 0 sessionpl 144 58 0 50 1 0 1 1 0 8 0 pgrppl 48 109 0 91 1 0 1 1 0 8 0 ucredpl 104 896 0 885 1 0 1 1 0 8 0 zombiepl 144 1532 0 1521 1 0 1 1 0 8 0 processpl 1096 1470 0 1397 7 0 7 7 0 8 1 procpl 648 2459 0 2380 8 0 8 8 0 8 1 sosppl 168 5 0 5 2 1 1 1 0 8 1 sockpl 504 1914 0 1889 36 28 8 29 0 8 4 mcl64k 65536 7 0 7 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 3561 0 3512 18 10 8 17 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1442 0 1441 3 0 3 3 0 8 2 mtagpl 96 21 0 20 1 0 1 1 0 8 0 mbufpl 256 13670 0 13552 22 6 16 22 0 8 5 bufpl 280 7613 0 1366 447 0 447 447 0 8 0 anonpl 24 273714 0 260534 133 53 80 80 0 187 0 amapchunkpl 152 36492 0 35446 52 11 41 41 0 158 0 amappl16 200 5657 0 5644 15 13 2 15 0 8 1 amappl15 192 44 0 44 1 1 0 1 0 8 0 amappl14 184 178 0 166 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 2568 0 2530 3 1 2 3 0 8 0 amappl11 160 57 0 47 1 0 1 1 0 8 0 amappl10 152 28 0 28 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 31 0 30 1 0 1 1 0 8 0 amappl7 128 175 0 163 1 0 1 1 0 8 0 amappl6 120 496 0 488 1 0 1 1 0 8 0 amappl5 112 259 0 249 1 0 1 1 0 8 0 amappl4 104 384 0 368 1 0 1 1 0 8 0 amappl3 96 6896 0 6772 4 0 4 4 0 8 0 amappl2 88 1112 0 1042 2 0 2 2 0 8 0 amappl1 80 12743 0 12145 15 2 13 14 0 8 0 amappl 88 10350 0 10164 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 dma512 512 1 0 1 1 0 1 1 0 8 1 dma256 256 8 0 8 3 1 2 2 0 8 2 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 17 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1432 0 1397 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1432 0 1397 1 0 1 1 0 8 0 vmmpekpl 168 12119 0 12053 4 0 4 4 0 8 0 vmmpepl 168 94465 0 92573 92 9 83 89 0 357 0 vmsppl 344 1431 0 1396 5 1 4 4 0 8 0 rwobjpl 24 33008 0 28291 29 0 29 29 0 8 0 pdppl 4096 2870 0 2792 150 72 78 82 0 8 0 pvpl 32 738482 0 708840 494 160 334 334 0 265 67 pmappl 216 1431 0 1396 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 492 0 140 11 0 11 11 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(ffffffff830b6ace) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83069aeb,ffffffff82fb9fdd,4e0,ffffffff830bd64a) at __assert+0x29 uvm_pageunwire(fffffd80063c8f00) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075bb8160,2a830ab1000,2a830cb0000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075bb8160,fffffd8075f09c00,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075bb8160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075bb8160) 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(ffffffff830b6ace) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83069aeb,ffffffff82fb9fdd,4e0,ffffffff830bd64a) at __assert+0x29 uvm_pageunwire(fffffd80063c8f00) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd8075bb8160,2a830ab1000,2a830cb0000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd8075bb8160,fffffd8075f09c00,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd8075bb8160) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd8075bb8160) 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