From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Jan Beulich <JBeulich@suse.com>, xen-devel <xen-devel@lists.xen.org>
Cc: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Subject: Re: [PATCH 04/11] tmem: check for a valid client ("domain") in the save subops
Date: Wed, 5 Sep 2012 09:39:05 -0700 (PDT) [thread overview]
Message-ID: <bc1a0f67-c2a5-41d4-ae18-be90bce48230@default> (raw)
In-Reply-To: <5047633A0200007800098DCD@nat28.tlf.novell.com>
> From: Jan Beulich [mailto:JBeulich@suse.com]
> Sent: Wednesday, September 05, 2012 6:36 AM
> To: xen-devel
> Cc: Dan Magenheimer; Zhenzhong Duan
> Subject: [PATCH 04/11] tmem: check for a valid client ("domain") in the save subops
>
> This is part of XSA-15 / CVE-2012-3497.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
> --- a/xen/common/tmem.c
> +++ b/xen/common/tmem.c
> @@ -2379,12 +2379,18 @@ static NOINLINE int tmemc_save_subop(int
> rc = MAX_POOLS_PER_DOMAIN;
> break;
> case TMEMC_SAVE_GET_CLIENT_WEIGHT:
> + if ( client == NULL )
> + break;
> rc = client->weight == -1 ? -2 : client->weight;
> break;
> case TMEMC_SAVE_GET_CLIENT_CAP:
> + if ( client == NULL )
> + break;
> rc = client->cap == -1 ? -2 : client->cap;
> break;
> case TMEMC_SAVE_GET_CLIENT_FLAGS:
> + if ( client == NULL )
> + break;
> rc = (client->compress ? TMEM_CLIENT_COMPRESS : 0 ) |
> (client->was_frozen ? TMEM_CLIENT_FROZEN : 0 );
> break;
> @@ -2408,6 +2414,8 @@ static NOINLINE int tmemc_save_subop(int
> *uuid = pool->uuid[1];
> rc = 0;
> case TMEMC_SAVE_END:
> + if ( client == NULL )
> + break;
> client->live_migrating = 0;
> if ( !list_empty(&client->persistent_invalidated_list) )
> list_for_each_entry_safe(pgp,pgp2,
>
>
>
prev parent reply other threads:[~2012-09-05 16:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 12:35 [PATCH 04/11] tmem: check for a valid client ("domain") in the save subops Jan Beulich
2012-09-05 16:39 ` Dan Magenheimer [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=bc1a0f67-c2a5-41d4-ae18-be90bce48230@default \
--to=dan.magenheimer@oracle.com \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xen.org \
--cc=zhenzhong.duan@oracle.com \
/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).