kernel: protection fault trap, code=0 Stopped at free+0x3bc: movq 0x8(%r13),%r13 ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> show kasan No such command ddb> trace free(ffff800000c57ad0,2,8) at free+0x3bc sys/kern/kern_malloc.c:458 wsmouse_param_ioctl(ffff8000002a4800,80105727,200000000100,1) at wsmouse_param_ioctl+0x219 sys/dev/wscons/wsmouse.c:469 wsmouseioctl(4400,80105727,ffff80003c905c90,2,ffff800035cd0a80) at wsmouseioctl+0x7a wsmousedoioctl sys/dev/wscons/wsmouse.c:430 [inline] wsmouseioctl(4400,80105727,ffff80003c905c90,2,ffff800035cd0a80) at wsmouseioctl+0x7a sys/dev/wscons/wsmouse.c:417 VOP_IOCTL(fffffd806f55ad88,80105727,ffff80003c905c90,2,fffffd8007ffd6e8,ffff800035cd0a80) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806dccd448,80105727,ffff80003c905c90,ffff800035cd0a80) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537 sys_ioctl(ffff800035cd0a80,ffff80003c905e60,ffff80003c905db0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c905e60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c905e60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x672fde0ba10, count: -8 ddb> show registers rdi 0xffff80002a8a6000 rsi 0x8f rbp 0xffff80003c9059d0 rbx 0x20c2a5d3c9761a17 rdx 0xffff80002a8a6000 rcx 0x8e rax 0xffffffff8294555a free+0x3ca r8 0x7f7fffffc000 r9 0xffff800035cd0a80 r10 0x9071a173f56f951f r11 0xec1e92f944842fac r12 0xc34 r13 0x20c2a5d3a321038a r14 0xffff800000c57ad0 r15 0xffffffff83a8a1d0 bucket+0x120 rip 0xffffffff8294554c free+0x3bc cs 0x8 rflags 0x10203 __ALIGN_SIZE+0xf203 rsp 0xffff80003c905950 ss 0x10 free+0x3bc: movq 0x8(%r13),%r13 ddb> show proc PROC (syz-executor) tid=69537 pid=18185 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800035cd0550,0xffffffff83acc900 process=0xffff800045ffb618 user=0xffff80003c900000, vmspace=0xfffffd800e0a15d8 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18185 245556 92390 0 2 0 syz-executor *18185 69537 92390 0 7 0x4000000 syz-executor 2238 329071 20580 60929 2 0x10 syz-executor 2238 22102 20580 60929 3 0x4000090 fsleep syz-executor 96146 339903 32098 0 2 0 syz-executor 96146 295386 32098 0 3 0x4000080 fsleep syz-executor 87254 323392 73087 0 2 0x10 syz-executor 87254 249267 73087 0 2 0x4000010 syz-executor 86890 353373 20402 0 2 0 syz-executor 86890 450548 20402 0 2 0x4000c80 syz-executor 62825 195999 92145 0 2 0 syz-executor 62825 175273 92145 0 3 0x4000080 fsleep syz-executor 37987 172069 46979 0 2 0 syz-executor 37987 143963 46979 0 3 0x4000080 kqsel syz-executor 48822 247197 53842 0 3 0x90 nanoslp syz-executor 48822 311443 53842 0 2 0x4000010 syz-executor 48822 235800 53842 0 3 0x4000090 fsleep syz-executor 73087 340494 43672 0 2 0xc82 syz-executor 20580 450167 43672 0 3 0x82 nanoslp syz-executor 53842 345556 43672 0 3 0x82 nanoslp syz-executor 32098 446597 43672 0 2 0xc82 syz-executor 46979 459550 43672 0 3 0x82 nanoslp syz-executor 92145 28529 43672 0 2 0xc82 syz-executor 20402 369489 43672 0 2 0xc82 syz-executor 92390 255670 43672 0 3 0x82 nanoslp syz-executor 43672 246183 61884 0 3 0x82 kqread syz-executor 61884 240193 64954 0 3 0x10008a sigsusp ksh 64954 231109 55751 0 3 0x98 kqread sshd-session 55751 227197 68378 0 3 0x92 kqread sshd-session 17769 223208 1 0 3 0x100083 ttyin getty 68378 499307 1 0 3 0x88 kqread sshd 40297 10737 21137 73 3 0x1100090 kqread syslogd 21137 510324 1 0 3 0x100082 sbwait syslogd 2423 467243 1 0 3 0x100080 kqread resolvd 82541 352993 9981 77 3 0x100092 kqread dhcpleased 79540 146920 9981 77 3 0x100092 kqread dhcpleased 9981 320469 1 0 3 0x80 kqread dhcpleased 30940 276268 0 0 3 0x14200 bored smr 97749 65756 0 0 2 0x14200 zerothread 51393 48782 0 0 3 0x14200 aiodoned aiodoned 47658 427663 0 0 3 0x14200 syncer update 41257 261469 0 0 3 0x14200 cleaner cleaner 90171 34108 0 0 3 0x14200 reaper reaper 83107 372821 0 0 3 0x14200 pgdaemon pagedaemon 5373 192909 0 0 3 0x14200 bored viomb 10480 89873 0 0 3 0x40014200 acpi0 acpi0 81825 520754 0 0 3 0x14200 bored softnet0 40895 41336 0 0 3 0x14200 bored systqmp 73470 138702 0 0 3 0x14200 bored systq 67883 14389 0 0 3 0x40014200 tmoslp softclock 17074 154689 0 0 3 0x40014200 idle0 1 322296 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 11042 12207K 12396K 166960K 12315 0 pcb 18 12K 12K 166960K 41 0 rtable 247 7K 8K 166960K 372 0 pf 33 13K 93K 166960K 61 0 ifaddr 42 7K 7K 166960K 58 0 ifgroup 50 2K 2K 166960K 77 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 47 0 ioctlops 0 0K 4K 166960K 51 0 iov 0 0K 13K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1358 85K 86K 166960K 1507 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 8 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 97K 166960K 237 0 sigio 0 0K 0K 166960K 3 0 proc 59 59K 91K 166960K 524 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 2 0K 0K 166960K 11 0 in_multi 100 7K 7K 166960K 100 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 2K 166960K 473 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 225 150K 160K 166960K 3852 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 39 78K 95K 166960K 1347 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 11 0K 2K 166960K 39 0 temp 38 9110K 9174K 166960K 4003 0 kqueue 14 20K 30K 166960K 49 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 43 0 40 1 0 1 1 0 8 0 rtentry 136 116 0 3 4 0 4 4 0 8 0 unpcb 144 74 0 59 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 50 0 40 2 0 2 2 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 156 0 139 2 0 2 2 0 8 0 ip6q 72 3 0 2 1 0 1 1 0 8 0 ip6af 40 5 0 4 1 0 1 1 0 8 0 nd6 112 27 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 13 0 13 1 0 1 1 0 8 1 pfstscr 40 4 0 4 1 0 1 1 0 8 1 pfstkey 128 4 0 4 1 0 1 1 0 8 1 pfstate 384 2 0 2 1 0 1 1 0 8 1 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 473 0 13 30 0 30 30 0 8 0 art_table 40 474 0 13 5 0 5 5 0 8 0 art_node 32 116 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 72 7 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1767 0 308 92 0 92 92 0 8 0 ffsino 256 1767 0 308 92 0 92 92 0 8 0 nchpl 144 2097 0 399 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 1955 0 0 109 0 109 109 0 8 0 namei 1024 6818 0 6818 2 0 2 2 0 8 2 kstatmem 264 47 0 24 2 0 2 2 0 8 0 scxspl 216 7242 0 7242 8 0 8 8 1 8 8 plimitpl 152 40 0 22 1 0 1 1 0 8 0 sigapl 424 535 0 492 6 0 6 6 0 8 1 knotepl 120 6491 0 6443 9 0 9 9 0 8 7 kqueuepl 184 54 0 43 1 0 1 1 0 8 0 pipepl 304 160 0 133 5 0 5 5 0 8 2 fdescpl 448 522 0 492 5 0 5 5 0 8 1 filepl 120 2119 0 1893 9 0 9 9 0 8 2 lockfpl 104 83 0 80 1 0 1 1 0 8 0 lockfspl 48 30 0 27 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 194 0 180 1 0 1 1 0 8 0 zombiepl 144 492 0 492 1 0 1 1 0 8 1 processpl 1152 535 0 492 4 0 4 4 0 8 0 procpl 664 701 0 649 6 0 6 6 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 279 0 244 4 0 4 4 0 8 1 mcl64k 65536 4 0 3 1 0 1 1 0 8 0 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2608 0 2557 13 0 13 13 0 8 6 mcl2k 2048 207 0 204 1 0 1 1 0 8 0 mextrefs 64 88 0 87 1 0 1 1 0 8 0 mtagpl 96 6 0 4 1 0 1 1 0 8 0 mbufpl 256 5448 0 5279 22 0 22 22 0 8 8 bufpl 272 2409 0 104 154 0 154 154 0 8 0 anonpl 24 89848 0 86606 21 0 21 21 0 187 0 amapchunkpl 152 11343 0 10854 33 0 33 33 0 158 14 amappl16 200 1355 0 1325 4 0 4 4 0 8 2 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 412 0 411 1 0 1 1 0 8 0 amappl13 176 116 0 106 1 0 1 1 0 8 0 amappl12 168 759 0 730 2 0 2 2 0 8 0 amappl11 160 29 0 29 1 0 1 1 0 8 1 amappl10 152 55 0 45 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 0 1 1 0 8 1 amappl8 136 92 0 91 1 0 1 1 0 8 0 amappl7 128 142 0 131 1 0 1 1 0 8 0 amappl6 120 150 0 147 1 0 1 1 0 8 0 amappl5 112 182 0 175 1 0 1 1 0 8 0 amappl4 104 265 0 249 1 0 1 1 0 8 0 amappl3 96 2048 0 1934 4 0 4 4 0 8 0 amappl2 88 524 0 471 2 0 2 2 0 8 0 amappl1 80 10514 0 9957 13 0 13 13 0 8 1 amappl 88 3144 0 2981 5 0 5 5 0 92 1 uvmvnodes 80 99 0 0 3 0 3 3 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 253 0 253 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 522 0 492 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 522 0 492 1 0 1 1 0 8 0 vmmpekpl 168 6103 0 6073 2 0 2 2 0 8 0 vmmpepl 168 41687 0 39862 81 0 81 81 0 357 0 vmsppl 368 521 0 492 4 0 4 4 0 8 1 rwobjpl 40 14685 0 13733 11 0 11 11 0 8 0 pdppl 4096 1050 0 984 100 34 66 82 0 8 0 pvpl 32 238067 0 228989 79 0 79 79 0 265 2 pmappl 216 521 0 492 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 527 0 34 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace free(ffff800000c57ad0,2,8) at free+0x3bc sys/kern/kern_malloc.c:458 wsmouse_param_ioctl(ffff8000002a4800,80105727,200000000100,1) at wsmouse_param_ioctl+0x219 sys/dev/wscons/wsmouse.c:469 wsmouseioctl(4400,80105727,ffff80003c905c90,2,ffff800035cd0a80) at wsmouseioctl+0x7a wsmousedoioctl sys/dev/wscons/wsmouse.c:430 [inline] wsmouseioctl(4400,80105727,ffff80003c905c90,2,ffff800035cd0a80) at wsmouseioctl+0x7a sys/dev/wscons/wsmouse.c:417 VOP_IOCTL(fffffd806f55ad88,80105727,ffff80003c905c90,2,fffffd8007ffd6e8,ffff800035cd0a80) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806dccd448,80105727,ffff80003c905c90,ffff800035cd0a80) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537 sys_ioctl(ffff800035cd0a80,ffff80003c905e60,ffff80003c905db0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c905e60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c905e60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x672fde0ba10, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace free(ffff800000c57ad0,2,8) at free+0x3bc sys/kern/kern_malloc.c:458 wsmouse_param_ioctl(ffff8000002a4800,80105727,200000000100,1) at wsmouse_param_ioctl+0x219 sys/dev/wscons/wsmouse.c:469 wsmouseioctl(4400,80105727,ffff80003c905c90,2,ffff800035cd0a80) at wsmouseioctl+0x7a wsmousedoioctl sys/dev/wscons/wsmouse.c:430 [inline] wsmouseioctl(4400,80105727,ffff80003c905c90,2,ffff800035cd0a80) at wsmouseioctl+0x7a sys/dev/wscons/wsmouse.c:417 VOP_IOCTL(fffffd806f55ad88,80105727,ffff80003c905c90,2,fffffd8007ffd6e8,ffff800035cd0a80) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806dccd448,80105727,ffff80003c905c90,ffff800035cd0a80) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537 sys_ioctl(ffff800035cd0a80,ffff80003c905e60,ffff80003c905db0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c905e60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c905e60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x672fde0ba10, count: -8