All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] local_irq_save/local_irq_restore in real-time interrupt handler and slab corruption.
@ 2007-11-13 13:56 Gilles Chanteperdrix
  2007-11-13 14:17 ` Jan Kiszka
  0 siblings, 1 reply; 14+ messages in thread
From: Gilles Chanteperdrix @ 2007-11-13 13:56 UTC (permalink / raw)
  To: xenomai-core

Hi,

I am chasing a slab corruption bug which happens on a Xenomai+RTnet
enabled box under heavy non real-time network load (which passes
through rtnet and rtmac_vnic to Linux which does NAT and resend it to
another rtmac_vnic). When reading some I-pipe tracer traces, I
remarked that I forgot to replace a local_irq_save/local_irq_restore
with local_irq_save_hw/local_irq_restore_hw in a real-time interrupt
handler. I fixed this bug, and the slab corruption seems to be gone.

So, my question is: is it possible ? I mean, if local_irq_restore in
the real-time interrupt handler calls __ipipe_sync_stage, the root
domain is not stalled, so there should be no problem Linux-wise
playing root domain interrupts, I would rather expect the I-pipe state
to be jammed (after all, we are probably reentering functions that
should not be reentered), not Linux state.

-- 
                                               Gilles Chanteperdrix


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-11-26 10:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 13:56 [Xenomai-core] local_irq_save/local_irq_restore in real-time interrupt handler and slab corruption Gilles Chanteperdrix
2007-11-13 14:17 ` Jan Kiszka
2007-11-13 14:34   ` Gilles Chanteperdrix
2007-11-13 17:10     ` Philippe Gerum
2007-11-13 17:24       ` Gilles Chanteperdrix
2007-11-13 17:44         ` Philippe Gerum
2007-11-13 17:50           ` Gilles Chanteperdrix
2007-11-13 18:02             ` Philippe Gerum
2007-11-26 10:42               ` Gilles Chanteperdrix
2007-11-13 18:04           ` Philippe Gerum
2007-11-13 17:45         ` Jan Kiszka
2007-11-13 17:51           ` Gilles Chanteperdrix
2007-11-13 17:54             ` Jan Kiszka
2007-11-13 18:33               ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.