panic: kernel diagnostic assertion "pg->wire_count != 0" failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_page.c", line 1250 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8341137e) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834519e6,ffffffff8343b1d4,4e2,ffffffff833aa441) at __assert+0x29 sys/kern/subr_prf.c:-1 uvm_pageunwire(fffffd80078d5280) at uvm_pageunwire+0x17d sys/uvm/uvm_page.c:1249 uvm_fault_unwire_locked(fffffd806cd0b2f0,7a370304000,7a370305000) at uvm_fault_unwire_locked+0x33a sys/uvm/uvm_fault.c:1790 uvm_unmap_kill_entry_withlock(fffffd806cd0b2f0,fffffd806ccf2548,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1866 uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000314ccd28,0,0,1) at exit1+0x6e6 sys/kern/kern_exit.c:259 sys_exit(ffff8000314ccd28,ffff80003c903950,ffff80003c9038a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c903950) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c903950) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bfb963b5160, count: 4 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 "pg->wire_count != 0" failed: file "/syzkaller/managers/main/kernel/sys/uvm/uvm_page.c", line 1250 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8341137e) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834519e6,ffffffff8343b1d4,4e2,ffffffff833aa441) at __assert+0x29 sys/kern/subr_prf.c:-1 uvm_pageunwire(fffffd80078d5280) at uvm_pageunwire+0x17d sys/uvm/uvm_page.c:1249 uvm_fault_unwire_locked(fffffd806cd0b2f0,7a370304000,7a370305000) at uvm_fault_unwire_locked+0x33a sys/uvm/uvm_fault.c:1790 uvm_unmap_kill_entry_withlock(fffffd806cd0b2f0,fffffd806ccf2548,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1866 uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000314ccd28,0,0,1) at exit1+0x6e6 sys/kern/kern_exit.c:259 sys_exit(ffff8000314ccd28,ffff80003c903950,ffff80003c9038a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c903950) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c903950) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bfb963b5160, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c903590 rbx 0xffff8000ffff71a0 rdx 0 rcx 0 rax 0xffff8000314ccd28 r8 0x101010101010101 r9 0x8080808080808080 r10 0xbd3443d359d33a60 r11 0xa7d008037f0b3b61 r12 0 r13 0xffffffff8371f000 uvm_map_addr_RBT_INFO r14 0 r15 0x1 rip 0xffffffff826638a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c903580 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=168272 pid=66384 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000314ccd28 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000314cc7f8,0xffff80003c90a7f8 process=0xffff8000ffff71a0 user=0xffff80003c8fe000, vmspace=0xfffffd806cd0b2f0 estcpu=1, cpticks=7, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 50718 53100 21011 0 2 0 syz-executor 50718 329889 21011 0 3 0x4000080 sbwait syz-executor 23882 338147 64706 0 2 0 syz-executor 23882 130864 64706 0 3 0x4000080 fsleep syz-executor 81849 515299 19238 0 2 0 syz-executor 81849 471432 19238 0 3 0x4000080 fsleep syz-executor 4038 216978 99644 0 2 0x82000 syz-executor 4038 430781 99644 0 4 0x4082000 syz-executor 4038 128887 99644 0 4 0x4082000 syz-executor 4038 345179 99644 0 3 0x4002000 suspend syz-executor 89626 398656 94350 0 2 0 syz-executor 89626 134543 94350 0 2 0x4000000 syz-executor 49529 407897 0 0 3 0x14200 acct acct 51958 444004 0 0 3 0x14280 nfsidl nfsio 79914 265243 0 0 3 0x14280 nfsidl nfsio 34098 38847 0 0 3 0x14280 nfsidl nfsio 564 407630 0 0 3 0x14280 nfsidl nfsio 87571 401511 0 0 3 0x14280 nfsidl nfsio 8082 109680 0 0 3 0x14280 nfsidl nfsio 13522 42605 0 0 3 0x14280 nfsidl nfsio 10955 379054 0 0 3 0x14280 nfsidl nfsio 38349 415474 0 0 3 0x14280 nfsidl nfsio 1863 28698 0 0 3 0x14280 nfsidl nfsio 27873 294516 0 0 3 0x14280 nfsidl nfsio 15080 355606 0 0 3 0x14280 nfsidl nfsio 36969 135607 0 0 3 0x14280 nfsidl nfsio 33762 140396 0 0 3 0x14280 nfsidl nfsio 9370 432275 0 0 3 0x14280 nfsidl nfsio 80496 136702 0 0 3 0x14280 nfsidl nfsio 95498 115143 0 0 3 0x14280 nfsidl nfsio 46366 518737 0 0 3 0x14280 nfsidl nfsio 9940 325508 0 0 3 0x14280 nfsidl nfsio 2859 180870 0 0 3 0x14280 nfsidl nfsio 51385 308146 61694 0 3 0x82 nanoslp syz-executor 94350 174752 61694 0 2 0xc82 syz-executor 19238 67030 61694 0 3 0x82 nanoslp syz-executor 21011 96881 61694 0 3 0x82 nanoslp syz-executor 14074 323893 61694 0 3 0x82 nanoslp syz-executor 99644 68519 61694 0 3 0x82 nanoslp syz-executor 64706 306103 61694 0 3 0x82 nanoslp syz-executor 52852 287795 61694 0 3 0x82 nanoslp syz-executor 61694 367686 55591 0 3 0x82 kqread syz-executor 55591 515298 11104 0 3 0x10008a sigsusp ksh 11104 20456 53036 0 3 0x98 kqread sshd-session 53036 500974 36423 0 3 0x92 kqread sshd-session 34203 144307 1 0 3 0x100083 ttyin getty 36423 205838 1 0 3 0x88 kqread sshd 4392 129945 24456 73 3 0x1100090 kqread syslogd 24456 216136 1 0 3 0x100082 sbwait syslogd 58990 443022 1 0 3 0x100080 kqread resolvd 11507 443817 71336 77 3 0x100092 kqread dhcpleased 85835 482938 71336 77 3 0x100092 kqread dhcpleased 71336 513744 1 0 3 0x80 kqread dhcpleased 61261 44278 0 0 3 0x14200 bored smr 67836 321277 0 0 2 0x14200 zerothread 67870 326110 0 0 3 0x14200 aiodoned aiodoned 60195 103756 0 0 3 0x14200 syncer update 60744 485546 0 0 3 0x14200 cleaner cleaner 82980 53398 0 0 3 0x14200 reaper reaper 62726 108466 0 0 3 0x14200 pgdaemon pagedaemon 11114 339546 0 0 3 0x14200 bored viomb 89299 273341 0 0 3 0x40014200 acpi0 acpi0 89464 16034 0 0 3 0x14200 bored softnet0 91498 515836 0 0 3 0x14200 bored systqmp 37581 67376 0 0 3 0x14200 bored systq 31730 364779 0 0 3 0x40014200 tmoslp softclock 36623 350787 0 0 3 0x40014200 idle0 1 253784 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 11035 12103K 12579K 166960K 12235 0 pcb 17 12K 12K 166960K 25 0 rtable 240 7K 7K 166960K 359 0 pf 31 13K 16K 166960K 41 0 ifaddr 42 7K 7K 166960K 48 0 ifgroup 50 2K 2K 166960K 58 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 18K 166960K 38 0 ioctlops 0 0K 2K 166960K 36 0 iov 1 8K 16K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1289 81K 82K 166960K 1413 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 202 0 sigio 0 0K 0K 166960K 1 0 proc 62 67K 83K 166960K 508 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 14 0 in_multi 99 7K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 402 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 230 160K 166K 166960K 3518 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 38 76K 93K 166960K 1286 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 6 0 NDP 11 0K 2K 166960K 31 0 temp 35 9062K 9142K 166960K 8548 0 kqueue 13 20K 24K 166960K 33 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 37 0 34 1 0 1 1 0 8 0 rtentry 136 112 0 2 4 0 4 4 0 8 0 unpcb 144 158 0 141 4 0 4 4 0 8 3 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 27 0 23 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 109 0 102 2 0 2 2 0 8 1 nd6 112 24 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 5 0 5 1 0 1 1 0 8 1 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 1 0 0 1 0 1 1 0 8 0 pfstkey 128 1 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 483 0 31 31 0 31 31 0 8 2 art_table 40 484 0 31 5 0 5 5 0 8 0 art_node 32 112 0 12 1 0 1 1 0 8 0 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1684 0 227 92 0 92 92 0 8 0 ffsino 256 1684 0 227 92 0 92 92 0 8 0 nchpl 144 1969 0 283 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 1797 0 0 100 0 100 100 0 8 0 namei 1024 6046 0 6046 2 0 2 2 0 8 2 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 7265 0 7265 8 0 8 8 1 8 8 plimitpl 152 40 0 22 1 0 1 1 0 8 0 sigapl 424 514 0 450 8 0 8 8 0 8 0 knotepl 120 14065 0 14018 10 0 10 10 0 8 8 kqueuepl 184 35 0 26 1 0 1 1 0 8 0 pipepl 304 188 0 161 8 0 8 8 0 8 5 fdescpl 448 480 0 451 5 0 5 5 0 8 1 filepl 120 2133 0 1916 12 0 12 12 0 8 4 lockfpl 104 160 0 158 2 0 2 2 0 8 1 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 150 0 138 1 0 1 1 0 8 0 zombiepl 144 453 0 450 1 0 1 1 0 8 0 processpl 1152 514 0 450 5 0 5 5 0 8 0 procpl 664 615 0 544 7 0 7 7 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 310 0 283 7 0 7 7 0 8 5 mcl64k 65536 8 0 8 1 0 1 1 0 8 1 mcl16k 16384 7 0 7 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2561 0 2509 15 0 15 15 0 8 8 mcl2k 2048 174 0 174 1 0 1 1 0 8 1 mtagpl 96 8 0 4 1 0 1 1 0 8 0 mbufpl 256 4832 0 4680 14 0 14 14 0 8 4 bufpl 280 4978 0 102 349 0 349 349 0 8 0 anonpl 24 109467 0 101642 48 0 48 48 0 187 0 amapchunkpl 152 10369 0 9610 30 0 30 30 0 158 0 amappl16 200 1937 0 1911 5 0 5 5 0 8 1 amappl15 192 11 0 11 1 0 1 1 0 8 1 amappl14 184 446 0 445 1 0 1 1 0 8 0 amappl13 176 110 0 100 1 0 1 1 0 8 0 amappl12 168 735 0 706 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 0 1 1 0 8 1 amappl10 152 61 0 51 1 0 1 1 0 8 0 amappl9 144 284 0 284 1 0 1 1 0 8 1 amappl8 136 102 0 101 1 0 1 1 0 8 0 amappl7 128 141 0 130 1 0 1 1 0 8 0 amappl6 120 153 0 152 1 0 1 1 0 8 0 amappl5 112 84 0 77 1 0 1 1 0 8 0 amappl4 104 250 0 234 1 0 1 1 0 8 0 amappl3 96 1795 0 1679 3 0 3 3 0 8 0 amappl2 88 499 0 447 2 0 2 2 0 8 0 amappl1 80 9156 0 8596 13 0 13 13 0 8 1 amappl 88 2835 0 2667 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 254 0 254 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 480 0 450 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 480 0 450 1 0 1 1 0 8 0 vmmpekpl 168 5808 0 5778 2 0 2 2 0 8 0 vmmpepl 168 38377 0 36556 83 0 83 83 0 357 3 vmsppl 368 479 0 450 4 0 4 4 0 8 1 rwobjpl 40 13929 0 12974 11 0 11 11 0 8 0 pdppl 4096 966 0 900 96 30 66 78 0 8 0 pvpl 32 261217 0 234221 218 0 218 218 0 265 0 pmappl 216 479 0 450 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 364 0 30 10 0 10 10 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:438 panic(ffffffff8341137e) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834519e6,ffffffff8343b1d4,4e2,ffffffff833aa441) at __assert+0x29 sys/kern/subr_prf.c:-1 uvm_pageunwire(fffffd80078d5280) at uvm_pageunwire+0x17d sys/uvm/uvm_page.c:1249 uvm_fault_unwire_locked(fffffd806cd0b2f0,7a370304000,7a370305000) at uvm_fault_unwire_locked+0x33a sys/uvm/uvm_fault.c:1790 uvm_unmap_kill_entry_withlock(fffffd806cd0b2f0,fffffd806ccf2548,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1866 uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000314ccd28,0,0,1) at exit1+0x6e6 sys/kern/kern_exit.c:259 sys_exit(ffff8000314ccd28,ffff80003c903950,ffff80003c9038a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c903950) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c903950) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bfb963b5160, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8341137e) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834519e6,ffffffff8343b1d4,4e2,ffffffff833aa441) at __assert+0x29 sys/kern/subr_prf.c:-1 uvm_pageunwire(fffffd80078d5280) at uvm_pageunwire+0x17d sys/uvm/uvm_page.c:1249 uvm_fault_unwire_locked(fffffd806cd0b2f0,7a370304000,7a370305000) at uvm_fault_unwire_locked+0x33a sys/uvm/uvm_fault.c:1790 uvm_unmap_kill_entry_withlock(fffffd806cd0b2f0,fffffd806ccf2548,0) at uvm_unmap_kill_entry_withlock+0x81 sys/uvm/uvm_map.c:1866 uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806cd0b2f0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000314ccd28,0,0,1) at exit1+0x6e6 sys/kern/kern_exit.c:259 sys_exit(ffff8000314ccd28,ffff80003c903950,ffff80003c9038a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c903950) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c903950) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bfb963b5160, count: -11