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:293 dofilereadv(ffff80002a74d4d0,25,ffff80002a77b718,0,ffff80002a77b7c0) at dofilereadv+0x1f3 sys/kern/sys_generic.c:-1 sys_read(ffff80002a74d4d0,ffff80002a77b870,ffff80002a77b7c0) at sys_read+0xa2 sys/kern/sys_generic.c:172 syscall(ffff80002a77b870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a77b870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7dfeb79dbd60, count: -5 ddb> show registers rdi 0x3461d33bc6dcacaa rsi 0 rbp 0xffff80002a77b660 rbx 0x3461d33bc6dcacaa rdx 0 rcx 0x4 rax 0xffff80002a74d4d0 r8 0xffff80002a77b7c0 r9 0x3 r10 0xff7ba405938e4f48 r11 0xc16f5d4a95a389bb r12 0 r13 0xffffffff839bb7b0 kmemstats+0x1fc0 r14 0xa30c333 __kernel_phys_end+0x670c333 r15 0x3461d33bc6dcacaa rip 0xffffffff81041c65 malloc+0x855 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a77b5a0 ss 0x10 malloc+0x855: movq 0x8(%rbx),%r14 ddb> show proc PROC (syz-executor) tid=336611 pid=52430 tcnt=1 stat=onproc flags process=2 proc=0 runpri=77, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a74c010,0xffff80002a74cfb0 process=0xffff80002a734da0 user=0xffff80002a776000, vmspace=0xfffffd8075d0a5c8 estcpu=27, cpticks=6, pctcpu=0.0, user=1, sys=5, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 16092 161532 52247 0 2 0x40 0 syz-executor 41259 132833 96163 0 2 0 0 syz-executor 41259 245848 96163 0 2 0 0x4000000 syz-executor 41259 316561 96163 0 2 0 0x4000000 syz-executor 41259 482571 96163 0 2 0 0x4000000 syz-executor 41259 475693 96163 0 2 0 0x4000000 syz-executor 24050 342737 59936 0 2 0 0 syz-executor 24050 474481 59936 0 3 0 0x4000080 fsleep syz-executor 66651 44672 20495 0 2 0 0 syz-executor 66651 269610 20495 0 3 0 0x4000080 kqread syz-executor 52247 375521 52430 0 3 0x82 0 ppwait syz-executor 96163 16661 52430 0 3 0x2 0x80 nanoslp syz-executor 85991 80232 52430 0 2 0x2 0 syz-executor 73678 199301 1 0 3 0x100003 0x80 ttyin getty 32021 354144 52430 0 3 0x2 0x80 piperd syz-executor 55869 491514 52430 0 3 0x2 0x80 piperd syz-executor 88165 410812 52430 0 3 0x2 0x80 piperd syz-executor 59936 342936 52430 0 3 0x2 0x80 nanoslp syz-executor 20495 382502 52430 0 3 0x2 0x80 nanoslp syz-executor *52430 336611 84813 0 7 0x2 0 syz-executor 84813 157005 59443 0 3 0x100002 0x88 sigsusp ksh 59443 267548 59718 0 3 0x10 0x88 kqread sshd-session 59718 486416 18971 0 3 0x12 0x80 kqread sshd-session 18971 71826 1 0 3 0 0x88 kqread sshd 93650 268486 52191 73 3 0x1100010 0x80 kqread syslogd 52191 258972 1 0 3 0x100002 0x80 sbwait syslogd-parent 15103 460501 1 0 3 0x100000 0x80 kqread resolvd 42101 55360 45962 77 3 0x100012 0x80 kqread dhcpleased 75805 104074 45962 77 3 0x100012 0x80 kqread dhcpleased 45962 488843 1 0 3 0 0x80 kqread dhcpleased 20200 305815 0 0 3 0x14000 0x200 bored smr 62380 267800 0 0 2 0x14000 0x200 zerothread 83757 360687 0 0 3 0x14000 0x200 aiodoned aiodoned 40070 293498 0 0 3 0x14000 0x200 syncer update 86004 412629 0 0 3 0x14000 0x200 cleaner cleaner 28785 390491 0 0 3 0x14000 0x200 reaper reaper 29760 131701 0 0 3 0x14000 0x200 pgdaemon pagedaemon 96153 93323 0 0 3 0x14000 0x200 bored viomb 87352 191142 0 0 3 0x14000 0x40000200 acpi0 acpi0 92605 485641 0 0 3 0x14000 0x200 bored softnet0 64175 152323 0 0 3 0x14000 0x200 bored systqmp 13389 182056 0 0 3 0x14000 0x200 bored systq 22615 118608 0 0 3 0x14000 0x40000200 tmoslp softclock 95230 499755 0 0 3 0x14000 0x40000200 idle0 1 44444 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 11031 12105K 12203K 166960K 12461 0 pcb 17 13K 13K 166960K 56 0 rtable 225 7K 8K 166960K 712 0 pf 31 13K 18K 166960K 78 0 ifaddr 39 6K 7K 166960K 97 0 ifgroup 50 2K 2K 166960K 110 0 sysctl 1 1K 9K 166960K 8 0 counters 33 17K 18K 166960K 53 0 ioctlops 0 0K 4K 166960K 74 0 iov 0 0K 20K 166960K 13 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1300 82K 82K 166960K 1601 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 19 1K 1K 166960K 23 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 14 49K 85K 166960K 446 0 proc 60 59K 83K 166960K 833 0 subproc 72 4K 4K 166960K 181 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 7 0 in_multi 88 5K 6K 166960K 223 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 523 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 177 141K 149K 166960K 5083 0 UVM aobj 8 2K 2K 166960K 8 0 pinsyscall 35 70K 90K 166960K 1834 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 11 0K 2K 166960K 67 0 temp 38 9114K 9178K 166960K 8914 0 kqueue 14 20K 30K 166960K 57 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 69 0 66 1 0 1 1 0 8 0 rtentry 136 235 0 136 4 0 4 4 0 8 0 unpcb 144 136 0 119 1 0 1 1 0 8 0 syncache 336 8 0 8 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 63 0 55 2 0 2 2 0 8 1 arp 96 40 0 24 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 328 0 317 10 0 10 10 0 8 8 ip6q 80 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 59 0 38 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 20 0 12 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 0 1 1 0 8 1 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pftag 88 1 0 1 1 0 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1360 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 954 0 543 32 0 32 32 0 8 1 art_table 40 955 0 543 6 0 6 6 0 8 0 art_node 32 234 0 144 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 20 0 3 1 0 1 1 0 8 0 shmpl 120 5 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1881 0 393 94 0 94 94 0 8 0 ffsino 256 1881 0 393 94 0 94 94 0 8 0 nchpl 144 2264 0 528 65 0 65 65 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 2132 0 0 119 0 119 119 0 8 0 namei 1024 8927 0 8927 3 0 3 3 0 8 3 kstatmem 264 59 0 36 2 0 2 2 0 8 0 scxspl 216 7352 0 7351 3 0 3 3 1 8 2 plimitpl 152 67 0 51 1 0 1 1 0 8 0 sigapl 424 711 0 672 6 0 6 6 0 8 1 knotepl 120 6357 0 6309 10 0 10 10 0 8 7 kqueuepl 184 83 0 73 1 0 1 1 0 8 0 pipepl 304 169 0 142 3 0 3 3 0 8 0 fdescpl 448 697 0 671 4 0 4 4 0 8 0 filepl 120 2794 0 2588 10 0 10 10 0 8 2 lockfpl 104 55 0 53 1 0 1 1 0 8 0 lockfspl 48 26 0 24 1 0 1 1 0 8 0 sessionpl 144 43 0 35 1 0 1 1 0 8 0 pgrppl 48 65 0 49 1 0 1 1 0 8 0 ucredpl 104 251 0 240 1 0 1 1 0 8 0 zombiepl 144 672 0 672 1 0 1 1 0 8 1 processpl 1160 711 0 672 4 0 4 4 0 8 0 procpl 664 943 0 898 5 0 5 5 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 541 0 510 10 0 10 10 0 8 7 mcl64k 65536 13 0 13 1 0 1 1 0 8 1 mcl16k 16384 5 0 5 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 2763 0 2706 15 0 15 15 0 8 7 mcl2k 2048 455 0 453 4 0 4 4 0 8 3 mextrefs 64 183 0 183 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 7048 0 6844 17 0 17 17 0 8 1 bufpl 272 2578 0 87 167 0 167 167 0 8 0 anonpl 24 115543 0 112761 32 0 32 32 0 187 9 amapchunkpl 152 14500 0 14172 23 0 23 23 0 158 5 amappl16 200 1691 0 1672 5 0 5 5 0 8 3 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 533 0 532 1 0 1 1 0 8 0 amappl13 176 133 0 123 1 0 1 1 0 8 0 amappl12 168 976 0 952 2 0 2 2 0 8 0 amappl11 160 10 0 10 1 0 1 1 0 8 1 amappl10 152 56 0 48 1 0 1 1 0 8 0 amappl9 144 287 0 287 1 0 1 1 0 8 1 amappl8 136 163 0 162 1 0 1 1 0 8 0 amappl7 128 163 0 152 1 0 1 1 0 8 0 amappl6 120 216 0 215 1 0 1 1 0 8 0 amappl5 112 173 0 166 1 0 1 1 0 8 0 amappl4 104 301 0 285 1 0 1 1 0 8 0 amappl3 96 2845 0 2764 4 0 4 4 0 8 1 amappl2 88 498 0 446 2 0 2 2 0 8 0 amappl1 80 12228 0 11692 13 0 13 13 0 8 1 amappl 88 4200 0 4084 4 0 4 4 0 92 0 uvmvnodes 80 101 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 8 0 8 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 697 0 671 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 697 0 671 1 0 1 1 0 8 0 vmmpekpl 168 6993 0 6945 3 0 3 3 0 8 0 vmmpepl 168 53358 0 51777 81 0 81 81 0 357 7 vmsppl 368 696 0 671 4 0 4 4 0 8 1 rwobjpl 40 17951 0 17063 10 0 10 10 0 8 0 pdppl 4096 1400 0 1342 88 24 64 76 0 8 6 pvpl 32 302308 0 294993 89 0 89 89 0 265 15 pmappl 216 696 0 671 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 536 0 24 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace malloc(10,7f,1) at malloc+0x855 sys/kern/kern_malloc.c:293 dofilereadv(ffff80002a74d4d0,25,ffff80002a77b718,0,ffff80002a77b7c0) at dofilereadv+0x1f3 sys/kern/sys_generic.c:-1 sys_read(ffff80002a74d4d0,ffff80002a77b870,ffff80002a77b7c0) at sys_read+0xa2 sys/kern/sys_generic.c:172 syscall(ffff80002a77b870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a77b870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7dfeb79dbd60, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace malloc(10,7f,1) at malloc+0x855 sys/kern/kern_malloc.c:293 dofilereadv(ffff80002a74d4d0,25,ffff80002a77b718,0,ffff80002a77b7c0) at dofilereadv+0x1f3 sys/kern/sys_generic.c:-1 sys_read(ffff80002a74d4d0,ffff80002a77b870,ffff80002a77b7c0) at sys_read+0xa2 sys/kern/sys_generic.c:172 syscall(ffff80002a77b870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a77b870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7dfeb79dbd60, count: -5