[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6752.1327688708@redhat.com>
Date: Fri, 27 Jan 2012 18:25:08 +0000
From: David Howells <dhowells@...hat.com>
To: Robert Święcki <robert@...ecki.net>
Cc: dhowells@...hat.com, Serge Hallyn <serge.hallyn@...onical.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"Paul E. McKenney" <paulmck@...ibm.com>,
linux-kernel@...r.kernel.org
Subject: Re: Fw: Badness around put_cred()
One thing you could try doing is making do_notify_resume() check the credential
subscriptions on the process as it's about to resume userspace. The following
assertions both ought to hold:
BUG_ON(current->cred != current->real_cred);
BUG_ON(atomic_read(current->cred->usage) >= 2);
And then set TIF_NOTIFY_RESUME in put_cred() and get_new_cred().
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists