panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 27291 75350 0 0 0 0 syz-executor * 89060 75350 0 0 0x4000000 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8352ba00) at panic+0x1e5 sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff80000172d240,33,fffff0806cda0600) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdf790,29,33,fffff0806cda0600) at ip6_ctloutput+0xfb2 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdf790,29,33,fffff0806cda0600) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a213c98,ffff80002a230bf0,ffff80002a230b40) at sys_getsockopt+0x1ec sys/kern/uipc_syscalls.c:1263 syscall(ffff80002a230bf0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a230bf0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x553685675a0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: ip6_getpcbopt: unexpected option ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8352ba00) at panic+0x1e5 sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff80000172d240,33,fffff0806cda0600) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdf790,29,33,fffff0806cda0600) at ip6_ctloutput+0xfb2 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdf790,29,33,fffff0806cda0600) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a213c98,ffff80002a230bf0,ffff80002a230b40) at sys_getsockopt+0x1ec sys/kern/uipc_syscalls.c:1263 syscall(ffff80002a230bf0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a230bf0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x553685675a0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a230850 rbx 0xffff80002998ee07 rdx 0xffff8000015fc140 rcx 0xffff80002a213c98 rax 0xffff80002998dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x745936458019c12b r11 0x995017811759104f r12 0xffff80002998ec08 r13 0 r14 0 r15 0x1 rip 0xffffffff81328a15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a230840 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=89060 pid=75350 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=0xffff80002a213a00,0xffff80002a2127e8 process=0xffff807ffffe26a8 user=0xffff80002a22b000, vmspace=0xfffff0806d047d60 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58520 317817 96074 0 2 0 syz-executor 68665 53751 66413 0 2 0 syz-executor 17576 98867 29114 0 2 0 syz-executor 17576 167687 29114 0 2 0x4000000 syz-executor 75350 27291 25605 0 7 0 syz-executor *75350 89060 25605 0 7 0x4000000 syz-executor 45310 364781 26625 0 2 0 syz-executor 45310 94048 26625 0 2 0x4000000 syz-executor 27121 176670 44165 60929 3 0x90 nanoslp syz-executor 27121 25264 44165 60929 3 0x4000090 semwait syz-executor 27121 480352 44165 60929 3 0x4000090 fsleep syz-executor 74658 354393 0 0 3 0x14280 nfsidl nfsio 71163 89946 0 0 3 0x14280 nfsidl nfsio 41943 408012 0 0 3 0x14280 nfsidl nfsio 51064 460975 0 0 3 0x14280 nfsidl nfsio 31986 490266 0 0 3 0x14280 nfsidl nfsio 6676 278754 0 0 3 0x14280 nfsidl nfsio 24514 444314 0 0 3 0x14280 nfsidl nfsio 87118 437317 0 0 3 0x14280 nfsidl nfsio 35629 380972 0 0 3 0x14280 nfsidl nfsio 95018 301047 0 0 3 0x14280 nfsidl nfsio 67516 420485 0 0 3 0x14280 nfsidl nfsio 6729 169879 0 0 3 0x14280 nfsidl nfsio 87689 348157 0 0 3 0x14280 nfsidl nfsio 43441 469610 0 0 3 0x14280 nfsidl nfsio 97061 317433 0 0 3 0x14280 nfsidl nfsio 16691 62101 0 0 3 0x14280 nfsidl nfsio 97926 144385 0 0 3 0x14280 nfsidl nfsio 2039 251200 0 0 3 0x14280 nfsidl nfsio 68111 508889 0 0 3 0x14280 nfsidl nfsio 48779 48929 0 0 3 0x14280 nfsidl nfsio 91402 451929 90247 0 2 0 syz-executor 91402 293955 90247 0 3 0x4000080 ttyretype syz-executor 91402 70816 90247 0 3 0x4000080 fsleep syz-executor 87390 277054 78838 0 3 0x80 nanoslp syz-executor 87390 296204 78838 0 3 0x4000080 sbwait syz-executor 87390 418103 78838 0 3 0x4000080 fsleep syz-executor 66728 16018 1 0 3 0x80 nanoslp init 26625 50300 49269 0 3 0x82 nanoslp syz-executor 96074 361263 49269 0 2 0x2 syz-executor 25605 74087 49269 0 3 0x82 nanoslp syz-executor 78838 154366 49269 0 2 0x2 syz-executor 66413 141090 49269 0 2 0x2 syz-executor 44165 7344 49269 0 3 0x82 nanoslp syz-executor 29114 337431 49269 0 3 0x82 nanoslp syz-executor 90247 252791 49269 0 3 0x82 nanoslp syz-executor 49269 486698 1 0 2 0x2 syz-executor 93311 191893 0 0 3 0x14200 bored smr 69905 178663 0 0 2 0x14200 zerothread 76635 96007 0 0 3 0x14200 aiodoned aiodoned 32455 111247 0 0 3 0x14200 syncer update 7878 36145 0 0 3 0x14200 cleaner cleaner 14228 405299 0 0 3 0x14200 reaper reaper 18517 318149 0 0 3 0x14200 pgdaemon pagedaemon 97268 193339 0 0 3 0x14200 bored viomb 67258 172323 0 0 3 0x40014200 acpi0 acpi0 68739 521643 0 0 3 0x40014200 idle1 29841 82021 0 0 3 0x14200 bored softnet1 4693 343111 0 0 3 0x14200 bored softnet0 31482 176576 0 0 3 0x14200 bored systqmp 97594 163479 0 0 3 0x14200 bored systq 42490 437407 0 0 3 0x14200 tmoslp softclockmp 83059 88736 0 0 3 0x40014200 tmoslp softclock 63431 385351 0 0 3 0x40014200 idle0 1 40595 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 75350 (syz-executor) thread 0xffff80002a213c98 (89060) exclusive rwlock netlock r = 0 (0xffffffff839b9cf0) #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 sogetopt+0x105 sys/kern/uipc_socket.c:2074 #3 sys_getsockopt+0x1ec sys/kern/uipc_syscalls.c:1263 #4 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11086 12089K 12287K 166960K 12630 0 pcb 18 14K 16K 166960K 184 0 rtable 252 9K 10K 166960K 431 0 pf 39 18K 25K 166960K 129 0 ifaddr 43 7K 7K 166960K 54 0 ifgroup 60 2K 2K 166960K 70 0 sysctl 3 1K 9K 166960K 10 0 counters 72 37K 37K 166960K 90 0 ioctlops 0 0K 4K 166960K 1547 0 iov 0 0K 16K 166960K 78 0 mount 1 1K 1K 166960K 1 0 log 5 16K 16K 166960K 9 0 vnodes 1289 81K 82K 166960K 1687 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 31 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 65K 93K 166960K 476 0 sigio 0 0K 0K 166960K 6 0 proc 12 17K 164K 166960K 602 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 50 0 in_multi 95 7K 7K 166960K 104 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 20 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 253 1129K 1129K 166960K 253 0 exec 0 0K 1K 166960K 495 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 129 78K 169K 166960K 6325 0 UVM aobj 11 2K 2K 166960K 11 0 pinsyscall 19 38K 106K 166960K 1666 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 23 0 NDP 13 0K 2K 166960K 35 0 temp 41 9119K 9156K 166960K 18271 0 kqueue 1 2K 26K 166960K 86 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 53 0 53 1 0 1 1 0 8 1 rtentry 176 125 0 16 6 0 6 6 0 8 0 unpcb 144 307 0 301 4 2 2 4 0 8 1 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 148 0 147 4 0 4 4 0 8 3 arp 136 21 0 1 1 0 1 1 0 8 0 inpcb 328 487 0 485 7 0 7 7 0 8 6 nd6 152 29 0 6 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 9 0 9 1 0 1 1 0 8 1 pfstscr 40 6 0 4 1 0 1 1 0 8 0 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 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 pfsrclim 320 2 0 2 1 0 1 1 0 8 1 pfstlim 224 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 9 0 5 1 0 1 1 0 8 0 pfstitem 24 50 0 1 1 0 1 1 0 8 0 pfstkey 128 54 0 5 2 0 2 2 0 8 0 pfstate 448 51 0 3 6 0 6 6 0 8 0 pfrule 1360 28 0 23 2 1 1 2 0 8 0 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 569 0 119 31 0 31 31 0 8 2 art_table 40 571 0 119 5 0 5 5 0 8 0 art_node 32 125 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 1 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 25 0 15 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2282 0 814 93 0 93 93 0 8 0 ffsino 296 2282 0 814 114 0 114 114 0 8 0 nchpl 144 2906 0 1207 64 0 64 64 0 8 0 vnodes 216 2511 0 0 140 0 140 140 0 8 0 namei 1024 10810 0 10810 3 1 2 2 0 8 2 percpumem 16 60 0 9 1 0 1 1 0 8 0 kstatmem 264 39 0 10 3 0 3 3 0 8 1 scsiplug 72 4 0 4 1 0 1 1 0 8 1 scxspl 216 11103 0 11103 9 5 4 8 1 8 4 plimitpl 152 261 0 251 1 0 1 1 0 8 0 sigapl 424 843 0 787 8 0 8 8 0 8 1 knotepl 120 560 0 0 17 0 17 17 0 8 0 kqueuepl 224 103 0 102 1 0 1 1 0 8 0 pipepl 344 178 0 150 6 0 6 6 0 8 3 fdescpl 528 787 0 767 3 0 3 3 0 8 0 filepl 160 4808 0 4641 14 0 14 14 0 8 5 lockfpl 104 166 0 166 1 0 1 1 0 8 1 lockfspl 48 77 0 77 1 0 1 1 0 8 1 sessionpl 144 99 0 97 1 0 1 1 0 8 0 pgrppl 48 108 0 98 1 0 1 1 0 8 0 ucredpl 104 921 0 916 1 0 1 1 0 8 0 zombiepl 144 787 0 787 1 0 1 1 0 8 1 processpl 1232 843 0 787 6 0 6 6 0 8 1 procpl 664 1431 0 1366 8 0 8 8 0 8 2 sosppl 176 3 0 3 2 1 1 1 0 8 1 sockpl 752 854 0 846 10 1 9 10 0 8 8 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 128 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 33 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 225 0 0 15 0 15 15 0 8 0 bufpl 272 4457 0 108 290 0 290 290 0 8 0 anonpl 32 5703 0 0 46 0 46 46 0 115 0 amapchunkpl 152 18941 0 18586 27 1 26 26 0 158 10 amappl16 200 1993 0 1974 5 3 2 5 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 441 0 441 1 0 1 1 0 8 1 amappl13 176 229 0 229 1 0 1 1 0 8 1 amappl12 168 1037 0 1021 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 71 0 71 1 0 1 1 0 8 1 amappl9 144 311 0 311 1 0 1 1 0 8 1 amappl8 136 102 0 101 1 0 1 1 0 8 0 amappl7 128 156 0 153 1 0 1 1 0 8 0 amappl6 120 167 0 167 1 0 1 1 0 8 1 amappl5 112 100 0 99 1 0 1 1 0 8 0 amappl4 104 299 0 296 1 0 1 1 0 8 0 amappl3 96 3760 0 3687 4 0 4 4 0 8 1 amappl2 88 561 0 551 2 0 2 2 0 8 0 amappl1 80 12044 0 11954 15 2 13 15 0 8 6 amappl 88 5470 0 5351 5 0 5 5 0 92 0 uvmvnodes 80 118 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 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 254 0 254 2 1 1 1 0 8 1 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 10 0 0 1 0 1 1 0 8 0 uaddrrnd 24 787 0 767 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 787 0 767 1 0 1 1 0 8 0 vmmpekpl 168 8349 0 8310 3 0 3 3 0 8 0 vmmpepl 168 57895 0 57056 88 1 87 88 0 357 48 vmsppl 488 786 0 767 5 1 4 5 0 8 1 rwobjpl 80 18495 0 18087 24 1 23 24 0 8 1 pdppl 4096 1581 0 1534 101 54 47 85 0 8 0 pvpl 32 13012 0 0 105 0 105 105 0 265 0 pmappl 256 786 0 767 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 583 0 59 16 0 16 16 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8393aff0) 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: 0x7a302508a0f0, count: 12 ddb{0}> trace x86_ipi_db(ffffffff8393aff0) 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: 0x7a302508a0f0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8352ba00) at panic+0x1e5 sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff80000172d240,33,fffff0806cda0600) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdf790,29,33,fffff0806cda0600) at ip6_ctloutput+0xfb2 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdf790,29,33,fffff0806cda0600) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a213c98,ffff80002a230bf0,ffff80002a230b40) at sys_getsockopt+0x1ec sys/kern/uipc_syscalls.c:1263 syscall(ffff80002a230bf0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a230bf0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x553685675a0, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8352ba00) at panic+0x1e5 sys/kern/subr_prf.c:198 ip6_getpcbopt(ffff80000172d240,33,fffff0806cda0600) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdf790,29,33,fffff0806cda0600) at ip6_ctloutput+0xfb2 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdf790,29,33,fffff0806cda0600) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a213c98,ffff80002a230bf0,ffff80002a230b40) at sys_getsockopt+0x1ec sys/kern/uipc_syscalls.c:1263 syscall(ffff80002a230bf0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a230bf0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x553685675a0, count: -8 ddb{1}>