tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Deferred freeing of kauth_cred_ts



Thor Lancelot Simon <tls%panix.com@localhost> wrote:
> > > The question is - why freeing is performed from interrupt context?
> > 
> > I couldn't find where sofree() might be reached from interrupt
> > context, but I might be missing something.
> 
> Neither could I.  Neither could Andy.  I think we both tripped over
> the fact, unfortunately, that it could in fact happen, though.

I guess it can happen on things like tcp_close(), e.g. when connection
timeouts and it releases the last reference to the closed socket.

But even without looking much at the code - why it would be problematic
to trigger some cases with KASSERT(!cpu_intr_p() && !cpu_softintr_p())?

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index