Bug 245633 - Panic when shutting down jail in vnet_if_return->if_vmove->if_delgroups
Summary: Panic when shutting down jail in vnet_if_return->if_vmove->if_delgroups
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-jail (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2020-04-15 08:58 UTC by Markus Wild
Modified: 2022-10-12 06:19 UTC (History)
0 users

See Also:


Attachments
core info (205.00 KB, text/plain)
2020-04-15 08:58 UTC, Markus Wild
no flags Details
jail.conf snippet for this jail (234 bytes, text/plain)
2020-04-15 09:00 UTC, Markus Wild
no flags Details
rc.conf snip for interface config within jail (67 bytes, text/plain)
2020-04-15 09:00 UTC, Markus Wild
no flags Details
kgdb stackdump (2.05 KB, text/plain)
2020-04-15 09:01 UTC, Markus Wild
no flags Details
kgdb stackdump screenshot with color (237.48 KB, image/png)
2020-04-15 09:01 UTC, Markus Wild
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wild 2020-04-15 08:58:12 UTC
Created attachment 213407 [details]
core info

System panicked after "service jail stop" with a test jail, that uses
vnet/epair interface.
Comment 1 Markus Wild 2020-04-15 09:00:15 UTC
Created attachment 213408 [details]
jail.conf snippet for this jail
Comment 2 Markus Wild 2020-04-15 09:00:39 UTC
Created attachment 213409 [details]
rc.conf snip for interface config within jail
Comment 3 Markus Wild 2020-04-15 09:01:02 UTC
Created attachment 213410 [details]
kgdb stackdump
Comment 4 Markus Wild 2020-04-15 09:01:41 UTC
Created attachment 213411 [details]
kgdb stackdump screenshot with color
Comment 5 Markus Wild 2020-04-15 09:04:57 UTC
System panicked when "service jail stop" of jail using an epair interface.
The panic seems similar to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234985
but happens in a different location (but possibly has the same cause).

This is vanilla FreeBSD 12.1-RELEASE-p3 GENERIC  amd64 on an epyc based
system with hw.ncpu=32 and hw.physmem=274692632576
Comment 6 Markus Wild 2022-10-12 06:19:00 UTC
didn't realize this was still open. we fixed the issue for us with
by adding 

exec.prestop   = "ifconfig epair0b -vnet JAILNAME";

to our jail.conf configs.