qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Stuart Anderson <anderson@netsweng.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] semaphore syscalls - refresh
Date: Sat, 31 Mar 2007 19:58:08 +0100	[thread overview]
Message-ID: <20070331185808.GB24690@networkno.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0703292124520.514@trantor.stuart.netsweng.com>

Stuart Anderson wrote:
> 
> This is a refresh of a prior patch to fix the semaphore system calls
> sem*() in user-linux mode. Some additional cases have been dealt with,
> and a small amount of code re-arrainging to prepare for the EFAULT patch.
> Tested using Linux Test Project in the target.
[snip]
> +static inline void target_to_host_semun(unsigned long cmd,
> +                                        union semun *host_su,
> +                                        target_ulong target_addr,
> +                                        struct semid_ds *ds)
> +{
> +    union target_semun *target_su;
> +
> +    switch( cmd ) {
> +	case GETALL:
> +	case SETALL:
> +	case IPC_STAT:
> +	case IPC_SET:
> +           lock_user_struct(target_su, target_addr, 1);
> +	   target_to_host_semid_ds(ds,target_su->buf);
> +	   host_su->buf = ds;
> +           unlock_user_struct(target_su, target_addr, 0);
> +	   break;

I don't see how this can work with target_su being an uninitialized pointer.


Thiemo

  reply	other threads:[~2007-03-31 19:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-30  1:30 [Qemu-devel] [PATCH] semaphore syscalls - refresh Stuart Anderson
2007-03-31 18:58 ` Thiemo Seufer [this message]
2007-04-01  1:18   ` Stuart Anderson
2007-04-17 20:58     ` Stuart Anderson

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=20070331185808.GB24690@networkno.de \
    --to=ths@networkno.de \
    --cc=anderson@netsweng.com \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).