All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "Brian L." <bluczkie@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Buffer Overrun -> Kernel Explosion
Date: Wed, 03 May 2006 13:42:12 +0200	[thread overview]
Message-ID: <44589714.10800@domain.hid> (raw)
In-Reply-To: <6ee4c8380604272202q3109a3b9n71e0327de76730b8@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]

Brian L. wrote:
> I'm finally set up with netconsole to catch panics/crashes when they
> happen so now I can report more information on the one I alluded to a
> week or two ago in my "General Question.." thread.
> 
> What I did to cause it was write past the end of a buffer returned by
> rt_queue_alloc. I'm not entirely sure if this message came at the
> moment of the write (unlikely, IMHO) or later when more xnheap
> activity took place. The crash popped up in several different ways
> depending on what code paths I enabled/disabled.
> 
> What concerns me is that polluting an xnheap can bring the system to
> its knees so harshly. I can see why it could be *very* hard to police
> this sort of problem without destroying the performance of xnheap, so
> it wouldn't surprise me if this is "normal". Still, though, it's sad
> that user-space code can bring the system down after something as
> innocent as a fencepost error in a string copy routine...
> 
> Thoughts? I've pasted the console dump below.
> 

I remember that control structures and data are tightly knotted in
xnheaps, but I agree with you that this should not lead so easily to
such crashes for user space apps. Maybe some magic number check could
help to reduce the chance for now.

A cleaner long-term solution would be to decouple both regions.
Philippe, is this feasible (I'm not that deep in the internals of xnheap)?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-05-03 11:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-28  5:02 [Xenomai-help] Buffer Overrun -> Kernel Explosion Brian L.
2006-05-03 11:42 ` Jan Kiszka [this message]
2006-05-03 12:29   ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44589714.10800@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=bluczkie@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.