From: Jan Kiszka <jan.kiszka@domain.hid>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] rtdm_safe_copy_from_user...
Date: Fri, 19 May 2006 14:17:47 +0200 [thread overview]
Message-ID: <446DB76B.8030106@domain.hid> (raw)
In-Reply-To: <446D92F2.6000706@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 917 bytes --]
Wolfgang Grandegger wrote:
> Hello,
>
> I propose to add the following commonly used RTDM inline functions to
> rtdm_driver.h:
>
> static inline int rtdm_safe_copy_from_user()
> static inline int rtdm_safe_copy_to_user()
Yep, likely a convenient shortcut. Just a minor correction: the full
size should be checked, not just a single-byte range.
Those new services together with updated doc will go into trunk after
release 2.2. There are currently several RTDM extensions pending, so I
prefer to merge the whole packet and increment the revision number only
once.
>
> The attached patch also fixes a bug in rtdm_strncpy_from_user(). I think
> __xn_access_ok() returns a non-zero value if the access is safe. Has it
> ever worked? I don't care about the real name.
Oops, obviously wrong and obviously yet unused. I fixed this in 2.1.x
and trunk.
Thanks for the patches!
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
prev parent reply other threads:[~2006-05-19 12:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 9:42 [Xenomai-core] rtdm_safe_copy_from_user Wolfgang Grandegger
2006-05-19 12:17 ` Jan Kiszka [this message]
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=446DB76B.8030106@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=wg@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.