[Bug 248046] if_bridge(4): Panic when creating an interface: malloc(M_WAITOK) in epoch context

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 26 16:39:57 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248046

--- Comment #21 from Kristof Provost <kp at freebsd.org> ---
(In reply to dmilith from comment #20)
That's a different operating system...

Don't try to hide that during a bug submission please. It'll always come out in
the end, and you're just wasting both of our time.

This almost certainly also affects base FreeBSD, but *DO NOT HIDE RELEVANT
INFORMATION IN BUG REPORTS*. You're just making the people who want to fix
these bugs angry, and that's not the right state of mind to fix bug. Or be
helpful.

The issue here is that the bridge code tries to set the physical interface in
promiscuous mode, which sleeps in the em code. The stable/12 epoch code doesn't
allow sleeps during epoch sections (head does), which triggers this panic.
(Which we wouldn't see on a default FreeBSD stable/12, because that requires
INVARIANTS iirc....)

I'll see if that can be fixed, but I may end up just reverting the epoch code
in stable/12.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list