Bug 241639 - Fatal trap 12: page fault ... current process = 0 (vmbusdev) when using mlx4en
Summary: Fatal trap 12: page fault ... current process = 0 (vmbusdev) when using mlx4en
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords: panic
Depends on:
Blocks:
 
Reported: 2019-11-01 09:42 UTC by Michael
Modified: 2019-11-07 13:49 UTC (History)
1 user (show)

See Also:


Attachments
Attachment 1 (Network adapter) (46.44 KB, image/png)
2019-11-01 09:42 UTC, Michael
no flags Details
Attachment 2 (VM setup) (74.71 KB, image/png)
2019-11-01 09:44 UTC, Michael
no flags Details
Attachment 3 (FS) (20.48 KB, image/png)
2019-11-01 09:45 UTC, Michael
no flags Details
Attachment 4 (ZFS) (40.80 KB, image/png)
2019-11-01 09:46 UTC, Michael
no flags Details
Attachment 5 (enable SR-IOV on port) (76.73 KB, image/png)
2019-11-01 09:47 UTC, Michael
no flags Details
Attachment 6 (work condition) (27.78 KB, image/png)
2019-11-01 09:48 UTC, Michael
no flags Details
Attachment 7 (52.38 KB, image/png)
2019-11-01 09:49 UTC, Michael
no flags Details
Attachment 8 (boot-2) (39.65 KB, image/png)
2019-11-01 09:50 UTC, Michael
no flags Details
Attachment 9 (boot-3) (39.55 KB, image/png)
2019-11-01 09:51 UTC, Michael
no flags Details
Attachment 10 (boot-4) (49.04 KB, image/png)
2019-11-01 09:52 UTC, Michael
no flags Details
Attachment 11 (Fatal trap 12) (50.06 KB, image/png)
2019-11-01 09:52 UTC, Michael
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2019-11-01 09:42:26 UTC
Created attachment 208757 [details]
Attachment 1 [details] (Network adapter)

Fatal trap 12: page fault ... current process = 0 (vmbusdev)

This applies to these OS versions:
FreeBSD-11.2 RELEASE amd64
FreeBSD-11.3 RELEASE-amd64
FreeBSD-11.3 STABLE amd64 20191025 r354051
FreeBSD-12.0 RELEASE amd64
FreeBSD-12.1 RC1 amd64
FreeBSD-12.1 RC2 amd64
FreeBSD-12.1 STABLE amd64 20191025 r354051
FreeBSD-13.0 CURRENT amd64 20191025 r354057

For all these OSs, this bug is the same.

Hypervisor: Windows 2019 server Hyper-V (all update and drivers are the latest).
VM: Hyper-V generation V2.
Network adapter: Mellanox ConnectiX-3 EN 10G SR-IOV enabled, (Attachment 1 [details]).

All VM-OSs were installed under the same conditions, (Attachment 2 [details]):
mem: 6GB, HDD: 127GB;
FS: Auto (ZFS) Guided Root-on-ZFS, (Attachment 3 [details]);
ZFS: GPT (BIOS+UEFI), (Attachment 4 [details]);
LAN: one HV-V2 network adapter, (Attachment 2 [details]);

When we enable SR-IOV on the port, (Attachment 5 [details]),
and load the Mellanox driver in the OS
  root@frw03v2:~ # kldload mlx4en
everything works without problems as it should.
Status of network connection is OK (Support SR-IOV active), (Attachment 6 [details]).
Add to /boot/loader.conf to automatically load the ConnectiX-3 driver
  mlx4en_load="YES"
and reboot VM-OS.
Result - Fatal trap on loading stage (Attachment 7 [details]-11).

As a temporary solution to this problem,
the pfSense community suggested this:
in /boot/loader.conf add
  kern.cam.boot_delay="10000"
Indeed, all versions of the FreeBSD OS will now boot OK
(with parameter kern.cam.boot_delay="10000"
in the configuration file /boot/loader.conf),
but where is the guarantee that this focus
makes the system stable under load?
And yet, this focus stops working when
parameter kern.cam.boot_delay is less than 1000.
For example, if kern.cam.boot_delay="500",
then when booting the system - the same Fatal trap.
Comment 1 Michael 2019-11-01 09:44:25 UTC
Created attachment 208758 [details]
Attachment 2 [details] (VM setup)
Comment 2 Michael 2019-11-01 09:45:22 UTC
Created attachment 208759 [details]
Attachment 3 [details] (FS)
Comment 3 Michael 2019-11-01 09:46:19 UTC
Created attachment 208760 [details]
Attachment 4 [details] (ZFS)
Comment 4 Michael 2019-11-01 09:47:21 UTC
Created attachment 208761 [details]
Attachment 5 [details] (enable SR-IOV on port)
Comment 5 Michael 2019-11-01 09:48:43 UTC
Created attachment 208762 [details]
Attachment 6 [details] (work condition)
Comment 6 Michael 2019-11-01 09:49:37 UTC
Created attachment 208763 [details]
Attachment 7 [details]
Comment 7 Michael 2019-11-01 09:50:42 UTC
Created attachment 208764 [details]
Attachment 8 [details] (boot-2)
Comment 8 Michael 2019-11-01 09:51:08 UTC
Created attachment 208765 [details]
Attachment 9 [details] (boot-3)
Comment 9 Michael 2019-11-01 09:52:18 UTC
Created attachment 208766 [details]
Attachment 10 [details] (boot-4)
Comment 10 Michael 2019-11-01 09:52:51 UTC
Created attachment 208767 [details]
Attachment 11 [details] (Fatal trap 12)