kernel: protection fault trap, code=0 Stopped at wsmux_getmux+0x247: movq 0(%r12,%r15,8),%rbx ddb> ddb> set $lines = 0 ddb> show panic the kernel did not panic ddb> trace wsmux_getmux(527e84f24093eb57) at wsmux_getmux+0x247 sys/dev/wscons/wsmux.c:151 wsmux_do_ioctl(bb5aaf37d95abc2a,80085761,fffffd803afb6e40,82,fffffd803f7c7660) at wsmux_do_ioctl+0x268 wsmux_add_mux sys/dev/wscons/wsmux.c:563 [inline] wsmux_do_ioctl(bb5aaf37d95abc2a,80085761,fffffd803afb6e40,82,fffffd803f7c7660) at wsmux_do_ioctl+0x268 sys/dev/wscons/wsmux.c:424 VOP_IOCTL(7124da585552cd6d,80085761,fffffd80302c5e98,ffff8000ffff5530,fffffd803afb6e40,ffff8000ffff5530) at VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290 vn_ioctl(e98fa5e76d441fc2,fffffd80302c5e98,ffff8000ffff5530,8) at vn_ioctl+0xc5 sys/kern/vfs_vnops.c:512sys_ioctl(cfb84f6891862bb2,0,ffff8000ffff5530) at sys_ioctl+0x639 syscall(3387924e7fef0970) at syscall+0x528 Xsyscall(6,0,ffffffffffffff89,0,3,1771e566010) at Xsyscall+0x128 end of kernel end trace frame: 0x1796ae4f890, count: -7 ddb> show registers rdi 0xffffffff81258639 wsmux_getmux+0x49 rsi 0x2a rbp 0xffff800014a2e940 rbx 0x100001 acpi_pdirpa+0xebe69 rdx 0x2b rcx 0xffff800002b3a000 rax 0xffff800002b3a000 r8 0xffffffff81257b63 wsmux_do_ioctl+0x243 r9 0x5 r10 0xc0cc71fbb8849e40 r11 0x20c0cddab3eba361 r12 0xffff800004fbf000 r13 0x82 r14 0xdf7ffce3 r15 0xffffffffdf7ffce3 rip 0xffffffff81258837 wsmux_getmux+0x247 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800014a2e8f0 ss 0x10 wsmux_getmux+0x247: movq 0(%r12,%r15,8),%rbx ddb> show proc PROC (syz-executor0) pid=313553 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4720,0xffff8000ffff5798 process=0xffff8000149c93d0 user=0xffff800014a29000, vmspace=0xfffffd803f015630 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39170 23012 61725 0 2 0 syz-executor1 39170 266345 61725 0 3 0x4000080 fsleep syz-executor1 92661 239018 60536 0 2 0 syz-executor0 *92661 313553 60536 0 7 0x4000000 syz-executor0 36202 376038 1 0 3 0x100083 ttyin getty 22129 298143 0 0 3 0x14200 bored sosplice 60536 431556 38652 0 3 0x82 nanosleep syz-executor0 61725 332540 38652 0 3 0x82 nanosleep syz-executor1 38652 14836 37358 0 3 0x82 thrsleep syz-fuzzer 38652 86896 37358 0 3 0x4000082 thrsleep syz-fuzzer 38652 504022 37358 0 3 0x4000082 thrsleep syz-fuzzer 38652 418008 37358 0 3 0x4000082 thrsleep syz-fuzzer 38652 232346 37358 0 3 0x4000082 thrsleep syz-fuzzer 38652 44428 37358 0 3 0x4000082 kqread syz-fuzzer 38652 143025 37358 0 3 0x4000082 thrsleep syz-fuzzer 38652 484859 37358 0 3 0x4000082 thrsleep syz-fuzzer 37358 277864 75237 0 3 0x10008a pause ksh 75237 447870 73083 0 3 0x92 select sshd 73083 77095 1 0 3 0x80 select sshd 49776 17867 16019 73 3 0x100090 kqread syslogd 16019 86206 1 0 3 0x100082 netio syslogd 74022 90681 1 77 3 0x100090 poll dhclient 40029 103750 1 0 3 0x80 poll dhclient 15041 318267 0 0 2 0x14200 zerothread 55845 142114 0 0 3 0x14200 aiodoned aiodoned 73550 429247 0 0 3 0x14200 syncer update 8914 90499 0 0 3 0x14200 cleaner cleaner 54704 182901 0 0 3 0x14200 reaper reaper 74312 203922 0 0 3 0x14200 pgdaemon pagedaemon 62113 340804 0 0 3 0x14200 bored crynlk 37120 429018 0 0 3 0x14200 bored crypto 56380 158638 0 0 3 0x40014200 acpi0 acpi0 8248 213016 0 0 3 0x14200 bored softnet 35373 242924 0 0 3 0x14200 bored systqmp 80974 84127 0 0 3 0x14200 bored systq 45881 272803 0 0 3 0x40014200 bored softclock 7742 97880 0 0 3 0x40014200 idle0 1 170596 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 Kern Lim devbuf 9532 14558K 17107K 78643K 11546 0 0 pcb 23 9K 10K 78643K 2237 0 0 rtable 100 3K 3K 78643K 576 0 0 ifaddr 61 14K 16K 78643K 291 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 51 0 0 iov 0 0K 16K 78643K 496 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1193 75K 76K 78643K 3885 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 72 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 426 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 6 17K 25K 78643K 4155 0 0 sigio 0 0K 0K 78643K 95 0 0 proc 42 30K 54K 78643K 906 0 0 subproc 64 65538K 69634K 78643K 95 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 654 0 0 in_multi 33 2K 2K 78643K 219 0 0 ether_multi 1 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 508 0 0 pfkey data 0 0K 0K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 104 22K 41K 78643K 10796 0 0 UVM aobj 130 5K 6K 78643K 162 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 116 0 0 NDP 13 0K 0K 78643K 82 0 0 temp 178 2347K 2418K 78643K 13704 0 0 kqueue 0 0K 0K 78643K 26 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 1858 0 1848 1 0 1 1 0 8 0 plimitpl 152 69 0 62 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 661 0 657 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 39 0 39 16 15 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 11 1 0 1 1 0 8 0 semapl 112 422 0 412 1 0 1 1 0 8 0 shmpl 112 160 0 32 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9517 0 8044 49 1 48 48 0 8 0 ffsino 240 9517 0 8044 89 2 87 87 0 8 0 nchpl 144 15661 0 14073 60 0 60 60 0 8 0 uvmvnodes 72 6506 0 0 119 0 119 119 0 8 0 vnodes 200 6506 0 0 343 0 343 343 0 8 0 namei 1024 49222 0 49222 2 1 1 1 0 8 1 scsiplug 64 8 0 8 7 7 0 1 0 8 0 scxspl 192 51179 0 51179 28 27 1 6 0 8 1 sigapl 432 4325 0 4311 2 0 2 2 0 8 0 futexpl 56 67304 0 67303 1 0 1 1 0 8 0 knotepl 112 1117 0 1090 8 7 1 2 0 8 0 kqueuepl 104 1412 0 1410 1 0 1 1 0 8 0 pipepl 112 3054 0 3035 12 11 1 2 0 8 0 fdescpl 424 4326 0 4311 2 0 2 2 0 8 0 filepl 120 28161 0 28062 7 3 4 5 0 8 1 lockfpl 96 1377 0 1376 3 2 1 1 0 8 0 lockfspl 24 2266 0 2265 3 2 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 80 0 70 1 0 1 1 0 8 0 ucredpl 96 9442 0 9435 1 0 1 1 0 8 0 zombiepl 144 4311 0 4311 2 1 1 1 0 8 1 processpl 840 4340 0 4311 5 1 4 4 0 8 0 procpl 600 9951 0 9913 4 0 4 4 0 8 0 sosppl 128 65 0 65 21 20 1 1 0 8 1 sockpl 384 3960 0 3940 4 1 3 3 0 8 1 mcl64k 65536 3007 0 3007 247 232 15 64 0 8 15 mcl16k 16384 19 0 19 12 11 1 1 0 8 1 mcl12k 12288 74 0 74 18 17 1 1 0 8 1 mcl9k 9216 84 0 84 16 15 1 1 0 8 1 mcl8k 8192 65 0 65 18 17 1 1 0 8 1 mcl4k 4096 216 0 216 6 5 1 1 0 8 1 mcl2k2 2112 35 0 35 17 16 1 1 0 8 1 mcl2k 2048 45203 0 45166 15 9 6 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 95731 0 95672 157 152 5 36 0 8 0 bufpl 256 14826 0 8320 408 1 407 407 0 8 0 anonpl 16 446056 0 438472 169 124 45 49 0 62 9 amapchunkpl 152 27695 0 27613 199 195 4 96 0 158 0 amappl16 192 26659 0 26255 208 181 27 34 0 8 6 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 2 0 1 2 1 1 1 0 8 0 amappl13 168 27 0 21 1 0 1 1 0 8 0 amappl12 160 16 0 16 3 3 0 1 0 8 0 amappl11 152 184 0 174 1 0 1 1 0 8 0 amappl10 144 8336 0 8330 2 1 1 1 0 8 0 amappl9 136 339 0 338 1 0 1 1 0 8 0 amappl8 128 185 0 152 2 0 2 2 0 8 0 amappl7 120 37 0 32 1 0 1 1 0 8 0 amappl6 112 49 0 42 1 0 1 1 0 8 0 amappl5 104 148 0 136 1 0 1 1 0 8 0 amappl4 96 325 0 305 2 1 1 2 0 8 0 amappl3 88 338 0 333 1 0 1 1 0 8 0 amappl2 80 42271 0 42210 2 0 2 2 0 8 0 amappl1 72 85123 0 84686 25 15 10 19 0 8 0 amappl 72 10259 0 10226 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 161 0 32 3 0 3 3 0 8 0 uaddrrnd 24 4326 0 4311 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4326 0 4311 1 0 1 1 0 8 0 vmmpekpl 168 36288 0 36267 2 0 2 2 0 8 0 vmmpepl 168 461192 0 459749 198 126 72 75 0 357 9 vmsppl 264 4325 0 4311 2 1 1 2 0 8 0 pdppl 4096 8658 0 8622 6 1 5 6 0 8 0 pvpl 32 1346197 0 1335499 344 222 122 165 0 265 29 pmappl 192 4325 0 4311 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 979 0 433 19 2 17 18 0 8 0