Dkernel: 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,5,a) at malloc+0x855 sys/kern/kern_malloc.c:294 rtrequest(1,ffff80002a7eb408,4,ffff80002a7eb4b0,0) at rtrequest+0x9e8 rt_setgate sys/net/route.c:-1 [inline] rtrequest(1,ffff80002a7eb408,4,ffff80002a7eb4b0,0) at rtrequest+0x9e8 sys/net/route.c:1064 rt_ifa_add(ffff800001622e00,840100,ffff800001622e68,0) at rt_ifa_add+0x22e sys/net/route.c:1284 in_ifinit(ffff8000015dd000,ffff800001622e00,ffff80002a7eb720,1) at in_ifinit+0x4bb in_insert_prefix sys/netinet/in.c:789 [inline] in_ifinit(ffff8000015dd000,ffff800001622e00,ffff80002a7eb720,1) at in_ifinit+0x4bb sys/netinet/in.c:722 in_ioctl_change_ifaddr(8040691a,ffff80002a7eb710,ffff8000015dd000) at in_ioctl_change_ifaddr+0x91c sys/netinet/in.c:523 ifioctl(ffff80000163c6b8,8040691a,ffff80002a7eb710,ffff80002a882028) at ifioctl+0x16c4 pru_control sys/sys/protosw.h:353 [inline] ifioctl(ffff80000163c6b8,8040691a,ffff80002a7eb710,ffff80002a882028) at ifioctl+0x16c4 sys/net/if.c:2554 sys_ioctl(ffff80002a882028,ffff80002a7eb8e0,ffff80002a7eb830) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a7eb8e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7eb8e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7355b0b2fdb0, count: -9 ddb> show registers rdi 0x616808a53540ad41 rsi 0xffffffff rbp 0xffff80002a7eb2d0 rbx 0x616808a5cabf52be rdx 0 rcx 0x4 rax 0xffff80002a882028 r8 0x88 r9 0x8080808080808080 r10 0x3ab28baff0ce9b09 r11 0x4e54cf55f075ea33 r12 0xffffffff r13 0xffffffff83a4cfa0 kmemstats+0x140 r14 0xa30c333 __kernel_phys_end+0x670c333 r15 0x616808a53540ad41 rip 0xffffffff81a06315 malloc+0x855 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a7eb210 ss 0x10 malloc+0x855: movq 0x8(%rbx),%r14 ddb> show proc PROC (ifconfig) tid=262501 pid=15170 tcnt=1 stat=onproc flags process=2 proc=0 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a882fb8,0xffffffff83a8fe00 process=0xffff80003c8f04a8 user=0xffff80002a7e6000, vmspace=0xfffff30073db4e78 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND *15170 262501 92545 0 7 0x2 0 ifconfig 92545 162448 1184 0 3 0x100002 0x88 sigsusp sh 8363 150417 96688 0 3 0x100002 0x88 sigsusp sh 96688 324978 72106 0 3 0x2 0x80 wait syz-executor 1184 57512 72106 0 3 0x2 0x80 wait syz-executor 22719 52548 31554 60929 3 0x10 0x80 nanoslp syz-executor 22719 217477 31554 60929 3 0x10 0x4000080 kqread syz-executor 22719 277255 31554 60929 3 0x10 0x4000080 kqread syz-executor 22719 381825 31554 60929 3 0x10 0x4000080 fsleep syz-executor 22719 510332 31554 60929 3 0x10 0x4000080 fsleep syz-executor 22719 63392 31554 60929 3 0x10 0x4000080 fsleep syz-executor 61112 386048 72106 0 3 0x2 0x80 piperd syz-executor 98016 117421 72106 0 3 0x2 0x80 piperd syz-executor 31554 57031 72106 0 3 0x2 0x80 nanoslp syz-executor 87656 433856 72106 0 3 0x2 0x80 piperd syz-executor 43310 280628 72106 0 3 0x2 0x80 piperd syz-executor 19362 408117 0 0 3 0x14000 0x200 acct acct 24899 88102 0 0 3 0x14000 0x280 nfsidl nfsio 7212 451411 0 0 3 0x14000 0x280 nfsidl nfsio 33008 227808 0 0 3 0x14000 0x280 nfsidl nfsio 77378 355191 0 0 3 0x14000 0x280 nfsidl nfsio 42847 428824 0 0 3 0x14000 0x280 nfsidl nfsio 1694 502744 0 0 3 0x14000 0x280 nfsidl nfsio 6777 283678 0 0 3 0x14000 0x280 nfsidl nfsio 64697 300832 0 0 3 0x14000 0x280 nfsidl nfsio 75222 119847 0 0 3 0x14000 0x280 nfsidl nfsio 93462 272244 0 0 3 0x14000 0x280 nfsidl nfsio 13336 95283 0 0 3 0x14000 0x280 nfsidl nfsio 55088 273432 0 0 3 0x14000 0x280 nfsidl nfsio 58496 397907 0 0 3 0x14000 0x280 nfsidl nfsio 34331 82907 0 0 3 0x14000 0x280 nfsidl nfsio 69578 470451 0 0 3 0x14000 0x280 nfsidl nfsio 91740 80014 0 0 3 0x14000 0x280 nfsidl nfsio 6986 414002 0 0 3 0x14000 0x280 nfsidl nfsio 52263 427362 0 0 3 0x14000 0x280 nfsidl nfsio 454 401425 0 0 3 0x14000 0x280 nfsidl nfsio 52231 407973 0 0 3 0x14000 0x280 nfsidl nfsio 35409 393327 1 0 3 0x100003 0x80 ttyin getty 72106 471752 4152 0 3 0x2 0x80 nanoslp syz-executor 4152 342409 45094 0 3 0x100002 0x88 sigsusp ksh 45094 30754 80025 0 3 0x10 0x88 kqread sshd-session 80025 247685 50347 0 3 0x12 0x80 kqread sshd-session 50347 64816 1 0 3 0 0x88 kqread sshd 7340 489081 94802 73 3 0x1100010 0x80 kqread syslogd 94802 137298 1 0 3 0x100002 0x80 sbwait syslogd 80936 488594 1 0 3 0x100000 0x80 kqread resolvd 13913 265460 5795 77 3 0x100012 0x80 kqread dhcpleased 36247 439372 5795 77 3 0x100012 0x80 kqread dhcpleased 5795 517297 1 0 3 0 0x80 kqread dhcpleased 70837 70688 0 0 3 0x14000 0x200 bored smr 70655 396097 0 0 2 0x14000 0x200 zerothread 83187 380263 0 0 3 0x14000 0x200 aiodoned aiodoned 66113 158765 0 0 3 0x14000 0x200 syncer update 11232 494970 0 0 3 0x14000 0x200 cleaner cleaner 41256 204478 0 0 3 0x14000 0x200 reaper reaper 79980 80278 0 0 3 0x14000 0x200 pgdaemon pagedaemon 65962 76987 0 0 3 0x14000 0x200 bored viomb 67119 487505 0 0 3 0x14000 0x40000200 acpi0 acpi0 58414 311773 0 0 3 0x14000 0x200 bored softnet0 67102 179899 0 0 3 0x14000 0x200 smrbar systqmp 59001 327926 0 0 3 0x14000 0x200 bored systq 70786 121220 0 0 3 0x14000 0x40000200 tmoslp softclock 39300 338651 0 0 3 0x14000 0x40000200 idle0 1 507104 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 11030 12103K 13160K 166960K 12830 0 pcb 17 14K 16K 166960K 174 0 rtable 191 6K 8K 166960K 2002 0 pf 29 12K 16129K 166960K 176 0 ifaddr 34 6K 8K 166960K 267 0 ifgroup 44 1K 2K 166960K 285 0 sysctl 3 1K 9K 166960K 9 0 counters 32 17K 18K 166960K 97 0 ioctlops 0 0K 4K 166960K 232 0 iov 0 0K 12K 166960K 24 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1361 86K 86K 166960K 2229 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 25 1K 1K 166960K 26 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 93K 166960K 1373 0 sigio 0 0K 0K 166960K 6 0 proc 75 75K 83K 166960K 2022 0 subproc 63 3K 4K 166960K 549 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 42 0 in_multi 66 4K 6K 166960K 666 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 38 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 2K 166960K 1121 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 183 143K 160K 166960K 11721 0 UVM aobj 20 2K 4K 166960K 22 0 pinsyscall 35 70K 94K 166960K 3819 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 14 0K 1K 166960K 190 0 temp 37 9115K 9178K 166960K 22594 0 kqueue 14 22K 36K 166960K 110 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 205 0 202 2 0 2 2 0 8 1 rtentry 136 692 0 609 4 0 4 4 0 8 0 unpcb 144 200 0 185 1 0 1 1 0 8 0 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 186 0 180 7 0 7 7 0 8 6 arp 96 127 0 113 1 0 1 1 0 8 0 ipq 40 4 0 3 1 0 1 1 0 8 0 ipqe 40 4 0 3 1 0 1 1 0 8 0 inpcb 328 805 0 792 13 6 7 7 0 8 5 ip6q 80 2 0 1 1 0 1 1 0 8 0 ip6af 40 3 0 2 1 0 1 1 0 8 0 nd6 112 179 0 163 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 61 0 54 1 0 1 1 0 8 0 ppxss 1072 9 0 9 2 1 1 1 0 8 1 pppxif 1416 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 4 0 4 1 1 0 1 0 8 0 pfanchor 1288 2 0 2 1 1 0 1 0 8 0 pftag 88 5 0 2 1 0 1 1 0 8 0 pfqueue 320 2 0 1 1 0 1 1 0 8 0 pfrule 1360 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2788 0 2379 33 1 32 32 0 8 5 art_table 40 2789 0 2379 6 0 6 6 0 8 0 art_node 32 690 0 605 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 2 1 1 1 0 8 1 semapl 72 24 0 1 1 0 1 1 0 8 0 shmpl 120 19 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2527 0 941 100 0 100 100 0 8 0 ffsino 256 2527 0 941 100 0 100 100 0 8 0 nchpl 144 3502 0 1592 71 0 71 71 0 8 0 vnodes 216 3302 0 0 184 0 184 184 0 8 0 namei 1024 19947 0 19947 7 3 4 4 0 8 4 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 145 0 124 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 14898 0 14898 8 7 1 8 1 8 1 plimitpl 152 156 0 140 1 0 1 1 0 8 0 sigapl 424 1586 0 1526 9 1 8 8 0 8 0 knotepl 120 25015 0 24969 18 8 10 10 0 8 8 kqueuepl 184 252 0 241 5 1 4 4 0 8 3 pipepl 304 423 0 396 10 2 8 8 0 8 5 fdescpl 448 1550 0 1524 5 1 4 5 0 8 0 filepl 120 7459 0 7263 15 4 11 11 0 8 0 lockfpl 104 221 0 219 1 0 1 1 0 8 0 lockfspl 48 70 0 68 1 0 1 1 0 8 0 sessionpl 144 97 0 89 1 0 1 1 0 8 0 pgrppl 48 165 0 150 1 0 1 1 0 8 0 ucredpl 104 638 0 626 1 0 1 1 0 8 0 zombiepl 144 1901 0 1900 2 1 1 1 0 8 0 processpl 1160 1586 0 1526 5 0 5 5 0 8 0 procpl 664 2534 0 2469 8 0 8 8 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 1317 0 1286 12 4 8 8 0 8 5 mcl64k 65536 20 0 18 1 0 1 1 0 8 0 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl9k128 9344 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 10 0 10 2 1 1 1 0 8 1 mcl4k 4096 3133 0 3079 16 8 8 16 0 8 0 mcl2k 2048 1450 0 1450 5 1 4 4 0 8 4 mextrefs 64 445 0 445 1 0 1 1 0 8 1 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 14019 0 13892 94 73 21 92 0 8 7 bufpl 272 5230 0 106 342 0 342 342 0 8 0 anonpl 24 187339 0 184469 54 10 44 44 0 187 15 amapchunkpl 152 33374 0 33035 34 8 26 26 0 158 8 amappl16 200 2203 0 2190 15 5 10 14 0 8 7 amappl15 192 88 0 88 1 1 0 1 0 8 0 amappl14 184 1039 0 1036 1 0 1 1 0 8 0 amappl13 176 216 0 206 1 0 1 1 0 8 0 amappl12 168 1995 0 1972 2 0 2 2 0 8 0 amappl11 160 20 0 20 1 1 0 1 0 8 0 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 286 0 286 1 1 0 1 0 8 0 amappl8 136 304 0 301 1 0 1 1 0 8 0 amappl7 128 245 0 234 1 0 1 1 0 8 0 amappl6 120 682 0 677 1 0 1 1 0 8 0 amappl5 112 91 0 84 1 0 1 1 0 8 0 amappl4 104 422 0 405 1 0 1 1 0 8 0 amappl3 96 6302 0 6234 3 0 3 3 0 8 0 amappl2 88 1466 0 1402 2 0 2 2 0 8 0 amappl1 80 18657 0 18122 14 1 13 13 0 8 0 amappl 88 10096 0 9976 5 0 5 5 0 92 0 uvmvnodes 80 106 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 7 0 7 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 21 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1550 0 1524 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1550 0 1524 1 0 1 1 0 8 0 vmmpekpl 168 14112 0 14053 4 0 4 4 0 8 0 vmmpepl 168 106212 0 104717 88 3 85 85 0 357 9 vmsppl 368 1549 0 1524 4 1 3 4 0 8 0 rwobjpl 40 31068 0 30139 13 1 12 12 0 8 1 pdppl 4096 3106 0 3048 152 84 68 80 0 8 10 pvpl 32 581010 0 573304 129 18 111 111 0 265 31 pmappl 216 1549 0 1524 3 0 3 3 0 8 1 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 880 0 178 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace malloc(10,5,a) at malloc+0x855 sys/kern/kern_malloc.c:294 rtrequest(1,ffff80002a7eb408,4,ffff80002a7eb4b0,0) at rtrequest+0x9e8 rt_setgate sys/net/route.c:-1 [inline] rtrequest(1,ffff80002a7eb408,4,ffff80002a7eb4b0,0) at rtrequest+0x9e8 sys/net/route.c:1064 rt_ifa_add(ffff800001622e00,840100,ffff800001622e68,0) at rt_ifa_add+0x22e sys/net/route.c:1284 in_ifinit(ffff8000015dd000,ffff800001622e00,ffff80002a7eb720,1) at in_ifinit+0x4bb in_insert_prefix sys/netinet/in.c:789 [inline] in_ifinit(ffff8000015dd000,ffff800001622e00,ffff80002a7eb720,1) at in_ifinit+0x4bb sys/netinet/in.c:722 in_ioctl_change_ifaddr(8040691a,ffff80002a7eb710,ffff8000015dd000) at in_ioctl_change_ifaddr+0x91c sys/netinet/in.c:523 ifioctl(ffff80000163c6b8,8040691a,ffff80002a7eb710,ffff80002a882028) at ifioctl+0x16c4 pru_control sys/sys/protosw.h:353 [inline] ifioctl(ffff80000163c6b8,8040691a,ffff80002a7eb710,ffff80002a882028) at ifioctl+0x16c4 sys/net/if.c:2554 sys_ioctl(ffff80002a882028,ffff80002a7eb8e0,ffff80002a7eb830) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a7eb8e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7eb8e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7355b0b2fdb0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace malloc(10,5,a) at malloc+0x855 sys/kern/kern_malloc.c:294 rtrequest(1,ffff80002a7eb408,4,ffff80002a7eb4b0,0) at rtrequest+0x9e8 rt_setgate sys/net/route.c:-1 [inline] rtrequest(1,ffff80002a7eb408,4,ffff80002a7eb4b0,0) at rtrequest+0x9e8 sys/net/route.c:1064 rt_ifa_add(ffff800001622e00,840100,ffff800001622e68,0) at rt_ifa_add+0x22e sys/net/route.c:1284 in_ifinit(ffff8000015dd000,ffff800001622e00,ffff80002a7eb720,1) at in_ifinit+0x4bb in_insert_prefix sys/netinet/in.c:789 [inline] in_ifinit(ffff8000015dd000,ffff800001622e00,ffff80002a7eb720,1) at in_ifinit+0x4bb sys/netinet/in.c:722 in_ioctl_change_ifaddr(8040691a,ffff80002a7eb710,ffff8000015dd000) at in_ioctl_change_ifaddr+0x91c sys/netinet/in.c:523 ifioctl(ffff80000163c6b8,8040691a,ffff80002a7eb710,ffff80002a882028) at ifioctl+0x16c4 pru_control sys/sys/protosw.h:353 [inline] ifioctl(ffff80000163c6b8,8040691a,ffff80002a7eb710,ffff80002a882028) at ifioctl+0x16c4 sys/net/if.c:2554 sys_ioctl(ffff80002a882028,ffff80002a7eb8e0,ffff80002a7eb830) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a7eb8e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7eb8e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7355b0b2fdb0, count: -9