panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 46707 39209 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff8000015f3d40,33,ffffef806c0f1d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fde8b0,29,33,ffffef806c0f1d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fde8b0,29,33,ffffef806c0f1d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75a7e0,ffff8000318afa10,ffff8000318af960) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000318afa10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318afa10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7ec6c25650, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: ip6_getpcbopt: unexpected option ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff8000015f3d40,33,ffffef806c0f1d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fde8b0,29,33,ffffef806c0f1d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fde8b0,29,33,ffffef806c0f1d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75a7e0,ffff8000318afa10,ffff8000318af960) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000318afa10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318afa10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7ec6c25650, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000318af690 rbx 0xffffef8075a588f8 rdx 0xffff8000015e1900 rcx 0 rax 0xffff80002a75a7e0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x76630f93e3769309 r11 0x66f6ae1a8ba705c9 r12 0 r13 0xffff800010fde8b0 r14 0 r15 0x1 rip 0xffffffff829fcc95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000318af680 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=46707 pid=39209 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a75a2b0,0xffffffff83a76958 process=0xffff800035cc9f98 user=0xffff8000318aa000, vmspace=0xffffef806be1fa20 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39209 297108 6870 0 2 0 syz-executor *39209 46707 6870 0 7 0x4000000 syz-executor 95758 85264 89072 0 2 0 syz-executor 95758 144872 89072 0 3 0x4000080 fsleep syz-executor 88816 238185 71714 0 2 0 syz-executor 88816 290104 71714 0 3 0x4000080 fifor syz-executor 101 174566 49546 0 3 0x80 nanoslp syz-executor 101 123706 49546 0 3 0x4000080 sbwait syz-executor 101 232389 49546 0 3 0x4000080 fsleep syz-executor 79734 111190 13442 0 3 0x80 nanoslp syz-executor 79734 294388 13442 0 3 0x4000080 lockf syz-executor 79734 67839 13442 0 3 0x4000080 fsleep syz-executor 82854 474871 58694 0 3 0x80 nanoslp syz-executor 82854 258254 58694 0 3 0x4000080 lockf syz-executor 82854 208152 58694 0 3 0x4000080 fsleep syz-executor 93366 486066 13539 0 3 0x80 nanoslp syz-executor 93366 150823 13539 0 3 0x4000080 kqsel syz-executor 93366 87026 13539 0 3 0x4000080 fsleep syz-executor 13442 304305 28346 0 3 0x82 nanoslp syz-executor 71714 1738 28346 0 3 0x82 nanoslp syz-executor 13539 236197 28346 0 3 0x82 nanoslp syz-executor 6870 471394 28346 0 3 0x82 nanoslp syz-executor 42267 55584 28346 0 3 0x82 nanoslp syz-executor 58694 449202 28346 0 3 0x82 nanoslp syz-executor 49546 289535 28346 0 3 0x82 nanoslp syz-executor 89072 331729 28346 0 3 0x82 nanoslp syz-executor 28346 121668 83338 0 3 0x82 kqread syz-executor 83338 387908 25400 0 3 0x10008a sigsusp ksh 25400 517442 75372 0 3 0x98 kqread sshd-session 75372 469851 41940 0 3 0x92 kqread sshd-session 95316 80294 1 0 3 0x100083 ttyin getty 41940 524108 1 0 3 0x88 kqread sshd 23637 382402 30244 73 3 0x1100090 kqread syslogd 30244 430133 1 0 3 0x100082 sbwait syslogd 93382 515241 1 0 3 0x100080 kqread resolvd 6871 40527 61824 77 3 0x100092 kqread dhcpleased 56150 343368 61824 77 3 0x100092 kqread dhcpleased 61824 36451 1 0 3 0x80 kqread dhcpleased 42249 406487 0 0 3 0x14200 bored smr 83298 123609 0 0 2 0x14200 zerothread 97186 335473 0 0 3 0x14200 aiodoned aiodoned 31990 436147 0 0 3 0x14200 syncer update 71267 50173 0 0 3 0x14200 cleaner cleaner 64604 174979 0 0 3 0x14200 reaper reaper 37488 205607 0 0 3 0x14200 pgdaemon pagedaemon 74599 432853 0 0 3 0x14200 bored viomb 84118 288773 0 0 3 0x40014200 acpi0 acpi0 29440 156243 0 0 3 0x14200 bored softnet0 33865 414959 0 0 3 0x14200 bored systqmp 79839 433976 0 0 3 0x14200 bored systq 98945 502746 0 0 3 0x40014200 tmoslp softclock 73295 135631 0 0 3 0x40014200 idle0 1 154119 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11047 12240K 12336K 166960K 12288 0 pcb 17 12K 12K 166960K 49 0 rtable 224 7K 7K 166960K 397 0 pf 38 14K 20K 166960K 74 0 ifaddr 40 6K 7K 166960K 57 0 ifgroup 59 2K 2K 166960K 87 0 sysctl 1 1K 9K 166960K 5 0 counters 35 18K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 54 0 iov 0 0K 16K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 82K 166960K 1477 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 2K 2K 166960K 4 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 437 0 proc 61 67K 100K 166960K 508 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 24 0 in_multi 84 6K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 11 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 387 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 227 150K 158K 166960K 5373 0 UVM aobj 5 2K 2K 166960K 6 0 pinsyscall 39 78K 94K 166960K 1547 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 6 0 NDP 13 0K 2K 166960K 38 0 temp 37 9106K 9154K 166960K 13058 0 kqueue 13 20K 26K 166960K 57 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 44 0 41 1 0 1 1 0 8 0 rtentry 136 116 0 20 4 0 4 4 0 8 0 unpcb 144 87 0 68 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 48 0 43 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 inpcb 328 168 0 160 2 0 2 2 0 8 1 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 25 0 6 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 0 1 1 0 8 1 pfstscr 40 8 0 2 1 0 1 1 0 8 0 pfrktable 1344 2 0 1 1 0 1 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 5 0 0 1 0 1 1 0 8 0 pfstkey 128 7 0 2 1 0 1 1 0 8 0 pfstate 384 4 0 1 1 0 1 1 0 8 0 pfrule 1360 2 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 494 0 84 29 0 29 29 0 8 2 art_table 40 495 0 84 5 0 5 5 0 8 0 art_node 32 115 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 shmpl 112 3 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2023 0 566 92 0 92 92 0 8 0 ffsino 256 2023 0 566 92 0 92 92 0 8 0 nchpl 144 2556 0 863 63 0 63 63 0 8 0 vnodes 216 2156 0 0 120 0 120 120 0 8 0 namei 1024 7029 0 7029 1 0 1 1 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 kstatmem 264 43 0 16 2 0 2 2 0 8 0 scxspl 216 8563 0 8563 4 0 4 4 1 8 4 plimitpl 152 38 0 22 1 0 1 1 0 8 0 sigapl 424 735 0 692 6 0 6 6 0 8 1 knotepl 120 12921 0 12874 10 0 10 10 0 8 8 kqueuepl 184 51 0 41 1 0 1 1 0 8 0 pipepl 304 126 0 99 3 0 3 3 0 8 0 fdescpl 448 722 0 692 5 0 5 5 0 8 1 filepl 120 2185 0 1970 7 0 7 7 0 8 0 lockfpl 104 81 0 75 1 0 1 1 0 8 0 lockfspl 48 34 0 30 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 36 0 20 1 0 1 1 0 8 0 ucredpl 104 221 0 210 1 0 1 1 0 8 0 zombiepl 144 693 0 692 1 0 1 1 0 8 0 processpl 1152 735 0 692 4 0 4 4 0 8 0 procpl 664 1079 0 1025 5 0 5 5 0 8 0 sockpl 552 304 0 274 3 0 3 3 0 8 0 mcl64k 65536 88 0 87 1 0 1 1 0 8 0 mcl16k 16384 87 0 87 1 0 1 1 0 8 1 mcl12k 12288 47 0 47 1 0 1 1 0 8 1 mcl9k128 9344 21 0 21 1 0 1 1 0 8 1 mcl8k 8192 77 0 77 1 0 1 1 0 8 1 mcl4k 4096 3048 0 2992 13 0 13 13 0 8 5 mcl2k 2048 191 0 191 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 7817 0 7634 19 0 19 19 0 8 4 bufpl 272 2951 0 105 190 0 190 190 0 8 0 anonpl 24 113051 0 109830 33 0 33 33 0 88 11 amapchunkpl 152 16444 0 15950 26 0 26 26 0 158 5 amappl16 200 1845 0 1819 5 0 5 5 0 8 3 amappl15 192 8 0 8 1 0 1 1 0 8 1 amappl14 184 439 0 438 1 0 1 1 0 8 0 amappl13 176 120 0 110 1 0 1 1 0 8 0 amappl12 168 957 0 928 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 0 1 1 0 8 1 amappl10 152 59 0 49 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 95 0 94 1 0 1 1 0 8 0 amappl7 128 144 0 133 1 0 1 1 0 8 0 amappl6 120 149 0 148 1 0 1 1 0 8 0 amappl5 112 93 0 86 1 0 1 1 0 8 0 amappl4 104 266 0 250 1 0 1 1 0 8 0 amappl3 96 3314 0 3199 3 0 3 3 0 8 0 amappl2 88 530 0 477 2 0 2 2 0 8 0 amappl1 80 11369 0 10824 13 0 13 13 0 8 1 amappl 88 4662 0 4496 4 0 4 4 0 92 0 uvmvnodes 80 109 0 0 3 0 3 3 0 8 0 dma32768 32768 2 0 2 1 0 1 1 0 8 1 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 722 0 692 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 722 0 692 1 0 1 1 0 8 0 vmmpekpl 168 7073 0 7044 2 0 2 2 0 8 0 vmmpepl 168 52703 0 50894 80 0 80 80 0 357 0 vmsppl 368 721 0 692 4 0 4 4 0 8 1 rwobjpl 40 16814 0 15864 11 0 11 11 0 8 1 pdppl 4096 1450 0 1384 96 30 66 80 0 8 0 pvpl 32 323569 0 314242 84 0 84 84 0 265 8 pmappl 216 721 0 692 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 556 0 30 16 0 16 16 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(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff8000015f3d40,33,ffffef806c0f1d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fde8b0,29,33,ffffef806c0f1d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fde8b0,29,33,ffffef806c0f1d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75a7e0,ffff8000318afa10,ffff8000318af960) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000318afa10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318afa10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7ec6c25650, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff8000015f3d40,33,ffffef806c0f1d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fde8b0,29,33,ffffef806c0f1d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fde8b0,29,33,ffffef806c0f1d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75a7e0,ffff8000318afa10,ffff8000318af960) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000318afa10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318afa10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7ec6c25650, count: -8