Messages in this thread | | | From | David Howells <> | Subject | Re: Fw: Badness around put_cred() | Date | Fri, 27 Jan 2012 18:25:08 +0000 |
| |
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
| |