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 dofilewritev(ffff80002a74c010,29,ffff80002a77ae58,0,ffff80002a77af00) at dofilewritev+0x24f sys/kern/sys_generic.c:-1 sys_write(ffff80002a74c010,ffff80002a77afb0,ffff80002a77af00) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a77afb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a77afb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79800e5f2b80, count: -5 ddb> show registers rdi 0xb18b983ad0109d93 rsi 0 rbp 0xffff80002a77ad90 rbx 0xb18b983ad0109d93 rdx 0 rcx 0x4 rax 0xffff80002a74c010 r8 0xffff80002a77af00 r9 0x3 r10 0x4aacad94ce0349b0 r11 0x4b9cf773884e183f r12 0 r13 0xffffffff83aa13f0 kmemstats+0x1fc0 r14 0xa30c333 __kernel_phys_end+0x670c333 r15 0xb18b983ad0109d93 rip 0xffffffff821fc955 malloc+0x855 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002a77acd0 ss 0x10 malloc+0x855: movq 0x8(%rbx),%r14 ddb> show proc PROC (syz-executor) tid=111682 pid=5246 tcnt=1 stat=onproc flags process=2 proc=0 runpri=75, usrpri=75, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7274c8,0xffff80002a74d778 process=0xffff80002a734008 user=0xffff80002a776000, vmspace=0xfffffa806fcbf738 estcpu=25, cpticks=8, pctcpu=0.3, user=0, sys=8, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 60034 519521 53696 0 2 0 0 syz-executor 60034 412563 53696 0 3 0 0x4000080 sbwait syz-executor 73434 481786 42234 0 2 0 0 syz-executor 73434 36891 42234 0 3 0 0x4000080 fsleep syz-executor 33796 238226 18775 0 3 0 0x80 nanoslp syz-executor 33796 441625 18775 0 3 0 0x4000080 kqread syz-executor 33796 202936 18775 0 3 0 0x4000080 fsleep syz-executor 92251 130983 78393 0 2 0x2 0 ifconfig 78393 503134 25951 0 3 0x100002 0x88 sigsusp sh 94624 100651 78258 0 2 0 0 syz-executor 94624 242307 78258 0 3 0 0x4000080 fsleep syz-executor 42537 200051 85019 0 3 0 0x80 nanoslp syz-executor 42537 246729 85019 0 2 0 0x4000000 syz-executor 42537 125323 85019 0 3 0 0x4000080 fsleep syz-executor 42537 452620 85019 0 3 0 0x4000080 fsleep syz-executor 25951 144820 5246 0 3 0x2 0x80 wait syz-executor 66017 500747 1 0 3 0 0x80 nanoslp init 92631 519481 5246 0 3 0x2 0 biowait syz-executor 18775 302603 5246 0 3 0x2 0x80 nanoslp syz-executor 67156 81777 5246 0 3 0x2 0 biowait syz-executor 53696 520564 5246 0 3 0x2 0x80 nanoslp syz-executor 42234 269497 5246 0 3 0x2 0x80 nanoslp syz-executor 78258 270901 5246 0 3 0x2 0x80 nanoslp syz-executor 85019 463075 5246 0 3 0x2 0x80 nanoslp syz-executor * 5246 111682 1 0 7 0x2 0 syz-executor 79592 384739 0 0 3 0x14000 0x200 bored smr 38252 412364 0 0 2 0x14000 0x200 zerothread 42412 286400 0 0 3 0x14000 0x200 aiodoned aiodoned 35680 44353 0 0 3 0x14000 0x200 syncer update 75953 32425 0 0 3 0x14000 0x200 cleaner cleaner 23899 97495 0 0 3 0x14000 0x200 reaper reaper 93158 385482 0 0 3 0x14000 0x200 pgdaemon pagedaemon 61296 76308 0 0 3 0x14000 0x200 bored viomb 54752 235344 0 0 3 0x14000 0x40000200 acpi0 acpi0 82832 165449 0 0 3 0x14000 0x200 bored softnet0 37836 22875 0 0 3 0x14000 0x200 bored systqmp 85283 367341 0 0 3 0x14000 0x200 bored systq 95611 257623 0 0 3 0x14000 0x40000200 tmoslp softclock 75769 510379 0 0 3 0x14000 0x40000200 idle0 1 124246 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11033 12132K 12210K 166960K 12199 0 pcb 19 12K 12K 166960K 33 0 rtable 221 6K 7K 166960K 438 0 pf 30 12K 15K 166960K 43 0 ifaddr 39 6K 7K 166960K 57 0 ifgroup 50 2K 2K 166960K 69 0 sysctl 3 1K 9K 166960K 8 0 counters 33 17K 17K 166960K 38 0 ioctlops 0 0K 4K 166960K 44 0 iov 0 0K 8K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 2 0K 0K 166960K 6 0 vnodes 1307 82K 83K 166960K 1455 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 7 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 61K 89K 166960K 253 0 sigio 0 0K 0K 166960K 4 0 proc 12 17K 116K 166960K 579 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 6 0 in_multi 88 5K 6K 166960K 121 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 413 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 115 78K 160K 166960K 3723 0 UVM aobj 5 2K 2K 166960K 6 0 pinsyscall 18 36K 92K 166960K 1426 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 1K 166960K 36 0 temp 39 9115K 9179K 166960K 7680 0 kqueue 2 4K 24K 166960K 37 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 52 0 52 1 0 1 1 0 8 1 rtentry 136 136 0 37 4 0 4 4 0 8 0 unpcb 144 68 0 68 1 0 1 1 0 8 1 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 19 0 17 1 0 1 1 0 8 0 arp 96 23 0 7 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 115 0 109 2 0 2 2 0 8 1 nd6 112 30 0 9 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pfrule 1360 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 544 0 134 29 0 29 29 0 8 1 art_table 40 545 0 134 5 0 5 5 0 8 0 art_node 32 136 0 46 1 0 1 1 0 8 0 semapl 72 5 0 0 1 0 1 1 0 8 0 shmpl 120 3 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1716 0 243 93 0 93 93 0 8 0 ffsino 256 1716 0 243 93 0 93 93 0 8 0 nchpl 144 2026 0 321 64 0 64 64 0 8 0 vnodes 216 1864 0 0 104 0 104 104 0 8 0 namei 1024 7040 0 7039 3 0 3 3 0 8 2 kstatmem 264 33 0 10 2 0 2 2 0 8 0 scxspl 216 6915 0 6912 2 0 2 2 1 8 1 plimitpl 152 40 0 29 1 0 1 1 0 8 0 sigapl 424 539 0 507 6 0 6 6 0 8 1 knotepl 120 5296 0 5272 9 0 9 9 0 8 7 kqueuepl 184 46 0 43 1 0 1 1 0 8 0 pipepl 304 140 0 112 3 0 3 3 0 8 0 fdescpl 448 526 0 507 5 0 5 5 0 8 1 filepl 120 1967 0 1799 7 0 7 7 0 8 0 lockfpl 104 39 0 38 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 144 28 0 26 1 0 1 1 0 8 0 pgrppl 48 40 0 30 1 0 1 1 0 8 0 ucredpl 104 165 0 161 1 0 1 1 0 8 0 zombiepl 144 507 0 507 1 0 1 1 0 8 1 processpl 1160 539 0 507 4 0 4 4 0 8 0 procpl 664 651 0 611 5 0 5 5 0 8 0 sockpl 552 240 0 233 3 0 3 3 0 8 2 mcl64k 65536 3 0 3 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 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 2670 0 2615 15 0 15 15 0 8 7 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 259 0 259 3 0 3 3 0 8 3 mextrefs 64 94 0 94 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 5366 0 5219 17 0 17 17 0 8 3 bufpl 272 2513 0 88 162 0 162 162 0 8 0 anonpl 24 105127 0 103746 31 0 31 31 0 187 14 amapchunkpl 152 10885 0 10590 21 0 21 21 0 158 7 amappl16 200 1615 0 1604 5 0 5 5 0 8 4 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 432 0 431 1 0 1 1 0 8 0 amappl13 176 223 0 223 1 0 1 1 0 8 1 amappl12 168 775 0 759 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 0 1 1 0 8 1 amappl10 152 63 0 63 1 0 1 1 0 8 1 amappl9 144 279 0 279 1 0 1 1 0 8 1 amappl8 136 118 0 118 1 0 1 1 0 8 1 amappl7 128 153 0 151 1 0 1 1 0 8 0 amappl6 120 152 0 151 1 0 1 1 0 8 0 amappl5 112 141 0 140 1 0 1 1 0 8 0 amappl4 104 274 0 273 1 0 1 1 0 8 0 amappl3 96 2035 0 1971 3 0 3 3 0 8 0 amappl2 88 447 0 444 2 0 2 2 0 8 0 amappl1 80 10771 0 10680 13 0 13 13 0 8 7 amappl 88 2993 0 2889 4 0 4 4 0 92 0 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 5 0 1 1 0 1 1 0 8 0 uaddrrnd 24 526 0 507 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 526 0 507 1 0 1 1 0 8 0 vmmpekpl 168 5816 0 5772 3 0 3 3 0 8 0 vmmpepl 168 42970 0 42262 77 0 77 77 0 357 41 vmsppl 368 525 0 507 4 0 4 4 0 8 1 rwobjpl 40 15221 0 14869 11 0 11 11 0 8 1 pdppl 4096 1058 0 1014 96 44 52 78 0 8 8 pvpl 32 251885 0 248215 86 0 86 86 0 265 44 pmappl 216 525 0 507 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 533 0 44 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:294 dofilewritev(ffff80002a74c010,29,ffff80002a77ae58,0,ffff80002a77af00) at dofilewritev+0x24f sys/kern/sys_generic.c:-1 sys_write(ffff80002a74c010,ffff80002a77afb0,ffff80002a77af00) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a77afb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a77afb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79800e5f2b80, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace malloc(10,7f,1) at malloc+0x855 sys/kern/kern_malloc.c:294 dofilewritev(ffff80002a74c010,29,ffff80002a77ae58,0,ffff80002a77af00) at dofilewritev+0x24f sys/kern/sys_generic.c:-1 sys_write(ffff80002a74c010,ffff80002a77afb0,ffff80002a77af00) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a77afb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a77afb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79800e5f2b80, count: -5 ddb>