uvm_fault(0xfffffd806be3ed78, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at rtable_l2+0x7f: movzbl 0(%rax,%rcx,4),%r14d TID PID UID PRFLAGS PFLAGS CPU COMMAND 198517 78975 0 0 0 1 syz-executor * 41545 74540 0 0 0x4000000 0 syz-executor rtable_l2(0) at rtable_l2+0x7f sys/net/rtable.c:315 in_pcbhash_insert(fffffd806ffa18f8) at in_pcbhash_insert+0x197 sys/netinet/in_pcb.c:-1 in_pcballoc(ffff80000164e920,ffffffff83aba210,1) at in_pcballoc+0x24c sys/netinet/in_pcb.c:269 tcp_attach(ffff80000164e920,0,1) at tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 socreate(2,ffff80002a2caae0,1,0) at socreate+0x238 pru_attach sys/sys/protosw.h:275 [inline] socreate(2,ffff80002a2caae0,1,0) at socreate+0x238 sys/kern/uipc_socket.c:220 sys_socket(ffff80003c3ccfb8,ffff80002a2cac30,ffff80002a2cab80) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102 syscall(ffff80002a2cac30) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2cac30) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf3e9293c0, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffffd806be3ed78, 0x0, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace rtable_l2(0) at rtable_l2+0x7f sys/net/rtable.c:315 in_pcbhash_insert(fffffd806ffa18f8) at in_pcbhash_insert+0x197 sys/netinet/in_pcb.c:-1 in_pcballoc(ffff80000164e920,ffffffff83aba210,1) at in_pcballoc+0x24c sys/netinet/in_pcb.c:269 tcp_attach(ffff80000164e920,0,1) at tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 socreate(2,ffff80002a2caae0,1,0) at socreate+0x238 pru_attach sys/sys/protosw.h:275 [inline] socreate(2,ffff80002a2caae0,1,0) at socreate+0x238 sys/kern/uipc_socket.c:220 sys_socket(ffff80003c3ccfb8,ffff80002a2cac30,ffff80002a2cab80) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102 syscall(ffff80002a2cac30) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2cac30) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf3e9293c0, count: -8 ddb{0}> show registers rdi 0xffff8000363a9000 rsi 0x2ae rbp 0xffff80002a2ca8e0 rbx 0 rdx 0xffff8000363a9000 rcx 0 rax 0 r8 0x30 r9 0 r10 0xa187e6fed2ab312b r11 0x4cc90f40a8006c4b r12 0x6 r13 0xfffffd806ffa1a40 r14 0 r15 0xffff800000c40660 rip 0xffffffff8211817f rtable_l2+0x7f cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a2ca8a0 ss 0x10 rtable_l2+0x7f: movzbl 0(%rax,%rcx,4),%r14d ddb{0}> show proc PROC (syz-executor) tid=41545 pid=74540 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c3cc558,0xffffffff83ab8140 process=0xffff80003c3bd360 user=0xffff80002a2c5000, vmspace=0xfffffd806be3ed78 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 78975 198517 56579 0 7 0 0 syz-executor 78975 371078 56579 0 3 0 0x4000080 ttyin syz-executor 74540 408615 68920 0 2 0 0 syz-executor 74540 477418 68920 0 3 0 0x4000080 pipewr syz-executor 74540 47132 68920 0 3 0 0x4000080 sbwait syz-executor *74540 41545 68920 0 7 0 0x4000000 syz-executor 8683 153502 93657 0 3 0x2 0 clonelk syz-executor 68920 480260 93657 0 3 0x2 0x80 nanoslp syz-executor 14439 11986 93657 0 3 0x2 0x80 piperd syz-executor 30867 207550 93657 0 3 0x2 0x80 piperd syz-executor 56579 218198 93657 0 2 0x2 0 syz-executor 35630 139646 93657 0 3 0x2 0x80 piperd syz-executor 93657 208701 41093 0 3 0x2 0x80 wait syz-executor 41093 265704 11137 0 3 0x100002 0x88 sigsusp ksh 11137 28167 86609 0 3 0x10 0x88 kqread sshd-session 86609 208288 9376 0 3 0x12 0x80 kqread sshd-session 97815 76025 1 0 3 0x100003 0x80 ttyin getty 9376 225738 1 0 3 0 0x88 kqread sshd 33349 370773 75557 74 3 0x1100012 0x80 bpf pflogd 75557 10741 1 0 3 0 0x80 sbwait pflogd 91888 27103 81077 73 3 0x1100010 0x80 kqread syslogd 81077 78715 1 0 3 0x100002 0x80 sbwait syslogd 63404 257527 1 0 3 0x100000 0x80 kqread resolvd 87637 419518 94950 77 3 0x100012 0x80 kqread dhcpleased 64837 234913 94950 77 3 0x100012 0x80 kqread dhcpleased 94950 178256 1 0 3 0 0x80 kqread dhcpleased 79613 494373 0 0 3 0x14000 0x200 bored smr 67835 301017 0 0 2 0x14000 0x200 zerothread 33666 306211 0 0 3 0x14000 0x200 aiodoned aiodoned 72590 495243 0 0 3 0x14000 0x200 syncer update 150 322039 0 0 3 0x14000 0x200 cleaner cleaner 33341 414170 0 0 3 0x14000 0x200 reaper reaper 15945 175875 0 0 3 0x14000 0x200 pgdaemon pagedaemon 61415 466566 0 0 3 0x14000 0x200 bored viomb 26619 355990 0 0 3 0x14000 0x40000200 acpi0 acpi0 21019 199011 0 0 3 0x14000 0x40000200 idle1 91168 3924 0 0 3 0x14000 0x200 bored softnet1 45740 243436 0 0 3 0x14000 0x200 bored softnet0 50287 87724 0 0 3 0x14000 0x200 smrbar systqmp 14364 217181 0 0 3 0x14000 0x200 bored systq 17070 31890 0 0 3 0x14000 0x200 tmoslp softclockmp 4821 269026 0 0 3 0x14000 0x40000200 tmoslp softclock 69710 160283 0 0 3 0x14000 0x40000200 idle0 1 412948 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &table->inpt_mtx r = 0 (0xffffffff83aba220) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 in_pcballoc+0x192 sys/netinet/in_pcb.c:265 #3 tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 #4 socreate+0x238 pru_attach sys/sys/protosw.h:275 [inline] #4 socreate+0x238 sys/kern/uipc_socket.c:220 #5 sys_socket+0x124 sys/kern/uipc_syscalls.c:102 #6 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #7 Xsyscall+0x128 Process 74540 (syz-executor) thread 0xffff80003c3ccfb8 (41545) exclusive rwlock inet46 r = 0 (0xffff80000164e940) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 socreate+0x214 pru_attach sys/sys/protosw.h:-1 [inline] #2 socreate+0x214 sys/kern/uipc_socket.c:220 #3 sys_socket+0x124 sys/kern/uipc_syscalls.c:102 #4 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #5 Xsyscall+0x128 shared rwlock netlock r = 0 (0xffffffff8394de20) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 solock_shared+0x6e sys/kern/uipc_socket2.c:343 #3 socreate+0x214 pru_attach sys/sys/protosw.h:-1 [inline] #3 socreate+0x214 sys/kern/uipc_socket.c:220 #4 sys_socket+0x124 sys/kern/uipc_syscalls.c:102 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #6 Xsyscall+0x128 exclusive mutex &table->inpt_mtx r = 0 (0xffffffff83aba220) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 in_pcballoc+0x192 sys/netinet/in_pcb.c:265 #3 tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 #4 socreate+0x238 pru_attach sys/sys/protosw.h:275 [inline] #4 socreate+0x238 sys/kern/uipc_socket.c:220 #5 sys_socket+0x124 sys/kern/uipc_syscalls.c:102 #6 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #7 Xsyscall+0x128 Process 50287 (systqmp) thread 0xffff800045ffea60 (87724) shared rwlock systqmp r = 0 (0xffffffff83978be8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11050 12081K 12341K 166960K 12229 0 pcb 17 12K 12K 166960K 33 0 rtable 204 6K 7K 166960K 524 0 pf 30 16K 21K 166960K 67 0 ifaddr 35 6K 7K 166960K 69 0 ifgroup 47 2K 2K 166960K 82 0 sysctl 3 1K 9K 166960K 7 0 counters 66 36K 37K 166960K 84 0 ioctlops 0 0K 4K 166960K 1505 0 iov 0 0K 17K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 82K 166960K 1478 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 5 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 12 41K 97K 166960K 294 0 sigio 0 0K 0K 166960K 1 0 proc 72 115K 163K 166960K 710 0 subproc 72 4K 4K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 14 0 in_multi 77 5K 6K 166960K 157 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 8 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 463 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 196 166K 177K 166960K 4226 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 37 74K 110K 166960K 1584 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 14 0K 2K 166960K 45 0 temp 34 9122K 9186K 166960K 4780 0 kqueue 13 20K 26K 166960K 46 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 47 0 44 1 0 1 1 0 8 0 rtentry 176 168 0 78 6 0 6 6 0 8 0 unpcb 144 102 0 85 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 26 0 21 1 0 1 1 0 8 0 arp 136 28 0 14 1 0 1 1 0 8 0 inpcb 328 275 0 264 7 0 7 7 0 8 6 nd6 152 40 0 21 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 14 0 6 1 0 1 1 0 8 0 ppxss 1192 1 0 1 1 0 1 1 0 8 1 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 1 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 32 0 0 1 0 1 1 0 8 0 pfstkey 128 32 0 0 2 0 2 2 0 8 0 pfstate 448 32 0 0 4 0 4 4 0 8 0 pfrule 1360 23 0 22 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 684 0 264 29 0 29 29 0 8 0 art_table 40 686 0 264 5 0 5 5 0 8 0 art_node 32 168 0 76 1 0 1 1 0 8 0 semapl 72 3 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1722 0 245 93 0 93 93 0 8 0 ffsino 296 1722 0 245 114 0 114 114 0 8 0 nchpl 144 2028 0 313 64 0 64 64 0 8 0 vnodes 216 1897 0 0 106 0 106 106 0 8 0 namei 1024 7650 0 7650 3 1 2 2 0 8 2 percpumem 16 58 0 9 1 0 1 1 0 8 0 kstatmem 264 41 0 18 2 0 2 2 0 8 0 scxspl 216 7173 0 7173 8 3 5 5 1 8 5 plimitpl 152 42 0 25 1 0 1 1 0 8 0 sigapl 424 599 0 557 7 0 7 7 0 8 1 knotepl 120 88 0 0 3 0 3 3 0 8 0 kqueuepl 224 46 0 37 1 0 1 1 0 8 0 pipepl 344 154 0 126 3 0 3 3 0 8 0 fdescpl 528 583 0 557 3 0 3 3 0 8 0 filepl 160 2313 0 2099 13 0 13 13 0 8 2 lockfpl 104 51 0 49 1 0 1 1 0 8 0 lockfspl 48 24 0 22 1 0 1 1 0 8 0 sessionpl 144 36 0 27 1 0 1 1 0 8 0 pgrppl 48 50 0 33 1 0 1 1 0 8 0 ucredpl 104 181 0 168 1 0 1 1 0 8 0 zombiepl 144 559 0 557 1 0 1 1 0 8 0 processpl 1232 599 0 557 5 0 5 5 0 8 1 procpl 664 751 0 705 6 0 6 6 0 8 1 sockpl 752 425 0 394 11 0 11 11 0 8 7 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mextrefs 64 21 0 0 1 0 1 1 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 214 0 0 14 0 14 14 0 8 0 bufpl 272 2461 0 105 158 0 158 158 0 8 0 anonpl 32 7481 0 0 62 1 61 62 0 247 0 amapchunkpl 152 12326 0 11965 30 0 30 30 0 158 11 amappl16 200 2196 0 2177 15 5 10 14 0 8 8 amappl15 192 6 0 6 2 1 1 1 0 8 1 amappl14 184 489 0 488 1 0 1 1 0 8 0 amappl13 176 135 0 123 1 0 1 1 0 8 0 amappl12 168 856 0 831 2 0 2 2 0 8 0 amappl11 160 23 0 23 1 1 0 1 0 8 0 amappl10 152 88 0 74 1 0 1 1 0 8 0 amappl9 144 275 0 275 1 1 0 1 0 8 0 amappl8 136 117 0 115 1 0 1 1 0 8 0 amappl7 128 166 0 152 1 0 1 1 0 8 0 amappl6 120 206 0 204 1 0 1 1 0 8 0 amappl5 112 97 0 87 1 0 1 1 0 8 0 amappl4 104 305 0 285 1 0 1 1 0 8 0 amappl3 96 2087 0 2016 3 0 3 3 0 8 0 amappl2 88 688 0 614 2 0 2 2 0 8 0 amappl1 80 11437 0 10854 16 0 16 16 0 8 3 amappl 88 3396 0 3272 5 0 5 5 0 92 0 uvmvnodes 80 99 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 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 6 0 6 1 1 0 1 0 8 0 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 583 0 557 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 583 0 557 1 0 1 1 0 8 0 vmmpekpl 168 6740 0 6693 3 0 3 3 0 8 0 vmmpepl 168 46818 0 45175 95 0 95 95 0 357 12 vmsppl 488 582 0 557 5 0 5 5 0 8 0 rwobjpl 80 16933 0 15947 27 0 27 27 0 8 1 pdppl 4096 1173 0 1114 103 30 73 87 0 8 14 pvpl 32 13354 0 0 109 1 108 108 0 265 0 pmappl 256 582 0 557 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 440 0 34 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace rtable_l2(0) at rtable_l2+0x7f sys/net/rtable.c:315 in_pcbhash_insert(fffffd806ffa18f8) at in_pcbhash_insert+0x197 sys/netinet/in_pcb.c:-1 in_pcballoc(ffff80000164e920,ffffffff83aba210,1) at in_pcballoc+0x24c sys/netinet/in_pcb.c:269 tcp_attach(ffff80000164e920,0,1) at tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 socreate(2,ffff80002a2caae0,1,0) at socreate+0x238 pru_attach sys/sys/protosw.h:275 [inline] socreate(2,ffff80002a2caae0,1,0) at socreate+0x238 sys/kern/uipc_socket.c:220 sys_socket(ffff80003c3ccfb8,ffff80002a2cac30,ffff80002a2cab80) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102 syscall(ffff80002a2cac30) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2cac30) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbf3e9293c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7a5852abb1f0, count: 12 ddb{1}> trace x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7a5852abb1f0, count: -3