On 4.7.2017. 13:06, Hrvoje Popovski wrote:
> On 4.7.2017. 12:33, Martin Pieuchot wrote:
>> On 04/07/17(Tue) 01:49, Hrvoje Popovski wrote:
>>> Hi all,
>>>
>>> with cvs tree (with or without bluhm@ uipc_syscalls patch) fetched few
>>> minutes ago i'm getting panic below. would show witness be of any good?
>>>
>>>
>>> Setup is quite standard, carp, pf, pfsync, isakmpd ....
>>
>> Thanks for the report. IPsec is here again, this time with pfsync.
>>
>>> # panic: kernel diagnostic assertion "_kernel_lock_held()" failed: file
>>> "/usr/src/sys/netinet/ip_output.c", line 234
>>
>> Diff below should prevent and document the problem.
>
>
> Yes, no more panic with this diff ...
>
> Thank you ...
>
>
and i'm to quick ..
here's panic when killing isakmpd on other box
# panic: lock (kernel_lock) &kernel_lock not locked @
/usr/src/sys/kern/kern_lock.c:82
Stopped at db_enter+0x9: leave
TID PID UID PRFLAGS PFLAGS CPU COMMAND
258791 23234 0 0x100002 0 2 logger
437405 70421 76 0x100012 0 3 tcpdump
227708 84289 73 0x100010 0 6 syslogd
* 28487 40454 0 0x14000 0x200 4 pfpurge
165000 68771 0 0x14000 0x200 7 softnet
145173 9108 0 0x14000 0x200 1 systq
db_enter(ffffffff8178040e,ffff80002a197ce0,10,ffff80002a197cc0,286,8) at
db_ent
er+0x9
panic(ffffffff818d5cf8,ffffffff81b32340,ffffffff8185dd2e,ffff80002a182b18,fffff
fff81af6ca8,c2a197e20) at panic+0x102
witness_unlock(ffffffff81af6ca8,8,ffffffff8185dd2e,52,0,0) at
witness_unlock+0x
30c
___mp_unlock(ffffffff81af6aa0,ffffffff8185dd2e,52,0,7,0) at
___mp_unlock+0x44
pf_purge_thread(ffff80002a1828e8,8,ffff80002a1828e8,ffffffff8173ab30,0,0)
at pf
_purge_thread+0xc3
end trace frame: 0x0, count: 10
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.