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,62,2) at malloc+0x855 sys/kern/kern_malloc.c:294 amap_alloc1(20,2,0) at amap_alloc1+0x291 sys/uvm/uvm_amap.c:356 amap_alloc(20000,2,0) at amap_alloc+0xad sys/uvm/uvm_amap.c:-1 amap_copy(fffff9006d18c460,fffff900705c3008,2,0,55321e3f000,55321e3f001) at amap_copy+0x6a8 sys/uvm/uvm_amap.c:570 uvm_fault_check(ffff80002a7a7240,ffff80002a7a7278,ffff80002a7a72b0,0) at uvm_fault_check+0x457 sys/uvm/uvm_fault.c:747 uvm_fault(fffff9006d18c460,55321e3f000,0,2) at uvm_fault+0xe6 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80002a7a73e0,55321e3f918) at upageflttrap+0xa0 sys/arch/amd64/amd64/trap.c:194 usertrap(ffff80002a7a73e0) at usertrap+0x413 sys/arch/amd64/amd64/trap.c:648 recall_trap() at recall_trap+0x8 end trace frame: 0x0, count: -9 ddb> show registers rdi 0x5eb456503065f6f9 rsi 0xffffffff rbp 0xffff80002a7a6ee0 rbx 0x5eb45650cf9a0906 rdx 0 rcx 0x4 rax 0xffff80002a786a80 r8 0x55321e3f000 r9 0x55321e3f001 r10 0 r11 0x90acaf5d5b41b859 r12 0xffffffff r13 0xffffffff839e4b80 kmemstats+0x1880 r14 0xa30c333 __kernel_phys_end+0x670c333 r15 0x5eb456503065f6f9 rip 0xffffffff813eb565 malloc+0x855 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a7a6e20 ss 0 malloc+0x855: movq 0x8(%rbx),%r14 ddb> show proc PROC (syz-executor) tid=446748 pid=54335 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=16, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a786550,0xffffffff83a31388 process=0xffff80003b4cdb48 user=0xffff80002a7a2000, vmspace=0xfffff9006d18c460 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 54335 93413 91246 0 2 0 0 syz-executor 54335 204983 91246 0 3 0 0x4000080 msgwait syz-executor *54335 446748 91246 0 7 0 0x4000000 syz-executor 89219 75567 94703 0 2 0 0 syz-executor 89219 243005 94703 0 3 0 0x4000080 fsleep syz-executor 88603 301729 7610 0 3 0 0x80 nanoslp syz-executor 88603 253528 7610 0 3 0 0x4000080 kqsel syz-executor 88603 497201 7610 0 3 0 0x4000080 fsleep syz-executor 88603 397866 7610 0 3 0 0x4000080 fsleep syz-executor 7071 503632 88557 0 3 0 0x80 nanoslp syz-executor 7071 111694 88557 0 3 0 0x4000080 msgwait syz-executor 7071 156540 88557 0 3 0 0x4000080 msgwait syz-executor 7071 158847 88557 0 3 0 0x4000080 fsleep syz-executor 7610 3497 1927 0 3 0x2 0x80 nanoslp syz-executor 12029 479182 1 0 3 0x2 0x80 nanoslp getty 88557 264165 1927 0 3 0x2 0x80 nanoslp syz-executor 45690 215470 0 0 3 0x14000 0x280 nfsidl nfsio 54608 233464 0 0 3 0x14000 0x280 nfsidl nfsio 44434 393525 0 0 3 0x14000 0x280 nfsidl nfsio 82142 206359 0 0 3 0x14000 0x280 nfsidl nfsio 8047 161012 0 0 3 0x14000 0x280 nfsidl nfsio 81775 481292 0 0 3 0x14000 0x280 nfsidl nfsio 3421 82222 0 0 3 0x14000 0x280 nfsidl nfsio 74763 382466 0 0 3 0x14000 0x280 nfsidl nfsio 5584 73193 0 0 3 0x14000 0x280 nfsidl nfsio 72453 472135 0 0 3 0x14000 0x280 nfsidl nfsio 22519 120954 0 0 3 0x14000 0x280 nfsidl nfsio 55644 153498 0 0 3 0x14000 0x280 nfsidl nfsio 940 448988 0 0 3 0x14000 0x280 nfsidl nfsio 8070 216216 0 0 3 0x14000 0x280 nfsidl nfsio 21705 12574 0 0 3 0x14000 0x280 nfsidl nfsio 52108 490203 0 0 3 0x14000 0x280 nfsidl nfsio 32356 174587 0 0 3 0x14000 0x280 nfsidl nfsio 32476 284949 0 0 3 0x14000 0x280 nfsidl nfsio 78713 292469 0 0 3 0x14000 0x280 nfsidl nfsio 3723 192583 0 0 3 0x14000 0x280 nfsidl nfsio 81706 275881 1927 0 3 0x2 0x80 piperd syz-executor 10878 57453 1927 0 3 0x2 0x80 piperd syz-executor 91422 243236 1927 0 3 0x2 0x80 piperd syz-executor 91246 213902 1927 0 3 0x2 0x80 nanoslp syz-executor 94703 135274 1927 0 3 0x2 0x80 nanoslp syz-executor 1927 131991 1 0 3 0x2 0x80 nanoslp syz-executor 25823 175800 0 0 3 0x14000 0x200 bored smr 10067 211592 0 0 2 0x14000 0x200 zerothread 14377 129081 0 0 3 0x14000 0x200 aiodoned aiodoned 5032 53248 0 0 3 0x14000 0x200 syncer update 2774 242464 0 0 3 0x14000 0x200 cleaner cleaner 83018 382614 0 0 3 0x14000 0x200 reaper reaper 9506 462851 0 0 3 0x14000 0x200 pgdaemon pagedaemon 75906 399502 0 0 3 0x14000 0x200 bored viomb 76829 123705 0 0 3 0x14000 0x40000200 acpi0 acpi0 15413 114447 0 0 3 0x14000 0x200 bored softnet0 9224 236700 0 0 3 0x14000 0x200 bored systqmp 84839 422216 0 0 3 0x14000 0x200 bored systq 35275 382854 0 0 3 0x14000 0x40000200 tmoslp softclock 34710 166628 0 0 3 0x14000 0x40000200 idle0 1 254066 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 11022 12160K 12249K 166960K 12241 0 pcb 19 12K 12K 166960K 50 0 rtable 222 6K 7K 166960K 683 0 pf 28 12K 652K 166960K 56 0 ifaddr 38 6K 7K 166960K 86 0 ifgroup 46 2K 2K 166960K 90 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 17K 166960K 43 0 ioctlops 0 0K 4K 166960K 53 0 iov 0 0K 12K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1300 82K 82K 166960K 1579 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 8 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 12 45K 97K 166960K 402 0 sigio 0 0K 0K 166960K 3 0 proc 20 25K 124K 166960K 789 0 subproc 63 3K 5K 166960K 216 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 8 0 in_multi 88 5K 6K 166960K 209 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 9 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 510 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 106 73K 145K 166960K 4636 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 15 30K 96K 166960K 1776 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 10 0 NDP 10 0K 2K 166960K 57 0 temp 37 9115K 9135K 166960K 5705 0 kqueue 3 6K 24K 166960K 47 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 58 0 58 1 0 1 1 0 8 1 rtentry 136 227 0 128 4 0 4 4 0 8 0 unpcb 144 68 0 67 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 44 0 42 1 0 1 1 0 8 0 arp 96 40 0 24 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 297 0 258 7 0 7 7 0 8 3 nd6 112 54 0 33 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 24 0 17 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 903 0 487 32 0 32 32 0 8 6 art_table 40 904 0 487 6 0 6 6 0 8 0 art_node 32 227 0 137 1 0 1 1 0 8 0 sysvmsgpl 40 68 0 66 1 0 1 1 0 8 0 semapl 72 8 0 2 1 0 1 1 0 8 0 shmpl 120 3 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1761 0 279 93 0 93 93 0 8 0 ffsino 256 1761 0 279 93 0 93 93 0 8 0 nchpl 144 2079 0 348 65 0 65 65 0 8 0 vnodes 216 2029 0 0 113 0 113 113 0 8 0 namei 1024 8366 0 8366 2 0 2 2 0 8 2 kstatmem 264 43 0 22 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6764 0 6764 3 0 3 3 1 8 3 plimitpl 152 121 0 112 1 0 1 1 0 8 0 sigapl 424 689 0 641 8 0 8 8 0 8 0 knotepl 120 5880 0 5859 9 0 9 9 0 8 7 kqueuepl 184 59 0 53 1 0 1 1 0 8 0 pipepl 304 176 0 149 3 0 3 3 0 8 0 fdescpl 448 656 0 641 5 0 5 5 0 8 2 filepl 120 2641 0 2460 10 0 10 10 0 8 3 lockfpl 104 33 0 32 1 0 1 1 0 8 0 lockfspl 48 17 0 16 1 0 1 1 0 8 0 sessionpl 144 106 0 104 1 0 1 1 0 8 0 pgrppl 48 133 0 124 1 0 1 1 0 8 0 ucredpl 104 175 0 172 1 0 1 1 0 8 0 zombiepl 144 641 0 641 1 0 1 1 0 8 1 processpl 1160 689 0 641 5 0 5 5 0 8 0 procpl 664 860 0 803 7 0 7 7 0 8 1 sockpl 552 429 0 389 7 0 7 7 0 8 3 mcl64k 65536 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2614 0 2554 14 0 14 14 0 8 5 mcl2k 2048 371 0 369 1 0 1 1 0 8 0 mextrefs 64 89 0 88 1 0 1 1 0 8 0 mtagpl 96 9 0 9 1 0 1 1 0 8 1 mbufpl 256 6142 0 5976 14 0 14 14 0 8 1 bufpl 272 2371 0 103 152 0 152 152 0 8 0 anonpl 24 101426 0 100170 21 0 21 21 0 187 3 amapchunkpl 152 12741 0 12469 21 0 21 21 0 158 8 amappl16 200 1445 0 1435 4 0 4 4 0 8 3 amappl15 192 16 0 16 1 0 1 1 0 8 1 amappl14 184 532 0 532 1 0 1 1 0 8 1 amappl13 176 140 0 139 1 0 1 1 0 8 0 amappl12 168 986 0 972 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 59 0 59 1 0 1 1 0 8 1 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 135 0 135 1 0 1 1 0 8 1 amappl7 128 168 0 166 1 0 1 1 0 8 0 amappl6 120 251 0 251 1 0 1 1 0 8 1 amappl5 112 163 0 162 1 0 1 1 0 8 0 amappl4 104 313 0 311 1 0 1 1 0 8 0 amappl3 96 2366 0 2323 3 0 3 3 0 8 0 amappl2 88 731 0 712 2 0 2 2 0 8 0 amappl1 80 11969 0 11869 13 0 13 13 0 8 8 amappl 88 3748 0 3655 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 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 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 656 0 641 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 656 0 641 1 0 1 1 0 8 0 vmmpekpl 168 7229 0 7183 3 0 3 3 0 8 0 vmmpepl 168 50985 0 50346 79 0 79 79 0 357 48 vmsppl 368 655 0 641 4 0 4 4 0 8 1 rwobjpl 40 17154 0 16797 11 0 11 11 0 8 0 pdppl 4096 1318 0 1282 100 50 50 82 0 8 14 pvpl 32 276306 0 273129 78 0 78 78 0 265 38 pmappl 216 655 0 641 3 0 3 3 0 8 1 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 522 0 50 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace malloc(10,62,2) at malloc+0x855 sys/kern/kern_malloc.c:294 amap_alloc1(20,2,0) at amap_alloc1+0x291 sys/uvm/uvm_amap.c:356 amap_alloc(20000,2,0) at amap_alloc+0xad sys/uvm/uvm_amap.c:-1 amap_copy(fffff9006d18c460,fffff900705c3008,2,0,55321e3f000,55321e3f001) at amap_copy+0x6a8 sys/uvm/uvm_amap.c:570 uvm_fault_check(ffff80002a7a7240,ffff80002a7a7278,ffff80002a7a72b0,0) at uvm_fault_check+0x457 sys/uvm/uvm_fault.c:747 uvm_fault(fffff9006d18c460,55321e3f000,0,2) at uvm_fault+0xe6 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80002a7a73e0,55321e3f918) at upageflttrap+0xa0 sys/arch/amd64/amd64/trap.c:194 usertrap(ffff80002a7a73e0) at usertrap+0x413 sys/arch/amd64/amd64/trap.c:648 recall_trap() at recall_trap+0x8 end trace frame: 0x0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace malloc(10,62,2) at malloc+0x855 sys/kern/kern_malloc.c:294 amap_alloc1(20,2,0) at amap_alloc1+0x291 sys/uvm/uvm_amap.c:356 amap_alloc(20000,2,0) at amap_alloc+0xad sys/uvm/uvm_amap.c:-1 amap_copy(fffff9006d18c460,fffff900705c3008,2,0,55321e3f000,55321e3f001) at amap_copy+0x6a8 sys/uvm/uvm_amap.c:570 uvm_fault_check(ffff80002a7a7240,ffff80002a7a7278,ffff80002a7a72b0,0) at uvm_fault_check+0x457 sys/uvm/uvm_fault.c:747 uvm_fault(fffff9006d18c460,55321e3f000,0,2) at uvm_fault+0xe6 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80002a7a73e0,55321e3f918) at upageflttrap+0xa0 sys/arch/amd64/amd64/trap.c:194 usertrap(ffff80002a7a73e0) at usertrap+0x413 sys/arch/amd64/amd64/trap.c:648 recall_trap() at recall_trap+0x8 end trace frame: 0x0, count: -9 ddb>