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

            Bug ID: 244241
           Summary: ng_eiface: panic: epoch_wait_preempt() called in the
                    middle of an epoch section of the same epoch
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: b...@freebsd.org
          Reporter: aleksandr.fedo...@itglobal.com

After creating 10-20 ngethN interfaces (ngctl mkpeer . eiface test ether), I
observe the following panic:

Unread portion of the kernel message buffer:                                    
panic: epoch_wait_preempt() called in the middle of an epoch section of the
same epoch                                                                      
cpuid = 2                                                                       
time = 1582189253                                                               
KDB: stack backtrace:                                                           
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe027869a520  
vpanic() at vpanic+0x185/frame 0xfffffe027869a580                               
panic() at panic+0x43/frame 0xfffffe027869a5e0                                  
epoch_wait_preempt() at epoch_wait_preempt+0x293/frame 0xfffffe027869a640       
if_alloc_domain() at if_alloc_domain+0x1d0/frame 0xfffffe027869a680             
ng_eiface_constructor() at ng_eiface_constructor+0x74/frame 0xfffffe027869a6c0  
ng_make_node() at ng_make_node+0xba/frame 0xfffffe027869a6f0
ng_mkpeer() at ng_mkpeer+0x24/frame 0xfffffe027869a740
ng_apply_item() at ng_apply_item+0x49d/frame 0xfffffe027869a7c0
ng_snd_item() at ng_snd_item+0x2b0/frame 0xfffffe027869a800
ngc_send() at ngc_send+0x1b7/frame 0xfffffe027869a8b0
sosend_generic() at sosend_generic+0x44c/frame 0xfffffe027869a960
sosend() at sosend+0x66/frame 0xfffffe027869a990 
kern_sendit() at kern_sendit+0x21d/frame 0xfffffe027869aa20
sendit() at sendit+0x1d5/frame 0xfffffe027869aa70
sys_sendto() at sys_sendto+0x4d/frame 0xfffffe027869aac0
amd64_syscall() at amd64_syscall+0x168/frame 0xfffffe027869abf0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe027869abf0
--- syscall (133, FreeBSD ELF64, sys_sendto), rip = 0x800475c3a, rsp =
0x7fffffffce08, rbp = 0x7fffffffce50 ---
Uptime: 18h46m4s
Dumping 8823 out of 130910 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /afedorov/freebsd-develop/sys/amd64/include/pcpu_aux.h:55
55      /afedorov/freebsd-develop/sys/amd64/include/pcpu_aux.h: No such file or
directory.
(kgdb) bt
#0  __curthread () at /afedorov/freebsd-develop/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=1) at
/afedorov/freebsd-develop/sys/kern/kern_shutdown.c:393
#2  0xffffffff80bc7c50 in kern_reboot (howto=260) at
/afedorov/freebsd-develop/sys/kern/kern_shutdown.c:480
#3  0xffffffff80bc80ad in vpanic (fmt=<optimized out>, ap=<optimized out>) at
/afedorov/freebsd-develop/sys/kern/kern_shutdown.c:910
#4  0xffffffff80bc7e03 in panic (fmt=<unavailable>) at
/afedorov/freebsd-develop/sys/kern/kern_shutdown.c:836
#5  0xffffffff80c0c9e3 in epoch_wait_preempt (epoch=0xfffff8010691ef00) at
/afedorov/freebsd-develop/sys/kern/subr_epoch.c:610
#6  0xffffffff80cd1fe0 in if_alloc_domain (type=6 '\006', numa_domain=255) at
/afedorov/freebsd-develop/sys/net/if.c:541
#7  0xffffffff82e6a094 in ng_eiface_constructor (node=0xfffff801fa8df900) at
/afedorov/freebsd-develop/sys/netgraph/ng_eiface.c:393
#8  0xffffffff82e6d0ba in ng_make_node (typename=0xfffff801f5238538 "eiface",
nodepp=0xfffffe027869a708) at
/afedorov/freebsd-develop/sys/netgraph/ng_base.c:618
#9  0xffffffff82e71d74 in ng_mkpeer (node=0xfffff801fa8df800,
name=0xfffff801f5238558 "test", name2=0xfffff801f5238578 "ether",
type=<unavailable>)
    at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:1547
#10 0xffffffff82e6fbbd in ng_generic_msg (here=0xfffff801fa8df800,
item=0xfffff812b7f86080, lasthook=<optimized out>) at
/afedorov/freebsd-develop/sys/netgraph/ng_base.c:2538
#11 ng_apply_item (node=0xfffff801fa8df800, item=0xfffff812b7f86080,
rw=<optimized out>) at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:2438
#12 0xffffffff82e6f520 in ng_snd_item (item=0xfffff812b7f86080, flags=0) at
/afedorov/freebsd-develop/sys/netgraph/ng_base.c:2321
#13 0xffffffff82e79db7 in ngc_send (so=<optimized out>, flags=<optimized out>,
m=0xfffff802c6a2b000, addr=<optimized out>, control=<optimized out>,
td=<optimized out>)
    at /afedorov/freebsd-develop/sys/netgraph/ng_socket.c:342
#14 0xffffffff80c678fc in sosend_generic (so=0xfffffe01e5d28710,
addr=0xfffff801071785f0, uio=0xfffffe027869a9a8, top=0xfffff802c6a2b000,
control=<optimized out>, flags=0, 
    td=0xfffffe0277d02300) at
/afedorov/freebsd-develop/sys/kern/uipc_socket.c:1650
#15 0xffffffff80c67b36 in sosend (so=<unavailable>, addr=<unavailable>,
uio=<unavailable>, top=<unavailable>, control=0x0, flags=<unavailable>,
td=0xfffffe0277d02300)
    at /afedorov/freebsd-develop/sys/kern/uipc_socket.c:1705
#16 0xffffffff80c6e98d in kern_sendit (td=<optimized out>, s=3,
mp=0xfffffe027869aa80, flags=0, control=<optimized out>, segflg=UIO_USERSPACE)
    at /afedorov/freebsd-develop/sys/kern/uipc_syscalls.c:798
#17 0xffffffff80c6ed35 in sendit (td=0xfffffe0277d02300, s=<optimized out>,
mp=0xfffffe027869aa80, flags=<optimized out>) at
/afedorov/freebsd-develop/sys/kern/uipc_syscalls.c:723
#18 0xffffffff80c6eb4d in sys_sendto (td=<unavailable>, uap=<optimized out>) at
/afedorov/freebsd-develop/sys/kern/uipc_syscalls.c:841
#19 0xffffffff8106d8f8 in syscallenter (td=<optimized out>) at
/afedorov/freebsd-develop/sys/amd64/amd64/../../kern/subr_syscall.c:162
#20 amd64_syscall (td=0xfffffe0277d02300, traced=0) at
/afedorov/freebsd-develop/sys/amd64/amd64/trap.c:1162
#21 <signal handler called>
#22 0x0000000800475c3a in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffce08
(kgdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to