Re: [net] protecting interfaces from races between control and d

看板FB_current作者時間12年前 (2013/08/09 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串29/29 (看更多)
Yup, it's an incredibly unsafe pattern. It also leads to the pattern where auxiliary processing is handed off to a taskqueue, which then interleaves the lock ownership with the ithread and produces out-of-order packet reception. Scott On Aug 8, 2013, at 5:18 PM, Adrian Chadd <adrian@freebsd.org> wrote: > .. and it's not just about "saturate the port" with traffic. > > It's also about "what happens if I shut down the MAC whilst I'm in the > process of programming in new RX/TX descriptors?" > > The ath(4) driver had a spectacular behaviour where if you mess things > up the wrong way it will quite happily DMA crap all over the memory of > your running system, leading to quite hilarious bugs. > > > > -adrian _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1I13zFEn (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 29 之 29 篇):
文章代碼(AID): #1I13zFEn (FB_current)