kernel: protection fault trap, code=0 Stopped at malloc+0x855: movq 0x8(%rbx),%r14 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 malloc(10,7f,1) at malloc+0x855 sys/kern/kern_malloc.c:294 ktrsyscall(ffff80002a778010,67,8,ffff80002a7d3650) at ktrsyscall+0x199 sys/kern/kern_ktrace.c:174 syscall(ffff80002a7d3650) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7d3650) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6f8b8f4920, count: -4 ddb> show registers rdi 0xcfb5627d141db826 rsi 0 rbp 0xffff80002a7d34a0 rbx 0xcfb5627d141db826 rdx 0 rcx 0x4 rax 0xffff80002a778010 r8 0 r9 0 r10 0 r11 0xf018a1a446a9b3f5 r12 0 r13 0xffffffff839b8a90 kmemstats+0x1fc0 r14 0xa30c333 __kernel_phys_end+0x670c333 r15 0xcfb5627d141db826 rip 0xffffffff81679c55 malloc+0x855 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002a7d33e0 ss 0x10 malloc+0x855: movq 0x8(%rbx),%r14 ddb> show proc PROC (syz-executor) tid=510864 pid=38641 tcnt=1 stat=onproc flags process=10000002 proc=1 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a778540,0xffff80002a779778 process=0xffff80002a79db10 user=0xffff80002a7ce000, vmspace=0xfffffd007f22e2e0 estcpu=36, cpticks=5, pctcpu=0.0, user=0, sys=4, intr=1 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 35734 193971 64884 0 2 0 0 syz-executor 78817 457522 84515 0 2 0 0xc80 syz-executor 78817 148470 84515 0 3 0 0x4000088 kqpoll syz-executor 78817 404598 84515 0 3 0 0x4000080 fsleep syz-executor 45964 320859 52402 0 2 0 0 syz-executor 45964 281863 52402 0 3 0 0x4000080 fsleep syz-executor 45964 352617 52402 0 3 0 0x4000080 fsleep syz-executor 57212 255429 9061 0 3 0x1000 0x2000 suspend syz-executor 57212 372774 9061 0 3 0x1000 0x4080000 biowait syz-executor 57212 453657 9061 0 3 0x1000 0x4080000 inode syz-executor 58618 163486 0 0 3 0x14000 0x200 acct acct 87704 306697 1 0 3 0x100003 0x80 ttyin getty 52402 475480 87880 0 2 0x2 0xc80 syz-executor 41812 398109 87880 0 3 0x2 0 biowait syz-executor 73004 55167 87880 0 2 0x2 0 syz-executor 66948 16082 87880 0 2 0x2 0 syz-executor 64884 171122 87880 0 2 0x2 0xc80 syz-executor 9061 500510 87880 0 3 0x2 0x80 wait syz-executor 84515 387331 87880 0 3 0x2 0x80 nanoslp syz-executor *38641 510864 87880 0 7 0x10000002 0x1 syz-executor 87880 279190 73969 0 3 0x2 0x80 kqread syz-executor 73969 126703 65071 0 3 0x100002 0x88 sigsusp ksh 65071 405724 19126 0 3 0x10 0x88 kqread sshd-session 19126 335890 90949 0 3 0x12 0x80 kqread sshd-session 90949 354880 1 0 3 0 0x88 kqread sshd 38309 403670 97398 73 3 0x1100010 0x80 kqread syslogd 97398 384766 1 0 3 0x100002 0x80 sbwait syslogd 2774 214793 1 0 3 0x100000 0x80 kqread resolvd 96859 95724 37083 77 3 0x100012 0x80 kqread dhcpleased 95897 272536 37083 77 3 0x100012 0x80 kqread dhcpleased 37083 227190 1 0 3 0 0x80 kqread dhcpleased 48591 83361 0 0 3 0x14000 0x200 bored smr 73451 163568 0 0 2 0x14000 0x200 zerothread 94012 1154 0 0 3 0x14000 0x200 aiodoned aiodoned 61580 70036 0 0 3 0x14000 0x200 syncer update 11672 157637 0 0 3 0x14000 0x200 cleaner cleaner 26507 204685 0 0 3 0x14000 0x200 reaper reaper 12335 207410 0 0 3 0x14000 0x200 pgdaemon pagedaemon 27001 85966 0 0 3 0x14000 0x200 bored viomb 1688 392469 0 0 3 0x14000 0x40000200 acpi0 acpi0 18068 361858 0 0 3 0x14000 0x200 bored softnet0 36955 168923 0 0 3 0x14000 0x200 bored systqmp 63054 352938 0 0 3 0x14000 0x200 bored systq 99996 201108 0 0 3 0x14000 0x40000200 tmoslp softclock 72088 142686 0 0 3 0x14000 0x40000200 idle0 1 349631 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10010000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11041 12110K 13228K 166960K 12739 0 pcb 17 14K 16K 166960K 159 0 rtable 271 9K 9K 166960K 444 0 pf 31 13K 20K 166960K 105 0 ifaddr 42 7K 7K 166960K 63 0 ifgroup 50 2K 2K 166960K 121 0 sysctl 4 1K 9K 166960K 11 0 counters 33 17K 18K 166960K 52 0 ioctlops 0 0K 4K 166960K 97 0 iov 0 0K 8K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1388 87K 88K 166960K 1824 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 23 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 14 49K 89K 166960K 520 0 sigio 0 0K 0K 166960K 18 0 proc 60 59K 91K 166960K 533 0 subproc 72 4K 4K 166960K 73 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 60 0 in_multi 99 7K 7K 166960K 116 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 16 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 398 0 fusefs mount 1 32K 32K 166960K 1 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 200 158K 174K 166960K 6291 0 UVM aobj 10 2K 2K 166960K 10 0 pinsyscall 35 70K 93K 166960K 1634 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 11 0K 2K 166960K 45 0 temp 51 9113K 9174K 166960K 23230 0 kqueue 14 22K 28K 166960K 108 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 66 0 63 1 0 1 1 0 8 0 rtentry 136 124 0 9 4 0 4 4 0 8 0 unpcb 144 456 0 441 6 0 6 6 0 8 5 syncache 336 8 0 8 2 1 1 1 0 8 1 tcpcb 736 113 0 109 1 0 1 1 0 8 0 arp 96 21 0 2 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 4 0 2 1 0 1 1 0 8 0 inpcb 328 446 0 439 8 1 7 7 0 8 6 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 27 0 1 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 6 0 6 2 1 1 1 0 8 1 pfstscr 40 5 0 0 1 0 1 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 3 0 3 1 0 1 1 0 8 1 pfanchor 1288 5 0 1 1 0 1 1 0 8 0 pftag 88 3 0 0 1 0 1 1 0 8 0 pfstitem 24 6 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 0 1 0 1 1 0 8 0 pfstate 384 3 0 0 1 0 1 1 0 8 0 pfrule 1360 9 0 9 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 469 0 6 29 0 29 29 0 8 0 art_table 40 472 0 6 5 0 5 5 0 8 0 art_node 32 124 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 39 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 20 0 10 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2380 0 923 92 0 92 92 0 8 0 ffsino 256 2380 0 923 92 0 92 92 0 8 0 nchpl 144 3079 0 1391 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 2694 0 0 150 0 150 150 0 8 0 namei 1024 10390 0 10390 2 1 1 2 0 8 1 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 kstatmem 264 57 0 34 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 13912 0 13910 10 2 8 8 1 8 7 plimitpl 152 181 0 164 1 0 1 1 0 8 0 sigapl 424 840 0 799 9 1 8 8 0 8 3 knotepl 120 19890 0 19842 25 15 10 17 0 8 8 kqueuepl 184 220 0 210 4 0 4 4 0 8 3 pipepl 304 277 0 250 8 0 8 8 0 8 5 fdescpl 448 806 0 780 5 1 4 5 0 8 0 filepl 120 5097 0 4893 14 0 14 14 0 8 6 lockfpl 104 187 0 185 1 0 1 1 0 8 0 lockfspl 48 78 0 76 1 0 1 1 0 8 0 sessionpl 144 55 0 47 1 0 1 1 0 8 0 pgrppl 48 66 0 50 1 0 1 1 0 8 0 ucredpl 104 808 0 797 1 0 1 1 0 8 0 zombiepl 144 801 0 799 1 0 1 1 0 8 0 processpl 1152 840 0 799 5 0 5 5 0 8 1 procpl 664 1444 0 1397 7 0 7 7 0 8 2 sockpl 552 990 0 965 12 2 10 12 0 8 8 mcl64k 65536 44 0 44 2 1 1 1 0 8 1 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k128 9344 5 0 5 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 3035 0 2985 15 7 8 14 0 8 0 mcl2k 2048 474 0 473 2 1 1 1 0 8 0 mextrefs 64 237 0 237 2 1 1 1 0 8 1 mtagpl 96 5 0 5 2 1 1 1 0 8 1 mbufpl 256 8661 0 8474 23 6 17 17 0 8 4 bufpl 272 5120 0 105 335 0 335 335 0 8 0 anonpl 24 155224 0 149508 67 1 66 66 0 187 30 amapchunkpl 152 21097 0 20702 34 1 33 33 0 158 12 amappl16 200 3240 0 3045 33 15 18 22 0 8 7 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 412 0 411 1 0 1 1 0 8 0 amappl13 176 147 0 137 1 0 1 1 0 8 0 amappl12 168 1046 0 1021 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 58 0 48 1 0 1 1 0 8 0 amappl9 144 276 0 275 1 0 1 1 0 8 0 amappl8 136 99 0 98 1 0 1 1 0 8 0 amappl7 128 164 0 152 1 0 1 1 0 8 0 amappl6 120 151 0 149 1 0 1 1 0 8 0 amappl5 112 90 0 82 1 0 1 1 0 8 0 amappl4 104 265 0 249 1 0 1 1 0 8 0 amappl3 96 3983 0 3891 4 0 4 4 0 8 0 amappl2 88 549 0 493 2 0 2 2 0 8 0 amappl1 80 11710 0 11172 13 1 12 13 0 8 0 amappl 88 5506 0 5369 5 0 5 5 0 92 0 uvmvnodes 80 112 0 0 3 0 3 3 0 8 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 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 255 0 255 2 1 1 1 0 8 1 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 806 0 780 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 806 0 780 1 0 1 1 0 8 0 vmmpekpl 168 8728 0 8694 2 0 2 2 0 8 0 vmmpepl 168 59803 0 58004 100 3 97 97 0 357 8 vmsppl 368 805 0 780 4 1 3 4 0 8 0 rwobjpl 40 19536 0 18423 15 1 14 14 0 8 0 pdppl 4096 1618 0 1560 96 30 66 78 0 8 8 pvpl 32 391860 0 381321 154 8 146 146 0 265 31 pmappl 216 805 0 780 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 716 0 54 19 0 19 19 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace malloc(10,7f,1) at malloc+0x855 sys/kern/kern_malloc.c:294 ktrsyscall(ffff80002a778010,67,8,ffff80002a7d3650) at ktrsyscall+0x199 sys/kern/kern_ktrace.c:174 syscall(ffff80002a7d3650) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7d3650) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6f8b8f4920, count: -4 ddb> machine ddbcpu 1 No such command ddb> trace malloc(10,7f,1) at malloc+0x855 sys/kern/kern_malloc.c:294 ktrsyscall(ffff80002a778010,67,8,ffff80002a7d3650) at ktrsyscall+0x199 sys/kern/kern_ktrace.c:174 syscall(ffff80002a7d3650) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a7d3650) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f6f8b8f4920, count: -4