[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CANudz+snKSchS6yY8+w9GyogcwstEEAopmESJbLs=hkCSJo5XA@mail.gmail.com>
Date: Wed, 1 Feb 2012 15:12:06 +0800
From: loody <miloody@...il.com>
To: LKML <linux-kernel@...r.kernel.org>,
kernelnewbies@...nelnewbies.org
Subject: Some question about "security context of a task"
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,
--
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