linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some question about "security context of a task"
@ 2012-02-01  7:12 loody
  0 siblings, 0 replies; only message in thread
From: loody @ 2012-02-01  7:12 UTC (permalink / raw)
  To: LKML, 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] only message in thread

only message in thread, other threads:[~2012-02-01  7:12 UTC | newest]

Thread overview: (only message) (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

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