All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rlandley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
To: Alexey Dobriyan <adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Kir Kolyshkin <kir-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>,
	Tim Spriggs <tims-DAzCR1AAk2Rg9hUCZPvPmw@public.gmane.org>,
	Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Trond Myklebust
	<Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 3/3] Compare namespaces when comparing addresses in auth_unix cache.
Date: Mon, 11 Apr 2011 12:45:02 -0500	[thread overview]
Message-ID: <4DA33E1E.701__24038.5155463175$1302544055$gmane$org@parallels.com> (raw)
In-Reply-To: <BANLkTi=sh1CB+e1EhU-c-Bs3BCszWEBTMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 04/11/2011 08:57 AM, Alexey Dobriyan wrote:
> On Mon, Apr 11, 2011 at 4:36 PM, Serge E. Hallyn <serge-A9i7LUbDfNHQT0dZR+AlfA@public.gmane.org> wrote:
> 
>> Besides use-after-free, the other concern is an invalid net_eq()
>> result due to the * being re-used for a new netns.
> 
> Exactly.
> 
> "struct net" dies last, no exceptions, anything different is a disaster.

Actually the patch turns out to be irrelevant because Pavel made the
whole thing into a pernet subsystem, so it was already fixed in a
different way.  (Commit 2f72c9b7.  My bad, I initially started working
against an NFS tree with an older kernel version, this fix was to a
different source file so my patch still applied, and I just regression
tested that it worked, not that it still failed without it.  Just caught
it now.)

I actually did talk about addressing potential reuse of the net * in my
email with Stanislav (point of the patch was to allow one cache to
maintain two different contexts at the same time; a situation that
changed the meaning of an existing cache entry by requiring the old
context to go away didn't introduce any new problems that a single
context didn't already have due to DNAT, servers moving, administrators
changing credentials on the server).  But sort of a moot point now.

I believe the third patch can be dropped entirely.

Rob

  parent reply	other threads:[~2011-04-11 17:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-31  7:48 [PATCH 3/3] Compare namespaces when comparing addresses in auth_unix cache Rob Landley
     [not found] ` <4D9431B3.2070305-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-04-05  3:46   ` Serge E. Hallyn
2011-04-05  3:46 ` Serge E. Hallyn
     [not found]   ` <20110405034641.GC6764-A9i7LUbDfNHQT0dZR+AlfA@public.gmane.org>
2011-04-08 15:08     ` Rob Landley
2011-04-08 15:08   ` Rob Landley
     [not found]     ` <4D9F24F2.9020603-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-04-11 13:29       ` Rob Landley
2011-04-11 13:29     ` Rob Landley
     [not found]       ` <4DA30222.5040902-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-04-11 13:36         ` Serge E. Hallyn
2011-04-11 13:36       ` Serge E. Hallyn
2011-04-11 13:57         ` Alexey Dobriyan
     [not found]           ` <BANLkTi=sh1CB+e1EhU-c-Bs3BCszWEBTMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-11 17:45             ` Rob Landley [this message]
2011-04-11 17:45           ` Rob Landley
     [not found]         ` <20110411133602.GA5321-A9i7LUbDfNHQT0dZR+AlfA@public.gmane.org>
2011-04-11 13:57           ` Alexey Dobriyan
2011-03-31  7:48 Rob Landley

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='4DA33E1E.701__24038.5155463175$1302544055$gmane$org@parallels.com' \
    --to=rlandley-bzqdu9zft3wakbo8gow8eq@public.gmane.org \
    --cc=Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org \
    --cc=adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=kir-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tims-DAzCR1AAk2Rg9hUCZPvPmw@public.gmane.org \
    --cc=xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.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.