[Bug 300934] sys/netipsec/tunnel/sa_flowid test kernel panics: general protection fault while in kernel mode
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 300934] sys/netipsec/tunnel/sa_flowid test kernel panics: general protection fault while in kernel mode"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 300934] sys/netipsec/tunnel/sa_flowid test kernel panics: general protection fault while in kernel mode"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 300934] sys/netipsec/tunnel/sa_flowid test kernel panics: general protection fault while in kernel mode"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 300934] sys/netipsec/tunnel/sa_flowid test kernel panics: general protection fault while in kernel mode"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Nov 2026 00:43:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300934
Bug ID: 300934
Summary: sys/netipsec/tunnel/sa_flowid test kernel panics:
general protection fault while in kernel mode
Product: Base System
Version: 16.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: crash, regression
Severity: Affects Only Me
Priority: ---
Component: tests
Assignee: rcm@FreeBSD.org
Reporter: siva@FreeBSD.org
CC: ae@FreeBSD.org, kib@FreeBSD.org, testing@FreeBSD.org
Starting with rcm@ to triage since the test was introduced in
https://cgit.freebsd.org/src/commit/?id=1b9a8e1dcc69d239c7ec2b2d8aa255fd11c97884
(netipsec: Select outbound transmit queues by SA instead of inner flow)
To reproduce:
bricoler freebsd-regression-test-suite --freebsd-src-git-checkout/url=/usr/src
--freebsd-src-git-checkout/branch= --freebsd-regression-test-suite/count=200
--freebsd-regression-test-suite/tests='sys/netipsec/tunnel/sa_flowid'
Full report:
lock order reversal:
1st 0xffffffff81e8ce48 ifnet_sx (ifnet_sx, sx) @
/home/siva/f/s/sys/netinet/in.c:1288
2nd 0xffffffff81e8fc68 in_control (in_control, sx) @
/home/siva/f/s/sys/netinet/in.c:382
All lock orders from in_control -> ifnet_sx:
"in_control" -> "if_lagg sx" -> "ifnet_sx"
"in_control" -> "in_multi_sx" -> "if_lagg sx" -> "ifnet_sx"
lock order "in_control"(sx) -> "if_lagg sx"(sx) first seen at:
#0 0xffffffff80ccf82a at witness_checkorder+0x36a
#1 0xffffffff80c63850 at _sx_xlock+0x60
#2 0xffffffff850f6b14 at lagg_init+0x24
#3 0xffffffff80db31ce at ether_ioctl+0x1ae
#4 0xffffffff80e4e740 at in_control_ioctl+0xa80
#5 0xffffffff80f08c5d at rtnl_handle_addr+0x41d
#6 0xffffffff80f04ac0 at rtnl_handle_message+0x1a0
#7 0xffffffff80f0328a at nl_receive_message+0x12a
#8 0xffffffff80f02bc5 at nl_taskqueue_handler+0x3f5
#9 0xffffffff80cc1d3b at taskqueue_run_locked+0x1bb
#10 0xffffffff80cc2d73 at taskqueue_thread_loop+0xd3
#11 0xffffffff80c042f4 at fork_exit+0x94
#12 0xffffffff811cbece at fork_trampoline+0xe
lock order "in_control"(sx) -> "in_multi_sx"(sx) first seen at:
#0 0xffffffff80ccf82a at witness_checkorder+0x36a
#1 0xffffffff80c63850 at _sx_xlock+0x60
#2 0xffffffff80e54791 at in_joingroup+0x31
#3 0xffffffff80e4e78a at in_control_ioctl+0xaca
#4 0xffffffff80f08c5d at rtnl_handle_addr+0x41d
#5 0xffffffff80f04ac0 at rtnl_handle_message+0x1a0
#6 0xffffffff80f0328a at nl_receive_message+0x12a
#7 0xffffffff80f02bc5 at nl_taskqueue_handler+0x3f5
#8 0xffffffff80cc1d3b at taskqueue_run_locked+0x1bb
#9 0xffffffff80cc2d73 at taskqueue_thread_loop+0xd3
#10 0xffffffff80c042f4 at fork_exit+0x94
#11 0xffffffff811cbece at fork_trampoline+0xe
lock order "in_multi_sx"(sx) -> "if_lagg sx"(sx) first seen at:
#0 0xffffffff80ccf82a at witness_checkorder+0x36a
#1 0xffffffff80c63850 at _sx_xlock+0x60
#2 0xffffffff850f6c0e at lagg_ioctl+0xce
#3 0xffffffff80daaba4 at if_addmulti+0x2b4
#4 0xffffffff80e54a44 at in_joingroup_locked+0x274
#5 0xffffffff80e547a2 at in_joingroup+0x42
#6 0xffffffff80e4e78a at in_control_ioctl+0xaca
#7 0xffffffff80f08c5d at rtnl_handle_addr+0x41d
#8 0xffffffff80f04ac0 at rtnl_handle_message+0x1a0
#9 0xffffffff80f0328a at nl_receive_message+0x12a
#10 0xffffffff80f02bc5 at nl_taskqueue_handler+0x3f5
#11 0xffffffff80cc1d3b at taskqueue_run_locked+0x1bb
#12 0xffffffff80cc2d73 at taskqueue_thread_loop+0xd3
#13 0xffffffff80c042f4 at fork_exit+0x94
#14 0xffffffff811cbece at fork_trampoline+0xe
lock order "if_lagg sx"(sx) -> "ifnet_sx"(sx) first seen at:
#0 0xffffffff80ccf82a at witness_checkorder+0x36a
#1 0xffffffff80c63850 at _sx_xlock+0x60
#2 0xffffffff80da6fad at if_addgroup+0x5d
#3 0xffffffff80da5e36 at if_attach_internal+0x76
#4 0xffffffff80db275b at ether_ifattach+0x3b
#5 0xffffffff850f63f8 at lagg_clone_create+0x298
#6 0xffffffff80daf9c6 at if_clone_createif_nl+0x166
#7 0xffffffff80daf833 at ifc_create_ifp+0x103
#8 0xffffffff80dafc6f at if_clone_create+0x3f
#9 0xffffffff80dabaf9 at ifioctl+0xb79
#10 0xffffffff80cd7b1d at kern_ioctl+0x2bd
#11 0xffffffff80cd77e2 at user_ioctl+0x152
#12 0xffffffff811ff9cc at amd64_syscall+0x17c
#13 0xffffffff811cb79b at fast_syscall_common+0xf8
lock order ifnet_sx -> in_control attempted at:
#0 0xffffffff80cd01fb at witness_checkorder+0xd3b
#1 0xffffffff80c63850 at _sx_xlock+0x60
#2 0xffffffff80e4fa20 at in_ifscrub_all+0x100
#3 0xffffffff80e66ae9 at ip_destroy+0xa9
#4 0xffffffff80df2d04 at vnet_destroy+0x154
#5 0xffffffff80c0edd6 at prison_deref+0xaf6
#6 0xffffffff80c104f7 at sys_jail_remove+0x1a7
#7 0xffffffff811ff9cc at amd64_syscall+0x17c
#8 0xffffffff811cb79b at fast_syscall_common+0xf8
Fatal trap 9: general protection fault while in kernel mode
cpuid = 7; apic id = 07
instruction pointer = 0x20:0xffffffff80c2edd9
stack pointer = 0x28:0xfffffe008fde4b40
frame pointer = 0x28:0xfffffe008fde4b80
processor eflags = interrupt enabled, resume, IOPL = 0
current thread = 5503/100476 (jail/jail)
rdi: deadc0dedeadc0f6 rsi: fffff8002fd2d000 rdx: deadc0dedeadc0de
rcx: 000000000000040c r8: 0000000000000020 r9: fffff80006441140
rax: fffff80006441140 rbx: deadc0dedeadc0f6 rbp: fffffe008fde4b80
r10: 0000000000000000 r11: 0000000000000001 r12: 000000000000040c
r13: fffff8002fd2d001 r14: 0000000000000000 r15: ffffffff813b2d32
panic: general protection fault
cpuid = 7
time = 1795117166
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x36/frame 0xfffffe008fde48c0
vpanic() at vpanic+0x149/frame 0xfffffe008fde49f0
panic() at panic+0x43/frame 0xfffffe008fde4a50
trap_fatal() at trap_fatal+0x6f/frame 0xfffffe008fde4a70
calltrap() at calltrap+0x8/frame 0xfffffe008fde4a70
--- trap 0x9, rip = 0xffffffff80c2edd9, rsp = 0xfffffe008fde4b40, rbp =
0xfffffe008fde4b80 ---
__mtx_lock_flags() at __mtx_lock_flags+0x49/frame 0xfffffe008fde4b80
free_unr() at free_unr+0xc2/frame 0xfffffe008fde4bc0
if_detach_internal() at if_detach_internal+0x1c8/frame 0xfffffe008fde4c10
if_detach() at if_detach+0x74/frame 0xfffffe008fde4c40
lagg_clone_destroy() at lagg_clone_destroy+0x112/frame 0xfffffe008fde4c70
if_clone_destroyif_flags() at if_clone_destroyif_flags+0x8c/frame
0xfffffe008fde4cb0
if_clone_detach() at if_clone_detach+0x106/frame 0xfffffe008fde4ce0
vnet_lagg_uninit() at vnet_lagg_uninit+0x26/frame 0xfffffe008fde4d00
vnet_destroy() at vnet_destroy+0x154/frame 0xfffffe008fde4d30
prison_deref() at prison_deref+0xaf6/frame 0xfffffe008fde4db0
sys_jail_remove() at sys_jail_remove+0x1a7/frame 0xfffffe008fde4df0
amd64_syscall() at amd64_syscall+0x17c/frame 0xfffffe008fde4f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe008fde4f30
--- syscall (508, FreeBSD ELF64, jail_remove), rip = 0x1e478470085a, rsp =
0x1e477f5f0d28, rbp = 0x1e477f5f0db0 ---
--
You are receiving this mail because:
You are on the CC list for the bug.