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 * 73131 12932 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(fffffd8007122a80) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c104168,334c489c000,334c489d000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c104168,fffffd80713ab848,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c104168) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c104168) 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 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(fffffd8007122a80) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c104168,334c489c000,334c489d000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c104168,fffffd80713ab848,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c104168) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c104168) 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 0xffff80002a455740 rbx 0xfffffd8007122a80 rdx 0 rcx 0 rax 0xffff80002a4576d0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x73cd239244c796bb r11 0xa36517f932a0560 r12 0 r13 0xffffffff83246df8 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff8142f435 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a455730 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=73131 pid=12932 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=0xffff80002a40dbd8,0xffff80002a457458 process=0xffff8000ffffead0 user=0xffff80002a450000, vmspace=0xffffffff835a2628 estcpu=36, cpticks=52, pctcpu=19.11, user=0, sys=43402, intr=17 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 48643 231987 32798 0 3 0x82 wait syz-executor 95011 321552 32798 0 3 0x82 nanoslp syz-executor 60051 140300 32798 0 3 0x82 wait syz-executor 55272 286347 32798 0 3 0x82 wait syz-executor 29984 400520 32798 0 3 0x82 wait syz-executor 94172 103404 32798 0 3 0x82 wait syz-executor 5265 136811 32798 0 3 0x82 nanoslp syz-executor 80990 392333 0 0 3 0x14280 nfsidl nfsio 80460 504460 0 0 3 0x14280 nfsidl nfsio 76212 303375 0 0 3 0x14280 nfsidl nfsio 53875 278061 0 0 3 0x14280 nfsidl nfsio 45164 447900 0 0 3 0x14280 nfsidl nfsio 22775 468042 0 0 3 0x14280 nfsidl nfsio 84098 391561 0 0 3 0x14280 nfsidl nfsio 70937 300144 0 0 3 0x14280 nfsidl nfsio 75935 25215 0 0 3 0x14280 nfsidl nfsio 40211 108563 0 0 3 0x14280 nfsidl nfsio 43497 454644 0 0 3 0x14280 nfsidl nfsio 38381 323405 0 0 3 0x14280 nfsidl nfsio 19850 475189 0 0 3 0x14280 nfsidl nfsio 80827 310656 0 0 3 0x14280 nfsidl nfsio 98974 53931 0 0 3 0x14280 nfsidl nfsio 45116 239577 0 0 3 0x14280 nfsidl nfsio 17869 216092 0 0 3 0x14280 nfsidl nfsio 27904 446561 0 0 3 0x14280 nfsidl nfsio 37458 166858 0 0 3 0x14280 nfsidl nfsio 74279 391387 0 0 3 0x14280 nfsidl nfsio 73360 339401 0 0 3 0x14200 bored sosplice 32798 172611 49742 0 3 0x82 wait syz-executor 49742 380619 28770 0 3 0x10008a sigsusp ksh 28770 120121 99654 0 3 0x98 kqread sshd-session 99654 260176 98253 0 3 0x92 kqread sshd-session 33827 98905 1 0 3 0x100083 ttyin getty 98253 418315 1 0 3 0x88 kqread sshd 98129 267751 63529 73 2 0x1100010 syslogd 63529 128763 1 0 3 0x100082 sbwait syslogd 96811 5096 1 0 3 0x100080 kqread resolvd 78159 358452 5630 77 3 0x100092 kqread dhcpleased 28500 178278 5630 77 3 0x100092 kqread dhcpleased 5630 233568 1 0 3 0x80 kqread dhcpleased 69160 173405 0 0 3 0x14200 bored smr 6119 54243 0 0 2 0x14200 zerothread 60702 323813 0 0 3 0x14200 aiodoned aiodoned 65582 291286 0 0 3 0x14200 syncer update 31946 207979 0 0 3 0x14200 cleaner cleaner *12932 73131 0 0 7 0x14200 reaper 14354 501802 0 0 3 0x14200 pgdaemon pagedaemon 74511 199484 0 0 3 0x14200 bored viomb 48789 401390 0 0 3 0x40014200 acpi0 acpi0 93024 137369 0 0 3 0x14200 bored softnet3 75862 174538 0 0 3 0x14200 bored softnet2 33132 387451 0 0 3 0x14200 bored softnet1 85198 444299 0 0 3 0x14200 bored softnet0 53650 165650 0 0 3 0x14200 bored systqmp 77517 176011 0 0 3 0x14200 bored systq 33037 194511 0 0 3 0x40014200 tmoslp softclock 60923 25991 0 0 3 0x40014200 idle0 1 287896 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 10202 11124K 11452K 166960K 13676 0 pcb 17 16K 18K 166960K 537 0 rtable 187 8K 10K 166960K 2598 0 pf 34 14K 269K 166960K 266 0 ifaddr 34 6K 8K 166960K 359 0 ifgroup 49 2K 2K 166960K 433 0 sysctl 4 1K 1K 166960K 12 0 counters 29 17K 17K 166960K 129 0 ioctlops 0 0K 4K 166960K 565 0 iov 0 0K 24K 166960K 346 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1472 92K 93K 166960K 3952 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 36 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 120 0 dirhash 15 2K 3K 166960K 60 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 9 29K 97K 166960K 3168 0 sigio 0 0K 0K 166960K 89 0 proc 62 67K 108K 166960K 2544 0 subproc 91 5K 8K 166960K 1032 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 332 0 in_multi 69 5K 7K 166960K 907 0 ether_multi 1 0K 0K 166960K 9 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 1636 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 232 74K 108K 166960K 26896 0 UVM aobj 48 2K 2K 166960K 55 0 pinsyscall 30 60K 98K 166960K 5934 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 158 0 NDP 10 0K 1K 166960K 263 0 temp 76 6816K 6884K 166960K 104923 0 kqueue 13 20K 32K 166960K 375 0 SYN cache 2 2352K 2360K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 392 0 389 2 0 2 2 0 8 1 rtentry 112 913 0 833 4 0 4 4 0 8 1 unpcb 144 2331 0 2316 8 4 4 6 0 8 3 syncache 336 12 0 12 3 2 1 1 0 8 1 tcpqe 32 7 0 7 2 1 1 1 0 8 1 tcpcb 808 944 0 940 13 6 7 8 0 8 6 arp 88 164 0 149 1 0 1 1 0 8 0 ipq 40 18 0 15 1 0 1 1 0 8 0 ipqe 40 233 0 228 1 0 1 1 0 8 0 inpcb 336 3294 0 3284 16 9 7 10 0 8 5 nd6 104 240 0 222 1 0 1 1 0 8 0 pkpcb 40 19 0 19 2 1 1 1 0 8 1 kcovpl 48 74 0 67 1 0 1 1 0 8 0 ppxss 1072 21 0 21 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 3 0 3 1 1 0 1 0 8 0 pfstitem 24 4 0 2 1 0 1 1 0 8 0 pfstkey 128 8 0 4 1 0 1 1 0 8 0 pfstate 344 4 0 3 1 0 1 1 0 8 0 pfrule 1344 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 4 0 1 4 0 4 4 0 8 1 art_heap4 256 3565 0 3259 35 9 26 30 0 8 2 art_table 32 3569 0 3260 4 0 4 4 0 8 0 art_node 16 900 0 830 1 0 1 1 0 8 0 sysvmsgpl 40 87 0 77 1 0 1 1 0 8 0 semapl 112 113 0 103 1 0 1 1 0 8 0 shmpl 112 52 0 7 2 0 2 2 0 8 0 dirhash 1024 51 0 32 3 0 3 3 0 8 0 dino2pl 256 5650 0 4029 102 0 102 102 0 8 0 ffsino 240 5650 0 4029 96 0 96 96 0 8 0 nchpl 144 8884 0 7116 66 0 66 66 0 8 0 uvmvnodes 80 7347 0 0 150 0 150 150 0 8 0 vnodes 216 7347 0 0 409 0 409 409 0 8 0 namei 1024 36498 0 36498 3 2 1 2 0 8 1 kstatmem 264 220 0 200 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 60645 0 60645 11 8 3 8 1 8 3 plimitpl 152 707 0 690 1 0 1 1 0 8 0 sigapl 424 3349 0 3281 9 1 8 8 0 8 0 futexpl 64 32315 0 32315 2 1 1 1 0 8 1 knotepl 120 77777 0 77730 36 26 10 17 0 8 7 kqueuepl 184 659 0 650 4 3 1 4 0 8 0 pipepl 288 506 0 479 3 0 3 3 0 8 0 fdescpl 432 3306 0 3285 5 1 4 5 0 8 0 filepl 120 19853 0 19636 18 4 14 14 0 8 6 lockfpl 104 680 0 678 1 0 1 1 0 8 0 lockfspl 48 289 0 287 1 0 1 1 0 8 0 sessionpl 144 91 0 83 1 0 1 1 0 8 0 pgrppl 48 189 0 173 1 0 1 1 0 8 0 ucredpl 104 3391 0 3379 1 0 1 1 0 8 0 zombiepl 144 3773 0 3763 2 1 1 1 0 8 0 processpl 1096 3349 0 3281 6 0 6 6 0 8 1 procpl 648 6560 0 6483 8 0 8 8 0 8 1 sosppl 168 9 0 9 1 0 1 1 0 8 1 sockpl 504 6080 0 6052 42 29 13 21 0 8 8 mcl64k 65536 43 0 43 3 2 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 2 1 1 1 0 8 1 mcl8k 8192 34 0 34 3 2 1 1 0 8 1 mcl4k 4096 5795 0 5745 16 8 8 15 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 3413 0 3409 10 1 9 9 0 8 8 mtagpl 96 218 0 152 3 1 2 2 0 8 0 mbufpl 256 34421 0 34161 93 68 25 81 0 8 5 bufpl 280 15208 0 7585 545 0 545 545 0 8 0 anonpl 24 516747 0 508523 127 73 54 98 0 187 4 amapchunkpl 152 90983 0 90201 62 28 34 49 0 158 3 amappl16 200 10579 0 10550 76 65 11 15 0 8 8 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 249 0 239 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 4981 0 4951 2 0 2 2 0 8 0 amappl11 160 54 0 44 1 0 1 1 0 8 0 amappl10 152 28 0 28 1 1 0 1 0 8 0 amappl9 144 108 0 108 1 1 0 1 0 8 0 amappl8 136 29 0 28 1 0 1 1 0 8 0 amappl7 128 232 0 220 1 0 1 1 0 8 0 amappl6 120 822 0 821 1 0 1 1 0 8 0 amappl5 112 402 0 392 1 0 1 1 0 8 0 amappl4 104 508 0 492 1 0 1 1 0 8 0 amappl3 96 17780 0 17660 5 1 4 4 0 8 0 amappl2 88 1632 0 1569 2 0 2 2 0 8 0 amappl1 80 21285 0 20770 14 1 13 13 0 8 1 amappl 88 25853 0 25674 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 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 54 0 7 1 0 1 1 0 8 0 uaddrrnd 24 3306 0 3277 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3306 0 3277 1 0 1 1 0 8 0 vmmpekpl 168 25074 0 25030 3 0 3 3 0 8 0 vmmpepl 168 205894 0 204106 103 13 90 90 0 357 12 vmsppl 344 3305 0 3276 4 1 3 4 0 8 0 rwobjpl 24 63798 0 55543 50 0 50 50 0 8 0 pdppl 4096 6618 0 6552 194 128 66 82 0 8 0 pvpl 32 1856758 0 1840930 500 269 231 355 0 265 95 pmappl 216 3305 0 3276 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 644 0 269 13 0 13 13 0 8 1 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(fffffd8007122a80) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c104168,334c489c000,334c489d000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c104168,fffffd80713ab848,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c104168) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c104168) 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(ffffffff830b6ace) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83069aeb,ffffffff82fb9fdd,4e0,ffffffff830bd64a) at __assert+0x29 uvm_pageunwire(fffffd8007122a80) at uvm_pageunwire+0x1dd sys/uvm/uvm_page.c:1248 uvm_fault_unwire_locked(fffffd806c104168,334c489c000,334c489d000) at uvm_fault_unwire_locked+0x33e sys/uvm/uvm_fault.c:1695 uvm_unmap_kill_entry_withlock(fffffd806c104168,fffffd80713ab848,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1861 uvm_map_teardown(fffffd806c104168) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806c104168) 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