Archive > 20.7 Legacy Series
SOLVED: LTE usage broken - WARNING: attempt to domain_add(netgraph) after ...
Werner Fischer:
Hi OPNsense team,
I did some in-depth testing today with two LTE modems (Quectel EG25-G, Quectel EG25-E, Huawei ME909u-521). All those modems work fine with OPNsense 20.1 (and they did with 19.7, 19.1, 18.7). With the current OPNsense 20.7 beta, the firewall reboots after I try to set the WAN connection to the LTE interface.
Steps to reproduce:
* Install the current OPNsense 20.7 beta using https://pkg.opnsense.org/FreeBSD:12:amd64/snapshots/OPNsense-devel-20.7.b-OpenSSL-vga-amd64.img.bz2
* Use igb0 as LAN, igb1 as WAN and have a working wired Internet connection on igb1
* Apply all updates as of today (May, 26th). Versions are then "OPNsense 20.7.b_108-amd64", "FreeBSD 12.1-RELEASE-p4-HBSD"
* Configure the modem via "Interfaces -> Point-to-Point -> Devices" as described in https://www.thomas-krenn.com/de/wiki/OPNsense_LTE_Verbindung#Konfiguration_Modem. For a Quectel modem use /dev/cuaU0.2, for a Huawei ME909u-521 use /dev/cuaU0.0
* Switch to "Interfaces -> Assignments" and configure for "WAN" the network port "ppp0". Click "Save"
Immediately after that, on the console there is the following output (in bold):
WARNING: attempt to domain_add(netgraph) after domainfinalize
About 2 seconds after that, a lot of outputs runs through the console and after a while the firewall reboots. On the next login the dashboard mentions "A problem was detected. Click here for more information." (I did this and submitted the output).
I have attached the four files here, too.
Any ideas what the root cause of this issue could be? (I think this is a general ppp0/LTE issue, as both the Quectel and Huawei modems show the same issue)
Best regards,
Werner
franco:
Can you try to add the following to your system, reboot and try again....
echo 'netgraph_load="YES"' > /boot/loader.conf.local
The warning is normal (it should also appear on 20.1), the crash not so much.
Cheers,
Franco
Werner Fischer:
Thank you for your fast reply.
I have added "netgraph_load="YES"" to /boot/loader.conf.local, did a reboot and tried again.
The behaviour is still the same.
I have switched the console to the serial console and I have captured the output (see attachment here).
Here is the area where you can see the WARNING and then "Fatal trap 12: page fault while in kernel mode"
root@OPNsense-beta:~ # cat /boot/loader.conf.local
netgraph_load="YES"
root@OPNsense-beta:~ #
root@OPNsense-beta:~ # WARNING: attempt to domain_add(netgraph) after domainfinalize()
Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address = 0x28
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80e00f86
stack pointer = 0x28:0xfffffe00004c6500
frame pointer = 0x28:0xfffffe00004c6540
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 16 (usbus0)
trap number = 12
panic: page fault
cpuid = 3
time = 1590500997
__HardenedBSD_version = 1200059 __FreeBSD_version = 1201000
version = FreeBSD 12.1-RELEASE-p4-HBSD #1 6673d781c3f(master)-dirty: Wed Apr 29 05:17:47 CEST 2020
[...]
franco:
Let's go one step further then:
https://raw.githubusercontent.com/opnsense/core/130436ca745bcc2f2b4ce93c0264a2aae1cd5dbc/src/etc/rc.loader.d/20-netgraph
Add this to /usr/local/etc/rc.loader.d/20-netgraph file and run /usr/local/etc/rc.loader once before reboot + try again.
Cheers,
Franco
Werner Fischer:
Thank you for the hint.
I have tried this and did a reboot after I have added the content to the new file /usr/local/etc/rc.loader.d/20-netgraph and executed /usr/local/etc/rc.loader once.
I get no warning any more, but the "Fatal trap 12..." happens again:
root@OPNsense-beta:~ #
Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address = 0x28
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80e00f86
stack pointer = 0x28:0xfffffe00004d4500
frame pointer = 0x28:0xfffffe00004d4540
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 16 (usbus0)
trap number = 12
panic: page fault
cpuid = 3
time = 1590504781
__HardenedBSD_version = 1200059 __FreeBSD_version = 1201000
[...]
The full output is again in the attachment.
Best regards, Werner
Navigation
[0] Message Index
[#] Next page
Go to full version