Kernel vm_vault during starting connection to Internet Provider PPPoE using PPP or MPD5 on RPI4 FreeBSD 14

From: Jörg_Ruppe-Tanner <joerg.ruppe.tanner_at_gmail.com>
Date: Sun, 07 May 2023 11:27:19 UTC
Hi

I am trying to move the PPPoE from a Zyxel router to FreeBSD 14.0-CURRENT #0 main-n262010-f21faa67ab6b: Thu Apr  6 11:36:21 UTC 2023
The reason is a better IPv6 implementation especially in routing 
Unfortunally the Kernel Crashes during the negotiation .

I tried PPP

Dump header from device: /dev/label/growfs_swap
  Architecture: aarch64
  Architecture Version: 1
  Dump Length: 341123072
  Blocksize: 512
  Compression: none
  Dumptime: 2023-05-05 07:44:26 +0200
  Hostname: rpi-io
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 14.0-CURRENT #0 main-n262010-f21faa67ab6b: Thu Apr  6 11:36:21 UTC 2023
    root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC
  Panic String: vm_fault failed: ffff0000008940f8 error 1
  Dump Parity: 3130209551
  Bounds: 0
  Dump Status: good
rpi-io dumped core - see /var/crash/vmcore.0

Fri May  5 06:58:30 CEST 2023

FreeBSD rpi-io 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n262010-f21faa67ab6b: Thu Apr  6 11:36:21 UTC 2023     root@releng1.nyi.freebsd.or
g:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64

panic: vm_fault failed: ffff0000008940f8 error 1

GNU gdb (GDB) 13.1 [GDB v13.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:
Fatal data abort:
  x0: ffffa00094e872b2
  x1:                0
  x2: ffff0000c1f73008 (_DYNAMIC + c0a4ac78)
  x3:                1
  x4: ffffa00094e87fd8
  x5:                2
  x6:         8080ffff
  x7:                0
  x8:                1
  x9:                0
 x10:             8864
 x11: ffffa000b20d0994
 x12:               12
 x13:               12
 x14:               12
 x15: ffffa000b20d09a6
 x16:            10000
 x17: ffff00000058c12c (ether_output_frame + 0)
 x18: ffff0000c1f73030 (_DYNAMIC + c0a4aca0)
 x19: ffff0000b4f2a030 (_DYNAMIC + b3a01ca0)
 x20: ffff0000b4f2a000 (_DYNAMIC + b3a01c70)
 x21: ffffa00094e87200
 x22:                0
 x23: ffffa00000db0000
 x24: ffffa00094d88e80
 x25:                0
 x26:                0
 x27:                0
 x28:                0
 x29: ffff0000c1f731a0 (_DYNAMIC + c0a4ae10)
  sp: ffff0000c1f73030
  lr: ffff000000893f78 (gen_start_locked + 144)
 elr: ffff0000008940f8 (gen_start_locked + 2c4)
spsr:         60000045
 far:               10
 esr: 0000000096000004
panic: vm_fault failed: ffff0000008940f8 error 1
cpuid = 0
time = 1683265466
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
vpanic() at vpanic+0x13c
panic() at panic+0x44
data_abort() at data_abort+0x32c
handle_el1h_sync() at handle_el1h_sync+0x10
--- exception, esr 0xffffa0000191e6bc
(null)() at 0
KDB: enter: panic
Uptime: 56m23s
Dumping 325 out of 8027 MB:..2%..12%

0x0000000000000000 in ?? ()
(kgdb) #0  0x0000000000000000 in ?? ()
#1  <unavailable> in ?? ()
Backtrace stopped: not enough registers or memory available to unwind further
(kgdb)

------------------------------------------------------------------------



Mpd5

Dump header from device: /dev/label/growfs_swap
  Architecture: aarch64
  Architecture Version: 1
  Dump Length: 607428608
  Blocksize: 512
  Compression: none
  Dumptime: 2023-04-30 07:05:41 +0200
  Hostname: rpi-io
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 14.0-CURRENT #0 main-n262010-f21faa67ab6b: Thu Apr  6 11:36:21 UTC 2023
    root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC
  Panic String: vm_fault failed: ffff0000008940f8 error 1
  Dump Parity: 636693519
  Bounds: 1
  Dump Status: good


Sun Apr 30 07:07:43 CEST 2023

FreeBSD rpi-io 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n262010-f21faa67ab6b: Thu Apr  6 11:36:21 UTC 2023     root@releng1.nyi.freebsd.or
g:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64

panic: vm_fault failed: ffff0000008940f8 error 1

GNU gdb (GDB) 13.1 [GDB v13.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:
Fatal data abort:
  x0: ffffa00184e0c7b2
  x1:                0
  x2: ffff0000fe33edd8 (_DYNAMIC + fce16a48)
  x3:                1
  x4: ffffa00184e0cfd8
  x5:                7
  x6:               ff
  x7:                0
  x8:                1
  x9:                0
 x10:             8864
 x11: ffffa00184ef5a96
 x12:               12
 x13:               12
 x14:               12
 x15: ffffa00184ef5aa8
 x16:            10000
 x17: ffff00000058c12c (ether_output_frame + 0)
 x18: ffff0000fe33ee00 (_DYNAMIC + fce16a70)
 x19: ffff0000b4f2a030 (_DYNAMIC + b3a01ca0)
 x20: ffff0000b4f2a000 (_DYNAMIC + b3a01c70)
 x21: ffffa00184e0c700
 x22:                0
 x23: ffffa00000db0000
 x24: ffffa00094a0ac00
 x25: ffff0000fed100a0 (__stop_set_sysinit_set + 2129c8)
 x26:                0
 x27:                0
 x28:                0
 x29: ffff0000fe33ef70 (_DYNAMIC + fce16be0)
  sp: ffff0000fe33ee00
  lr: ffff000000893f78 (gen_start_locked + 144)
 elr: ffff0000008940f8 (gen_start_locked + 2c4)
spsr:         60000045
 far:               10
 esr: 0000000096000004
panic: vm_fault failed: ffff0000008940f8 error 1
cpuid = 2
time = 1682831141
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
vpanic() at vpanic+0x13c
panic() at panic+0x44
data_abort() at data_abort+0x32c
handle_el1h_sync() at handle_el1h_sync+0x10
--- exception, esr 0
__stop_set_sysinit_set() at 0xffff0000fec6c760
KDB: enter: panic
Uptime: 6h24m48s
Dumping 579 out of 8027 MB:..1%..11%..21%

0x0000000000000000 in ?? ()
(kgdb) #0  0x0000000000000000 in ?? ()
#1  <unavailable> in ?? ()
Backtrace stopped: not enough registers or memory available to unwind further
(kgdb)

------------------------------------------------------------------------

If you need further Information please let me know. For both cases I have full vmcore core.txt  file 
In the moment I make a fall back to the zyxel Router  :(
If there any good ideas / hints available. Please let me know .

Kind Regards 

Jörg