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(6,29,1) at malloc+0x855 sys/kern/kern_malloc.c:294 unveil_add_name_unlocked(ffff80000163f000,ffff80002a749402,12) at unveil_add_name_unlocked+0x8c unvname_new sys/kern/kern_unveil.c:78 [inline] unveil_add_name_unlocked(ffff80000163f000,ffff80002a749402,12) at unveil_add_name_unlocked+0x8c sys/kern/kern_unveil.c:118 unveil_add(ffff80002a76a548,ffff80003c93aec8,ffff80003c93af83) at unveil_add+0x43f unveil_add_name sys/kern/kern_unveil.c:135 [inline] unveil_add(ffff80002a76a548,ffff80003c93aec8,ffff80003c93af83) at unveil_add+0x43f sys/kern/kern_unveil.c:495 sys_unveil(ffff80002a76a548,ffff80003c93b0a0,ffff80003c93aff0) at sys_unveil+0x61c sys/kern/vfs_syscalls.c:1034 syscall(ffff80003c93b0a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c93b0a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xab6cfd10110, count: -6 ddb> show registers rdi 0xffff80002d4ae000 rsi 0x774 rbp 0xffff80003c93ad80 rbx 0xc0286dfb35321b7e rdx 0xffff80002d4ae000 rcx 0x773 rax 0xffffffff830ff5e4 malloc+0x544 r8 0x101010101010101 r9 0x8080808080808080 r10 0x26f3ca0d4377ef8e r11 0x4b67af791cbd25c2 r12 0 r13 0xffffffff83ade6a0 kmemstats+0xa40 r14 0xa30c333 __kernel_phys_end+0x670c333 r15 0xc0286dfb35321b7e rip 0xffffffff830ff8f5 malloc+0x855 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80003c93acc0 ss 0x10 malloc+0x855: movq 0x8(%rbx),%r14 ddb> show proc PROC (syz-executor) tid=266418 pid=58666 tcnt=2 stat=onproc flags process=2000 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a76a548 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a76a018,0xffff80002a76ba18 process=0xffff800035cdad18 user=0xffff80003c936000, vmspace=0xfffff4007c600d08 estcpu=0, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 57475 112317 68521 0 2 0 0 syz-executor 57475 348366 68521 0 3 0 0x4000080 fsleep syz-executor 58666 145527 49806 0 4 0x2000 0x80000 syz-executor *58666 266418 49806 0 7 0x2000 0x4000000 syz-executor 91010 87958 84299 0 2 0 0 syz-executor 91010 34221 84299 0 3 0 0x4000080 fsleep syz-executor 91010 89746 84299 0 3 0 0x4000080 fsleep syz-executor 12643 300077 62292 -1 2 0x10 0 syz-executor 12643 357675 62292 -1 3 0x10 0x4000080 fsleep syz-executor 12643 57637 62292 -1 3 0x10 0x4000080 fsleep syz-executor 95217 254900 32783 0 2 0 0 syz-executor 95217 352212 32783 0 3 0 0x4000080 fsleep syz-executor 95217 267981 32783 0 3 0 0x4000080 fsleep syz-executor 95217 44525 32783 0 3 0 0x4000080 fsleep syz-executor 50760 392564 82722 0 3 0 0x80 nanoslp syz-executor 50760 136584 82722 0 2 0 0x4000000 syz-executor 50760 381957 82722 0 3 0 0x4000080 fsleep syz-executor 50760 402029 82722 0 3 0 0x4000080 fsleep syz-executor 2350 43999 9989 0 2 0 0 syz-executor 2350 392209 9989 0 3 0 0x4000080 nanoslp syz-executor 2350 171961 9989 0 3 0 0x4000080 fsleep syz-executor 84299 495842 33520 0 3 0x2 0x80 nanoslp syz-executor 32783 509096 33520 0 3 0x2 0x80 nanoslp syz-executor 68521 312549 33520 0 3 0x2 0x80 nanoslp syz-executor 5742 78268 33520 0 3 0x2 0 biowait syz-executor 62292 304186 33520 0 3 0x2 0x80 nanoslp syz-executor 49806 336896 33520 0 3 0x2 0x80 nanoslp syz-executor 82722 59830 33520 0 3 0x2 0x80 nanoslp syz-executor 9989 513220 33520 0 3 0x2 0x80 nanoslp syz-executor 33520 452950 52985 0 3 0x2 0x80 kqread syz-executor 52985 302474 99863 0 3 0x100002 0x88 sigsusp ksh 99863 46638 98706 0 3 0x10 0x88 kqread sshd-session 98706 353157 98170 0 3 0x12 0x80 kqread sshd-session 21 73603 1 0 3 0x100003 0x80 ttyin getty 98170 155050 1 0 3 0 0x88 kqread sshd 37266 194068 19399 73 3 0x1100010 0x80 kqread syslogd 19399 445684 1 0 3 0x100002 0x80 sbwait syslogd 11248 371257 1 0 3 0x100000 0x80 kqread resolvd 50612 433674 50685 77 3 0x100012 0x80 kqread dhcpleased 37854 306417 50685 77 3 0x100012 0x80 kqread dhcpleased 50685 276963 1 0 3 0 0x80 kqread dhcpleased 12040 442917 0 0 3 0x14000 0x200 bored smr 25347 259846 0 0 2 0x14000 0x200 zerothread 30566 285568 0 0 3 0x14000 0x200 aiodoned aiodoned 74662 164242 0 0 3 0x14000 0x200 syncer update 54651 100640 0 0 3 0x14000 0x200 cleaner cleaner 20968 492083 0 0 3 0x14000 0x200 reaper reaper 29664 192279 0 0 3 0x14000 0x200 pgdaemon pagedaemon 83508 416456 0 0 3 0x14000 0x200 bored viomb 33029 498984 0 0 3 0x14000 0x40000200 acpi0 acpi0 3913 159814 0 0 3 0x14000 0x200 bored softnet0 99881 25001 0 0 3 0x14000 0x200 bored systqmp 54780 455883 0 0 3 0x14000 0x200 bored systq 27183 182999 0 0 3 0x14000 0x40000200 tmoslp softclock 16638 238546 0 0 3 0x14000 0x40000200 idle0 1 102663 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 11038 12169K 12185K 166960K 12147 0 pcb 17 12K 12K 166960K 28 0 rtable 237 6K 6K 166960K 355 0 pf 30 12K 16K 166960K 34 0 ifaddr 42 7K 7K 166960K 45 0 ifgroup 50 2K 2K 166960K 52 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 106 0 iov 0 0K 8K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1295 81K 82K 166960K 1390 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 3 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 89K 166960K 172 0 sigio 0 0K 0K 166960K 1 0 proc 62 67K 91K 166960K 509 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 2 0 in_multi 99 7K 7K 166960K 100 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 2 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 377 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 232 151K 159K 166960K 3337 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 38 76K 92K 166960K 1282 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 11 0K 2K 166960K 28 0 temp 35 9110K 9112K 166960K 3699 0 kqueue 14 22K 26K 166960K 32 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 41 0 37 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 60 0 36 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 22 0 16 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 101 0 89 2 0 2 2 0 8 0 nd6 112 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 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 453 0 0 29 0 29 29 0 8 0 art_table 40 454 0 0 5 0 5 5 0 8 0 art_node 32 111 0 11 1 0 1 1 0 8 0 semapl 72 2 0 1 1 0 1 1 0 8 0 shmpl 112 1 0 1 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1624 0 164 92 0 92 92 0 8 0 ffsino 256 1624 0 164 92 0 92 92 0 8 0 nchpl 144 1865 0 172 63 0 63 63 0 8 0 vnodes 216 1723 0 0 96 0 96 96 0 8 0 namei 1024 5646 0 5644 2 0 2 2 0 8 1 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 6325 0 6324 4 0 4 4 1 8 3 plimitpl 152 64 0 47 1 0 1 1 0 8 0 sigapl 424 470 0 428 6 0 6 6 0 8 1 knotepl 120 3628 0 3578 10 0 10 10 0 8 8 kqueuepl 184 34 0 24 1 0 1 1 0 8 0 pipepl 304 125 0 98 3 0 3 3 0 8 0 fdescpl 448 457 0 428 5 0 5 5 0 8 1 filepl 120 1745 0 1510 9 0 9 9 0 8 1 lockfpl 104 20 0 17 1 0 1 1 0 8 0 lockfspl 48 9 0 6 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 122 0 110 1 0 1 1 0 8 0 zombiepl 144 428 0 428 1 0 1 1 0 8 1 processpl 1152 470 0 428 4 0 4 4 0 8 0 procpl 664 530 0 474 5 0 5 5 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 204 0 164 4 0 4 4 0 8 0 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 2527 0 2477 14 0 14 14 0 8 7 mcl2k 2048 156 0 155 3 0 3 3 0 8 2 mextrefs 64 77 0 76 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4651 0 4503 14 0 14 14 0 8 0 bufpl 272 2270 0 102 145 0 145 145 0 8 0 anonpl 24 89078 0 81798 45 0 45 45 0 187 0 amapchunkpl 152 8957 0 8444 22 0 22 22 0 158 0 amappl16 200 1509 0 1247 14 0 14 14 0 8 0 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 421 0 420 1 0 1 1 0 8 0 amappl13 176 119 0 109 1 0 1 1 0 8 0 amappl12 168 694 0 666 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 0 1 1 0 8 1 amappl10 152 86 0 75 1 0 1 1 0 8 0 amappl9 144 271 0 270 1 0 1 1 0 8 0 amappl8 136 90 0 89 1 0 1 1 0 8 0 amappl7 128 151 0 140 1 0 1 1 0 8 0 amappl6 120 151 0 150 1 0 1 1 0 8 0 amappl5 112 111 0 103 1 0 1 1 0 8 0 amappl4 104 264 0 249 1 0 1 1 0 8 0 amappl3 96 1644 0 1531 3 0 3 3 0 8 0 amappl2 88 522 0 469 2 0 2 2 0 8 0 amappl1 80 10303 0 9748 13 0 13 13 0 8 0 amappl 88 2634 0 2465 4 0 4 4 0 92 0 uvmvnodes 80 95 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 253 0 253 1 0 1 1 0 8 1 dma64 64 71 0 71 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 3 0 1 1 0 1 1 0 8 0 uaddrrnd 24 457 0 428 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 457 0 428 1 0 1 1 0 8 0 vmmpekpl 168 5616 0 5588 2 0 2 2 0 8 0 vmmpepl 168 38443 0 36420 91 0 91 91 0 357 0 vmsppl 368 456 0 428 4 0 4 4 0 8 1 rwobjpl 40 14295 0 13109 13 0 13 13 0 8 0 pdppl 4096 920 0 856 92 24 68 78 0 8 4 pvpl 32 219479 0 205686 114 0 114 114 0 265 1 pmappl 216 456 0 428 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 504 0 24 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace malloc(6,29,1) at malloc+0x855 sys/kern/kern_malloc.c:294 unveil_add_name_unlocked(ffff80000163f000,ffff80002a749402,12) at unveil_add_name_unlocked+0x8c unvname_new sys/kern/kern_unveil.c:78 [inline] unveil_add_name_unlocked(ffff80000163f000,ffff80002a749402,12) at unveil_add_name_unlocked+0x8c sys/kern/kern_unveil.c:118 unveil_add(ffff80002a76a548,ffff80003c93aec8,ffff80003c93af83) at unveil_add+0x43f unveil_add_name sys/kern/kern_unveil.c:135 [inline] unveil_add(ffff80002a76a548,ffff80003c93aec8,ffff80003c93af83) at unveil_add+0x43f sys/kern/kern_unveil.c:495 sys_unveil(ffff80002a76a548,ffff80003c93b0a0,ffff80003c93aff0) at sys_unveil+0x61c sys/kern/vfs_syscalls.c:1034 syscall(ffff80003c93b0a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c93b0a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xab6cfd10110, count: -6 ddb> machine ddbcpu 1 No such command ddb> trace malloc(6,29,1) at malloc+0x855 sys/kern/kern_malloc.c:294 unveil_add_name_unlocked(ffff80000163f000,ffff80002a749402,12) at unveil_add_name_unlocked+0x8c unvname_new sys/kern/kern_unveil.c:78 [inline] unveil_add_name_unlocked(ffff80000163f000,ffff80002a749402,12) at unveil_add_name_unlocked+0x8c sys/kern/kern_unveil.c:118 unveil_add(ffff80002a76a548,ffff80003c93aec8,ffff80003c93af83) at unveil_add+0x43f unveil_add_name sys/kern/kern_unveil.c:135 [inline] unveil_add(ffff80002a76a548,ffff80003c93aec8,ffff80003c93af83) at unveil_add+0x43f sys/kern/kern_unveil.c:495 sys_unveil(ffff80002a76a548,ffff80003c93b0a0,ffff80003c93aff0) at sys_unveil+0x61c sys/kern/vfs_syscalls.c:1034 syscall(ffff80003c93b0a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c93b0a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xab6cfd10110, count: -6