panic: unhandled af 0 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *391260 61454 0 0x2 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ba06d) at panic+0x1cf sys/kern/subr_prf.c:198 unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff8000002a2058,ffff80002a7bf160,ffff800000c55da0,fffffd00712e56e8,5dc) at if_output_tso+0x22b ip_output(fffffd006bdeff00,0,fffffd007173a300,800,0,fffffd007173a398,39ed31490022f46) at ip_output+0x107e sys/netinet/ip_output.c:437 tcp_output(ffff8000015bc5c0) at tcp_output+0x3513 sys/netinet/tcp_output.c:1070 tcp_send(ffff800010fdf598,fffffd006bdefa00,0,0) at tcp_send+0x191 sys/netinet/tcp_usrreq.c:859 sosend(ffff800010fdf598,0,ffff80002a7bf598,0,0,80) at sosend+0x804 sys/kern/uipc_socket.c:-1 dofilewritev(ffff80002a766a70,3,ffff80002a7bf598,0,ffff80002a7bf640) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff80002a766a70,ffff80002a7bf6f0,ffff80002a7bf640) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a7bf6f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7bf6f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x765e7333a370, count: 3 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: unhandled af 0 ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ba06d) at panic+0x1cf sys/kern/subr_prf.c:198 unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff8000002a2058,ffff80002a7bf160,ffff800000c55da0,fffffd00712e56e8,5dc) at if_output_tso+0x22b ip_output(fffffd006bdeff00,0,fffffd007173a300,800,0,fffffd007173a398,39ed31490022f46) at ip_output+0x107e sys/netinet/ip_output.c:437 tcp_output(ffff8000015bc5c0) at tcp_output+0x3513 sys/netinet/tcp_output.c:1070 tcp_send(ffff800010fdf598,fffffd006bdefa00,0,0) at tcp_send+0x191 sys/netinet/tcp_usrreq.c:859 sosend(ffff800010fdf598,0,ffff80002a7bf598,0,0,80) at sosend+0x804 sys/kern/uipc_socket.c:-1 dofilewritev(ffff80002a766a70,3,ffff80002a7bf598,0,ffff80002a7bf640) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff80002a766a70,ffff80002a7bf6f0,ffff80002a7bf640) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a7bf6f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7bf6f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x765e7333a370, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a7bef50 rbx 0x5dc rdx 0 rcx 0 rax 0xffff80002a766a70 r8 0x101010101010101 r9 0x8080808080808080 r10 0x73e9644dc04b5eec r11 0x4026a96c78cd0ddf r12 0 r13 0xffff8000002a2058 r14 0 r15 0x1 rip 0xffffffff81a655b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a7bef40 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=391260 pid=61454 tcnt=1 stat=onproc flags process=2 proc=0 runpri=24, usrpri=50, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a766fa0,0xffff80002a766550 process=0xffff80002a768920 user=0xffff80002a7ba000, vmspace=0xfffffd007f22acf0 estcpu=0, cpticks=5, pctcpu=0.3, user=0, sys=5, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 80824 23305 34726 0 2 0x40 0 syz-executor 67343 207613 52526 0 2 0 0 syz-executor 67343 254360 52526 0 3 0 0x4000080 fsleep syz-executor 36506 67071 13461 0 2 0 0 syz-executor 36506 484250 13461 0 3 0 0x4000080 fsleep syz-executor 49181 387834 50072 0 2 0 0 syz-executor 49181 22815 50072 0 3 0 0x4000080 fsleep syz-executor 31863 294343 75404 0 3 0 0x80 nanoslp syz-executor 31863 255561 75404 0 3 0 0x4000080 fsleep syz-executor 31863 48378 75404 0 3 0 0x4000080 fsleep syz-executor 97089 394529 92927 60929 2 0x10 0 syz-executor 97089 394592 92927 60929 3 0x10 0x4000080 fsleep syz-executor 51152 20074 39784 0 2 0 0 syz-executor 51152 128943 39784 0 3 0 0x4000080 fsleep syz-executor 51152 260991 39784 0 3 0 0x4000080 fsleep syz-executor 51152 215465 39784 0 3 0 0x4000080 fsleep syz-executor 34726 72960 61454 0 3 0x82 0 ppwait syz-executor 13461 465458 61454 0 3 0x2 0x80 nanoslp syz-executor 50072 148791 61454 0 3 0x2 0x80 nanoslp syz-executor 71410 170548 61454 0 2 0x2 0 syz-executor 52526 171360 61454 0 3 0x2 0x80 nanoslp syz-executor 75404 277176 61454 0 3 0x2 0x80 nanoslp syz-executor 92927 409966 61454 0 3 0x2 0x80 nanoslp syz-executor 39784 155621 61454 0 3 0x2 0x80 nanoslp syz-executor *61454 391260 40014 0 7 0x2 0 syz-executor 40014 449937 39459 0 3 0x100002 0x88 sigsusp ksh 39459 386827 50042 0 3 0x10 0x88 kqread sshd-session 50042 170345 63855 0 3 0x12 0x80 kqread sshd-session 43602 458643 1 0 3 0x100003 0x80 ttyin getty 63855 332280 1 0 3 0 0x88 kqread sshd 77989 476137 27566 73 3 0x1100010 0x80 kqread syslogd 27566 227237 1 0 3 0x100002 0x80 sbwait syslogd 57817 349225 1 0 3 0x100000 0x80 kqread resolvd 78454 190 99642 77 3 0x100012 0x80 kqread dhcpleased 68037 226867 99642 77 3 0x100012 0x80 kqread dhcpleased 99642 253640 1 0 3 0 0x80 kqread dhcpleased 21547 96828 0 0 3 0x14000 0x200 bored smr 38341 467978 0 0 2 0x14000 0x200 zerothread 76447 69781 0 0 3 0x14000 0x200 aiodoned aiodoned 66049 135060 0 0 3 0x14000 0x200 syncer update 16271 212842 0 0 3 0x14000 0x200 cleaner cleaner 72869 294047 0 0 3 0x14000 0x200 reaper reaper 15302 468959 0 0 3 0x14000 0x200 pgdaemon pagedaemon 56292 495515 0 0 3 0x14000 0x200 bored viomb 40776 209362 0 0 3 0x14000 0x40000200 acpi0 acpi0 48828 162170 0 0 3 0x14000 0x200 bored softnet0 14079 383607 0 0 3 0x14000 0x200 bored systqmp 28398 170348 0 0 3 0x14000 0x200 bored systq 21148 370035 0 0 3 0x14000 0x40000200 tmoslp softclock 27961 243206 0 0 3 0x14000 0x40000200 idle0 1 502203 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 12167K 12167K 166960K 12132 0 pcb 19 12K 12K 166960K 23 0 rtable 215 5K 6K 166960K 355 0 pf 30 12K 12K 166960K 32 0 ifaddr 39 6K 7K 166960K 45 0 ifgroup 50 2K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1370 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 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 162 0 proc 58 59K 75K 166960K 515 0 subproc 72 4K 4K 166960K 81 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 88 5K 6K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 4 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 375 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 208 159K 167K 166960K 3025 0 UVM aobj 5 2K 3K 166960K 6 0 pinsyscall 38 76K 94K 166960K 1280 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 11 0K 2K 166960K 28 0 temp 34 9106K 9126K 166960K 4444 0 kqueue 13 20K 22K 166960K 27 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 38 0 34 1 0 1 1 0 8 0 rtentry 136 111 0 12 4 0 4 4 0 8 0 unpcb 144 40 0 25 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 45 0 40 4 0 4 4 0 8 3 arp 96 18 0 2 1 0 1 1 0 8 0 inpcb 328 107 0 94 4 0 4 4 0 8 2 nd6 112 24 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 44 29 0 29 29 0 8 2 art_table 40 453 0 44 5 0 5 5 0 8 0 art_node 32 111 0 21 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 1582 0 120 92 0 92 92 0 8 0 ffsino 256 1582 0 120 92 0 92 92 0 8 0 nchpl 144 1805 0 109 63 0 63 63 0 8 0 vnodes 216 1678 0 0 94 0 94 94 0 8 0 namei 1024 6443 0 6443 4 0 4 4 0 8 4 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 6090 0 6090 3 0 3 3 1 8 3 plimitpl 152 32 0 16 1 0 1 1 0 8 0 sigapl 424 458 0 416 6 0 6 6 0 8 1 knotepl 120 2752 0 2705 2 0 2 2 0 8 0 kqueuepl 184 92 0 83 4 0 4 4 0 8 3 pipepl 304 127 0 100 3 0 3 3 0 8 0 fdescpl 448 445 0 416 5 0 5 5 0 8 1 filepl 120 1736 0 1523 9 0 9 9 0 8 2 lockfpl 104 10 0 7 1 0 1 1 0 8 0 lockfspl 48 6 0 3 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 106 0 94 1 0 1 1 0 8 0 zombiepl 144 416 0 416 1 0 1 1 0 8 1 processpl 1160 458 0 416 4 0 4 4 0 8 0 procpl 664 495 0 444 5 0 5 5 0 8 0 sockpl 552 187 0 155 5 0 5 5 0 8 2 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 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2479 0 2422 14 0 14 14 0 8 5 mcl2k 2048 151 0 150 1 0 1 1 0 8 0 mextrefs 64 48 0 47 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4317 0 4160 11 0 11 11 0 8 0 bufpl 272 2265 0 102 145 0 145 145 0 8 0 anonpl 24 83994 0 81003 33 0 33 33 0 187 12 amapchunkpl 152 8313 0 7886 24 0 24 24 0 158 6 amappl16 200 1199 0 1183 4 0 4 4 0 8 2 amappl15 192 2 0 2 1 0 1 1 0 8 1 amappl14 184 422 0 421 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 684 0 657 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 0 1 1 0 8 1 amappl10 152 62 0 52 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 93 0 92 1 0 1 1 0 8 0 amappl7 128 139 0 128 1 0 1 1 0 8 0 amappl6 120 151 0 150 1 0 1 1 0 8 0 amappl5 112 92 0 85 1 0 1 1 0 8 0 amappl4 104 259 0 245 1 0 1 1 0 8 0 amappl3 96 1467 0 1386 3 0 3 3 0 8 0 amappl2 88 558 0 493 2 0 2 2 0 8 0 amappl1 80 10164 0 9615 13 0 13 13 0 8 1 amappl 88 2328 0 2183 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 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 445 0 416 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 445 0 416 1 0 1 1 0 8 0 vmmpekpl 168 5619 0 5581 2 0 2 2 0 8 0 vmmpepl 168 37382 0 35642 79 0 79 79 0 357 1 vmsppl 368 444 0 416 4 0 4 4 0 8 1 rwobjpl 40 13760 0 12854 11 0 11 11 0 8 1 pdppl 4096 897 0 832 99 30 69 81 0 8 4 pvpl 32 210441 0 202287 95 0 95 95 0 265 26 pmappl 216 444 0 416 3 0 3 3 0 8 1 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 510 0 30 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ba06d) at panic+0x1cf sys/kern/subr_prf.c:198 unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff8000002a2058,ffff80002a7bf160,ffff800000c55da0,fffffd00712e56e8,5dc) at if_output_tso+0x22b ip_output(fffffd006bdeff00,0,fffffd007173a300,800,0,fffffd007173a398,39ed31490022f46) at ip_output+0x107e sys/netinet/ip_output.c:437 tcp_output(ffff8000015bc5c0) at tcp_output+0x3513 sys/netinet/tcp_output.c:1070 tcp_send(ffff800010fdf598,fffffd006bdefa00,0,0) at tcp_send+0x191 sys/netinet/tcp_usrreq.c:859 sosend(ffff800010fdf598,0,ffff80002a7bf598,0,0,80) at sosend+0x804 sys/kern/uipc_socket.c:-1 dofilewritev(ffff80002a766a70,3,ffff80002a7bf598,0,ffff80002a7bf640) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff80002a766a70,ffff80002a7bf6f0,ffff80002a7bf640) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a7bf6f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7bf6f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x765e7333a370, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ba06d) at panic+0x1cf sys/kern/subr_prf.c:198 unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff8000002a2058,ffff80002a7bf160,ffff800000c55da0,fffffd00712e56e8,5dc) at if_output_tso+0x22b ip_output(fffffd006bdeff00,0,fffffd007173a300,800,0,fffffd007173a398,39ed31490022f46) at ip_output+0x107e sys/netinet/ip_output.c:437 tcp_output(ffff8000015bc5c0) at tcp_output+0x3513 sys/netinet/tcp_output.c:1070 tcp_send(ffff800010fdf598,fffffd006bdefa00,0,0) at tcp_send+0x191 sys/netinet/tcp_usrreq.c:859 sosend(ffff800010fdf598,0,ffff80002a7bf598,0,0,80) at sosend+0x804 sys/kern/uipc_socket.c:-1 dofilewritev(ffff80002a766a70,3,ffff80002a7bf598,0,ffff80002a7bf640) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff80002a766a70,ffff80002a7bf6f0,ffff80002a7bf640) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80002a7bf6f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7bf6f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x765e7333a370, count: -12