Network stack locking question
Ivo Vachkov
ivo.vachkov at gmail.com
Tue Sep 4 02:34:52 PDT 2007
Hello all,
I'm currently working on some ipv6 related code. At some point I have
to do a routing lookup and I meet following problem:
panic: mtx_lock() of spin mutex 'some_strange_chars' ../../../net/route.c:114
cpuid = 0
KDB: enter: panic
[thread pid 17 tid 100021 ]
Stopped at kdb_enter+0x31: leave
According to the debugger the events happen in the following order:
ether_demux() at ether_demux+
my_func() at my_func+
rtalloc_ign() at rtalloc_ign+
_mtx_lock_flags() at _mtx_lock_flags+
panic() at panic+
I do not include GIANT_REQUIRED in my code. Can you propose a solution
or a pointer to information where I can make myself familiar with the
networking code locking ... besides 'man 9 locking' and related.
Thank you very much in advance.
Ivo
More information about the freebsd-net
mailing list