panic: kernel diagnostic assertion "uvm_page_owner_locked_p(pg)" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_page.c", line 1248 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *274613 3014 0 0x14000 0x200 0K reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e2798) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309ab51,ffffffff83040d77,4e0,ffffffff830f0000) at __assert+0x29 uvm_pageunwire(fffffd8008916ec0) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806bdd4a50,f6c3687a000,f6c3687b000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806bdd4a50,fffffd806bef2310,0) at uvm_unmap_kill_entry_withlock+0x86 sys/uvm/uvm_map.c:1862 uvm_map_teardown(fffffd806bdd4a50) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806bdd4a50) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:477 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "uvm_page_owner_locked_p(pg)" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_page.c", line 1248 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e2798) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309ab51,ffffffff83040d77,4e0,ffffffff830f0000) at __assert+0x29 uvm_pageunwire(fffffd8008916ec0) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806bdd4a50,f6c3687a000,f6c3687b000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806bdd4a50,fffffd806bef2310,0) at uvm_unmap_kill_entry_withlock+0x86 sys/uvm/uvm_map.c:1862 uvm_map_teardown(fffffd806bdd4a50) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806bdd4a50) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:477 end trace frame: 0x0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800029fe58e0 rbx 0xffffffff8349edbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff800029fd91c0 rax 0xffffffff8349dff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2c933d0e012a277a r11 0x4a9d60091f0eee42 r12 0xffffffff8349ebc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff828f8af5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800029fe58d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) tid=274613 pid=3014 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=0xffff800029fd9448,0xffff800029fd8f48 process=0xffff800029fead58 user=0xffff800029fe0000, vmspace=0xffffffff834fce70 estcpu=36, cpticks=14, pctcpu=18.65, user=0, sys=13227, intr=14 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31231 52501 66345 0 3 0x82 wait syz-executor 13058 378277 66345 0 2 0x482 syz-executor 92243 362399 66345 0 2 0x2 syz-executor 61327 438043 66345 0 3 0x82 wait syz-executor 53133 48027 66345 0 3 0x82 wait syz-executor 95025 62350 66345 0 2 0x2 syz-executor 21629 497721 66345 0 3 0x82 wait syz-executor 8946 288318 1 0 3 0x100083 ttyin getty 78762 417920 0 0 3 0x14280 nfsidl nfsio 41453 508474 0 0 3 0x14280 nfsidl nfsio 93889 28579 0 0 3 0x14280 nfsidl nfsio 76676 314550 0 0 3 0x14280 nfsidl nfsio 64501 503409 0 0 3 0x14280 nfsidl nfsio 4709 193392 0 0 3 0x14280 nfsidl nfsio 65721 423265 0 0 3 0x14280 nfsidl nfsio 96699 20122 0 0 3 0x14280 nfsidl nfsio 51436 280836 0 0 3 0x14280 nfsidl nfsio 39660 80405 0 0 3 0x14280 nfsidl nfsio 9447 266064 0 0 3 0x14280 nfsidl nfsio 3675 135119 0 0 3 0x14280 nfsidl nfsio 73787 160065 0 0 3 0x14280 nfsidl nfsio 64992 45962 0 0 3 0x14280 nfsidl nfsio 62116 61991 0 0 3 0x14280 nfsidl nfsio 71366 95177 0 0 3 0x14280 nfsidl nfsio 72485 388507 0 0 3 0x14280 nfsidl nfsio 99246 421763 0 0 3 0x14280 nfsidl nfsio 60599 386182 0 0 3 0x14280 nfsidl nfsio 18956 327051 0 0 3 0x14280 nfsidl nfsio 68217 4807 0 0 3 0x14200 acct acct 83280 295349 0 0 3 0x14200 bored sosplice 66345 40606 10930 0 3 0x82 wait syz-executor 10930 69868 61407 0 3 0x10008a sigsusp ksh 61407 325507 95140 0 3 0x98 kqread sshd-session 95140 171839 2679 0 3 0x92 kqread sshd-session 2679 331995 1 0 3 0x88 kqread sshd 95892 64514 74639 74 3 0x1100092 bpf pflogd 74639 283696 1 0 3 0x80 sbwait pflogd 40578 405655 54598 73 2 0x1100010 syslogd 54598 230906 1 0 3 0x100082 sbwait syslogd 89409 388027 1 0 3 0x100080 kqread resolvd 84546 467169 48363 77 3 0x100092 kqread dhcpleased 74127 50084 48363 77 3 0x100092 kqread dhcpleased 48363 5959 1 0 3 0x80 kqread dhcpleased 1875 70852 0 0 3 0x14200 bored smr 7836 194274 0 0 2 0x14200 zerothread 86988 452663 0 0 3 0x14200 aiodoned aiodoned 41613 441217 0 0 3 0x14200 syncer update 61880 189244 0 0 3 0x14200 cleaner cleaner * 3014 274613 0 0 7 0x14200 reaper 1195 345330 0 0 3 0x14200 pgdaemon pagedaemon 80457 403312 0 0 3 0x14200 bored viomb 80818 351762 0 0 3 0x40014200 acpi0 acpi0 12989 523005 0 0 7 0x40014200 idle1 22056 351624 0 0 3 0x14200 bored softnet3 93623 133011 0 0 3 0x14200 bored softnet2 2931 385324 0 0 3 0x14200 bored softnet1 67348 241083 0 0 3 0x14200 bored softnet0 46531 33895 0 0 3 0x14200 bored systqmp 26075 311796 0 0 3 0x14200 bored systq 3131 167709 0 0 3 0x14200 tmoslp softclockmp 16437 364313 0 0 2 0x40014200 softclock 49090 445796 0 0 3 0x40014200 idle0 1 266393 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &uvm.pageqlock r = 0 (0xffffffff834f9790) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 uvm_fault_unwire_locked+0x32d sys/uvm/uvm_fault.c:1694 #4 uvm_unmap_kill_entry_withlock+0x86 sys/uvm/uvm_map.c:1862 #5 uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 #6 uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 #7 reaper+0x246 sys/kern/kern_exit.c:477 #8 proc_trampoline+0x10 Process 92243 (syz-executor) thread 0xffff800034b9ca48 (362399) Process 95025 (syz-executor) thread 0xffff8000ffffca30 (62350) Process 40578 (syslogd) thread 0xffff8000ffffd450 (405655) Process 3014 (reaper) thread 0xffff800029fd91c0 (274613) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 11142K 11458K 166960K 13329 0 pcb 17 14K 16K 166960K 354 0 rtable 203 7K 8K 166960K 2344 0 pf 36 18K 20K 166960K 219 0 ifaddr 39 7K 8K 166960K 293 0 ifgroup 56 2K 2K 166960K 342 0 sysctl 3 0K 0K 166960K 5 0 counters 64 36K 37K 166960K 214 0 ioctlops 0 0K 4K 166960K 1685 0 iov 0 0K 17K 166960K 124 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1471 92K 93K 166960K 3143 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 22 0 VM map 2 1K 1K 166960K 2 0 sem 19 6K 6K 166960K 38 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 9 29K 97K 166960K 1965 0 sigio 0 0K 0K 166960K 16 0 proc 72 91K 128K 166960K 2181 0 subproc 91 5K 7K 166960K 806 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 189 0 in_multi 85 6K 7K 166960K 742 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 1366 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 230 92K 95K 166960K 16506 0 UVM aobj 39 4K 4K 166960K 43 0 pinsyscall 34 68K 108K 166960K 4470 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 61 0 NDP 12 0K 2K 166960K 215 0 temp 71 6822K 6902K 166960K 83564 0 kqueue 13 20K 32K 166960K 207 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 271 0 268 3 2 1 2 0 8 0 rtentry 112 870 0 779 4 1 3 4 0 8 0 unpcb 144 857 0 840 10 9 1 6 0 8 0 syncache 336 9 0 9 5 5 0 1 0 8 0 tcpqe 32 4 0 4 3 3 0 1 0 8 0 tcpcb 808 583 0 579 27 26 1 8 0 8 0 arp 120 198 0 182 1 0 1 1 0 8 0 inpcb 336 2218 0 2211 43 42 1 15 0 8 0 nd6 136 193 0 170 1 0 1 1 0 8 0 pkpcb 40 11 0 11 5 5 0 1 0 8 0 kcovpl 48 62 0 55 1 0 1 1 0 8 0 ppxss 1168 11 0 11 5 5 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 6 0 6 3 3 0 1 0 482 0 pffrnode 88 5 0 5 3 3 0 1 0 8 0 pffrent 40 84 0 84 3 3 0 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 138 0 129 1 0 1 1 0 8 0 pfstkey 128 139 0 130 2 0 2 2 0 8 0 pfstate 376 139 0 130 6 3 3 6 0 8 1 pfrule 1344 24 0 19 2 1 1 2 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 3039 0 2652 36 8 28 30 0 8 0 art_table 32 3043 0 2652 4 0 4 4 0 8 0 art_node 16 865 0 783 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 15 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 31 0 14 1 0 1 1 0 8 0 shmpl 112 40 0 4 2 0 2 2 0 8 0 dirhash 1024 28 0 11 3 0 3 3 0 8 0 dino2pl 256 3801 0 2183 102 0 102 102 0 8 0 ffsino 272 3801 0 2183 109 0 109 109 0 8 0 nchpl 144 5477 0 3710 66 0 66 66 0 8 0 uvmvnodes 80 5091 0 0 104 0 104 104 0 8 0 vnodes 216 5091 0 0 283 0 283 283 0 8 0 namei 1024 24562 0 24561 8 7 1 2 0 8 0 percpumem 16 121 0 75 1 0 1 1 0 8 0 kstatmem 264 174 0 150 3 1 2 3 0 8 0 scsiplug 72 2 0 2 2 2 0 1 0 8 0 scxspl 216 45367 0 45367 15 13 2 8 1 8 2 plimitpl 152 292 0 273 1 0 1 1 0 8 0 sigapl 424 2187 0 2117 11 2 9 9 0 8 0 futexpl 64 17016 0 17016 7 6 1 1 0 8 1 knotepl 120 803 0 0 24 0 24 24 0 8 0 kqueuepl 216 335 0 326 1 0 1 1 0 8 0 pipepl 320 452 0 425 3 0 3 3 0 8 0 fdescpl 496 2144 0 2121 7 2 5 6 0 8 0 filepl 152 12596 0 12373 36 25 11 19 0 8 0 lockfpl 104 471 0 469 1 0 1 1 0 8 0 lockfspl 48 206 0 204 1 0 1 1 0 8 0 sessionpl 144 83 0 74 1 0 1 1 0 8 0 pgrppl 48 190 0 173 1 0 1 1 0 8 0 ucredpl 104 2346 0 2331 1 0 1 1 0 8 0 zombiepl 144 2124 0 2117 1 0 1 1 0 8 0 processpl 1160 2187 0 2117 7 1 6 6 0 8 0 procpl 648 3790 0 3710 9 1 8 8 0 8 0 srpgc 96 6 0 6 3 3 0 1 0 8 0 sosppl 168 16 0 16 5 5 0 1 0 8 0 sockpl 664 3434 0 3407 54 51 3 21 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 155 0 0 19 0 19 19 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mtagpl 96 66 0 0 2 0 2 2 0 8 0 mbufpl 256 616 0 0 35 0 35 35 0 8 0 bufpl 280 12157 0 4655 537 0 537 537 0 8 0 anonpl 24 343142 0 330143 120 15 105 107 0 185 24 amapchunkpl 152 52414 0 51414 63 14 49 51 0 158 5 amappl16 200 6792 0 6764 72 67 5 27 0 8 1 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 235 0 223 1 0 1 1 0 8 0 amappl13 176 30 0 30 1 1 0 1 0 8 0 amappl12 168 3652 0 3622 3 1 2 2 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 15 0 15 1 1 0 1 0 8 0 amappl9 144 136 0 136 1 1 0 1 0 8 0 amappl8 136 28 0 24 1 0 1 1 0 8 0 amappl7 128 247 0 235 1 0 1 1 0 8 0 amappl6 120 701 0 700 1 0 1 1 0 8 0 amappl5 112 351 0 340 1 0 1 1 0 8 0 amappl4 104 493 0 473 1 0 1 1 0 8 0 amappl3 96 10439 0 10326 4 0 4 4 0 8 0 amappl2 88 1470 0 1402 2 0 2 2 0 8 0 amappl1 80 17359 0 16795 18 5 13 15 0 8 0 amappl 88 15627 0 15461 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 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 21 0 20 1 0 1 1 0 8 0 aobjpl 72 42 0 4 1 0 1 1 0 8 0 uaddrrnd 24 2144 0 2115 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2144 0 2115 1 0 1 1 0 8 0 vmmpekpl 168 17730 0 17664 4 0 4 4 0 8 0 vmmpepl 168 137664 0 135863 122 26 96 104 0 357 10 vmsppl 440 2143 0 2114 6 2 4 5 0 8 0 rwobjpl 56 45270 0 39218 88 1 87 87 0 8 0 pdppl 4096 4295 0 4228 176 109 67 87 0 8 0 pvpl 32 61430 0 0 495 0 495 495 0 265 0 pmappl 248 2143 0 2114 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 581 0 204 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e2798) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309ab51,ffffffff83040d77,4e0,ffffffff830f0000) at __assert+0x29 uvm_pageunwire(fffffd8008916ec0) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806bdd4a50,f6c3687a000,f6c3687b000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806bdd4a50,fffffd806bef2310,0) at uvm_unmap_kill_entry_withlock+0x86 sys/uvm/uvm_map.c:1862 uvm_map_teardown(fffffd806bdd4a50) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806bdd4a50) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:477 end trace frame: 0x0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5