All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Carlos Eduardo de Brito Novaes <carlosnov@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Trouble with rtdm timers and events
Date: Thu, 11 Aug 2011 20:01:18 +0200	[thread overview]
Message-ID: <4E4418EE.8000005@domain.hid> (raw)
In-Reply-To: <201108111456.24208.carlosnov@domain.hid>

On 08/11/2011 07:56 PM, Carlos Eduardo de Brito Novaes wrote:
> Hello again,
> 
> I did what you said, changed the open/close to non real time, removed every 
> portion of code that is not related with the fault (the read_rt is still there 
> since is where the problem arrises and also another ioctl to start timer since 
> the open/close are moved out of real time context). There is also the wait 
> ioctl to show that the code works when wait is done inside ioctl.
> The problem persists, but no hangs perceived. Just the application returns too 
> fast and there is the kernel message on NULL pointer derreference, so I also 
> tried to recompile with another kernel version, the vanilla 2.6.38-8 from 
> kernel.org and the adeos patch (on the previous tests I was using the same 
> with additional ubuntu patches). Even now the app returns imediately after 
> call read with rtdm_event_wait and there is the same kernel log.
> I dont think there is any memory corruption due to the module code since there 
> is no dynamic allocations, little pointer operations mainly related to the 
> context hadler witch is allocated by xenomai on rtdm_dev_register.
> I send you the new tarball.
> 
> Thanks for your support.

The copy_to_user is still overflowing. And in fact, it is probably the
cause of the bug you observe, I had not read your example carefully.

-- 
                                                                Gilles.


  reply	other threads:[~2011-08-11 18:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 17:49 [Xenomai-help] Trouble with rtdm timers and events Carlos Eduardo de Brito Novaes
2011-08-10 19:57 ` Carlos Eduardo de Brito Novaes
2011-08-10 21:10   ` Carlos Eduardo de Brito Novaes
2011-08-11  7:39     ` Gilles Chanteperdrix
2011-08-11 14:31       ` Carlos Eduardo de Brito Novaes
2011-08-11 15:00         ` Gilles Chanteperdrix
2011-08-11 17:56           ` Carlos Eduardo de Brito Novaes
2011-08-11 18:01             ` Gilles Chanteperdrix [this message]
2011-08-11 18:12               ` Carlos Eduardo de Brito Novaes
2011-08-11 19:34                 ` Gilles Chanteperdrix
2011-08-11 22:28                   ` Carlos Eduardo de Brito Novaes

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=4E4418EE.8000005@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=carlosnov@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.