Created attachment 232561 [details] Patch (Revision 1) This patch fixes a kernel panic when a VM attempts to assign an IP address via DHCP. I will attach the crash log shortly.
Created attachment 232562 [details] VirtualBox crash log Here's the coredump/crash log.
I'll take a look. Strangely I have never experienced this panic myself. Anyway the patch looks correct. I just want to test it a little before commit.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b1d24b891bbadf165edf477b98d61d407144208c commit b1d24b891bbadf165edf477b98d61d407144208c Author: Neel Chauhan <nc@FreeBSD.org> AuthorDate: 2022-03-19 19:18:19 +0000 Commit: Neel Chauhan <nc@FreeBSD.org> CommitDate: 2022-03-19 19:19:59 +0000 emulators/virtualbox-ose-kmod: Fix kernel panic in DHCP bridge mode PR: 262656 Approved by: madpilot emulators/virtualbox-ose-kmod/Makefile | 1 + ...Drivers_VBoxNetFlt_freebsd_VBoxNetFlt-freebsd.c | 40 ++++++++++++++-------- 2 files changed, 26 insertions(+), 15 deletions(-)
I'm reopening this due to the fact that I noticed the legacy version also needs the same patch. Going to commit it shortly.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3c1502372cad26671f7550d0e54d2cc77e47b3a commit c3c1502372cad26671f7550d0e54d2cc77e47b3a Author: Neel Chauhan <nc@FreeBSD.org> AuthorDate: 2022-03-19 19:42:02 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2022-03-19 19:42:02 +0000 emulators/virtualbox-ose-kmod-legacy: Fix kernel panic in DHCP bridge mode PR: 262656 emulators/virtualbox-ose-kmod-legacy/Makefile | 2 +- ...Drivers_VBoxNetFlt_freebsd_VBoxNetFlt-freebsd.c | 40 ++++++++++++++-------- 2 files changed, 26 insertions(+), 16 deletions(-)
Thanks!