From: Jan Kiszka <jan.kiszka@web.de>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] __get_user/__put_user
Date: Thu, 09 May 2013 21:23:40 +0200 [thread overview]
Message-ID: <518BF7BC.6030406@web.de> (raw)
In-Reply-To: <518BF425.3070504@xenomai.org>
On 2013-05-09 21:08, Gilles Chanteperdrix wrote:
>> Right, but the general pattern for this is
>>
>> obj = xnregistry_fetch(handle)
>> get_nklock()
>> if (valid(obj))
>> do_something_with(obj)
>> put_nklock()
>
>
> I can do that, it avoids the issue with __ipipe_uaccess_might_fault, but:
> - it is not the same guarantee, nothing tells you that obj is the one
> associated with the name you passed to xnregistry_fetch, it may have
> been destroyed and created in the mean time
See my other reply: user mistake, it should not matter.
> - I am not sure we do not have some other places where we call
> copy_from/to_user with irqs off.
Might be the case, but I think so far we should have tried to avoid
faulting under the nklock as we weren't considering this safe enough or
at least good for the worst case latency.
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130509/5563b2b2/attachment.pgp>
next prev parent reply other threads:[~2013-05-09 19:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 20:19 [Xenomai] __get_user/__put_user Gilles Chanteperdrix
2013-03-16 20:25 ` Jan Kiszka
2013-03-16 20:27 ` Gilles Chanteperdrix
2013-03-16 20:28 ` Jan Kiszka
2013-03-16 20:50 ` Gilles Chanteperdrix
2013-05-09 17:32 ` Gilles Chanteperdrix
2013-05-09 17:58 ` Jan Kiszka
2013-05-09 18:02 ` Gilles Chanteperdrix
2013-05-09 18:02 ` Jan Kiszka
2013-05-09 18:03 ` Gilles Chanteperdrix
2013-05-09 18:11 ` Jan Kiszka
2013-05-09 18:27 ` Gilles Chanteperdrix
2013-05-09 18:34 ` Jan Kiszka
2013-05-09 18:36 ` Gilles Chanteperdrix
2013-05-09 18:41 ` Jan Kiszka
2013-05-09 19:08 ` Gilles Chanteperdrix
2013-05-09 19:23 ` Jan Kiszka [this message]
2013-05-09 19:16 ` Gilles Chanteperdrix
2013-05-09 19:20 ` Jan Kiszka
2013-05-09 19:20 ` Philippe Gerum
2013-05-09 19:29 ` Jan Kiszka
2013-05-10 13:16 ` Gilles Chanteperdrix
2013-05-10 13:20 ` Jan Kiszka
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=518BF7BC.6030406@web.de \
--to=jan.kiszka@web.de \
--cc=gilles.chanteperdrix@xenomai.org \
--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.