From nobody Sat Jun 27 20:43:37 2026 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gnkz644cPz6hg9x for ; Sat, 27 Jun 2026 20:43:46 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from mail.pobox.feld.me (vps-45410b18.vps.ovh.us [51.81.222.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4gnkz534H1z3HcP for ; Sat, 27 Jun 2026 20:43:45 +0000 (UTC) (envelope-from feld@FreeBSD.org) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=freebsd.org header.s=202604 header.b=nMhBB7F3; dmarc=fail reason="No valid SPF" header.from=freebsd.org (policy=none); spf=softfail (mx1.freebsd.org: 51.81.222.106 is neither permitted nor denied by domain of feld@FreeBSD.org) smtp.mailfrom=feld@FreeBSD.org Received: from mail.pobox.feld.me (unknown [127.0.0.1]) by mail.pobox.feld.me (Postfix) with ESMTP id 36FCA20787 for ; Sat, 27 Jun 2026 20:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=202604; t=1782593018; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IepkpwbYWhSSrq81B0950aC40uYSHFu6a4iSoGUI2G0=; b=nMhBB7F3E0tmtlwMYDYai3pIwwrirMPxwobWZzn/Zlb7EEG8j1RXu5ieXJk6Xry+bYuUSX WN1TSr03Csm4UkM7bwJ76OYPBcbMjc7D/ylWV/dPhE16TiDRvdI4A0EP4yB5Q9vvrufw8q HEirHyQj+V1bz65SmK36Xuxh/UzjKzo= Received: from freebsd@pobox.feld.me by mail.pobox.feld.me (Archiveopteryx 3.2.0) with esmtpsa id 1782593017-69069-12326/10/4; Sat, 27 Jun 2026 20:43:37 +0000 Message-Id: <063d3176-2c6f-4692-8cf0-6f454f32aff0@FreeBSD.org> Date: Sat, 27 Jun 2026 13:43:37 -0700 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-net@freebsd.org From: Mark Felder Subject: if_ovpn: Fatal trap 12: page fault while in kernel mode Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-1.93 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.98)[-0.983]; MV_CASE(0.50)[]; NEURAL_HAM_SHORT(-0.45)[-0.448]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF,none]; R_DKIM_PERMFAIL(0.00)[freebsd.org:s=202604]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:16276, ipnet:51.81.128.0/17, country:FR]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[feld]; TO_DOM_EQ_FROM_DOM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; R_SPF_SOFTFAIL(0.00)[~all:c]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[freebsd.org:~] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4gnkz534H1z3HcP I was trying to rearchitect some overly-complicated networking on a=20 server and settled on a combination of OpenVPN and pf's reply-to to=20 route the traffic properly. Everything was working as expected and I=20 went to bed only to wake up and realize it had been crash looping all = night. I did some digging and thought that perhaps this commit was the fix, so=20 I updated from 15.0-RELEASE to 15.1-RELEASE:=20 https://cgit.freebsd.org/src/commit/sys/net/if_ovpn.c?h=3Dstable/15&id=3D= 04a7134c1e92c7752ffdc665f99ae26db70866c0 Unfortunately it did not fix it and I have a feeling that a similar bug=20 is lurking elsewhere in the if_ovpn driver. Can someone clarify if this=20 is an outstanding bug that needs further investigation or if it's=20 potentially already addressed in CURRENT? Thanks Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address=C2=A0 =C2=A0=3D 0x0 fault code=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D supervisor= read data, page not present instruction pointer=C2=A0 =C2=A0 =C2=A0=3D 0x20:0xffffffff81093c4a stack pointer=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D 0x28:0xfffffe00= 67d621e0 frame pointer=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D 0x28:0xfffffe00= 67d621e0 code segment=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D base 0x0, = limit 0xfffff, type 0x1b =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D interrupt enabled, = resume, IOPL =3D 0 current process=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D 12 (irq129: ahci0) rdi: fffff801338840ee rsi: 0000000000000000 rdx: 0000000000000267 rcx: 0000000000000267=C2=A0 r8: 00000000000000c1=C2=A0 r9: fffff800312f70= 00 rax: fffff801338840ee rbx: fffff80001eb6200 rbp: fffffe0067d621e0 r10: fffff80031259000 r11: fffff8003123248c r12: 0000000000000001 r13: fffff80001de2700 r14: fffff80001de2700 r15: fffff80001b21100 trap number=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D 12 panic: page fault cpuid =3D 0 time =3D 1782496026 KDB: stack backtrace: #0 0xffffffff80bd609d at kdb_backtrace+0x5d #1 0xffffffff80b86c06 at vpanic+0x136 #2 0xffffffff80b86ac3 at panic+0x43 #3 0xffffffff81097fcd at trap_pfault+0x37d #4 0xffffffff8106e568 at calltrap+0x8 #5 0xffffffff80c265cb at m_unshare+0x36b #6 0xffffffff82e9ed7b at ovpn_output+0x2b #7 0xffffffff82e4ffdf at pf_route+0x89f #8 0xffffffff82e4693a at pf_test+0xd0a #9 0xffffffff82e62e6e at pf_check_out+0x2e #10 0xffffffff80cda688 at pfil_mbuf_out+0x38 #11 0xffffffff80d59e2e at ip_output+0xc7e #12 0xffffffff8255f92b at rack_output+0x4afb #13 0xffffffff80d85602 at tcp_usr_ready+0x182 #14 0xffffffff80b84da5 at sendfile_iodone+0x115 #15 0xffffffff80f534df at vnode_pager_generic_getpages_done_async+0x3f #16 0xffffffff80c510f1 at bufdone+0x41 #17 0xffffffff80abd317 at g_io_deliver+0x2a7 Timeout initializing vt_vga Uptime: 1h14m9s Mark