Some question about "security context of a task"
Date: Wed Feb 01 2012 - 02:12:06 EST
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) >=
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?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/