lkml.org 
[lkml]   [2012]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Fw: Badness around put_cred()
Date

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


\
 
 \ /
  Last update: 2012-01-27 19:27    [W:0.032 / U:3.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site