kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Some question about "security context of a task"
@ 2012-02-01  7:12 loody
  2012-02-01 15:12 ` Mulyadi Santosa
  0 siblings, 1 reply; 3+ messages in thread
From: loody @ 2012-02-01  7:12 UTC (permalink / raw)
  To: kernelnewbies

hi all:
I found there is a user_struct, user, located at struct cred.
is it possible be null?
My platform sometimes panic when using kernel_thread to creating a
thread for running.

below is the place it happen

if (atomic_read(&p->real_cred->user->processes) >=
             p->signal->rlim[RLIMIT_NPROC].rlim_cur) {
after checking the parameter, I found p->real_cred->user is NULL.

When and how we allocate/destroy this parameter?
Does that mean we should some basic check before calling kernel_thread?

-- 
Regards,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-01 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01  7:12 Some question about "security context of a task" loody
2012-02-01 15:12 ` Mulyadi Santosa
2012-02-01 16:24   ` loody

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).