[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOS58YNOGggVmTazN86HHO7p7uNn78O19AOp0_9NmhjaZheXCg@mail.gmail.com>
Date: Sat, 30 Mar 2013 09:17:51 -0700
From: Tejun Heo <tj@...nel.org>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Jens Axboe <axboe@...nel.dk>,
Andrew Morton <akpm@...ux-foundation.org>,
Jan Kara <jack@...e.cz>, david@...morbit.com,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] kthread: implement probe_kthread_data()
Hello, Oleg.
On Sat, Mar 30, 2013 at 7:36 AM, Oleg Nesterov <oleg@...hat.com> wrote:
> > +void *probe_kthread_data(struct task_struct *task)
> > +{
> > + struct kthread *kthread = to_kthread(task);
> > + void *data = NULL;
> > +
> > + probe_kernel_read(&data, &kthread->data, sizeof(data));
> > + return data;
> > +}
>
> OK, but we can simply check ->vfork_done != NULL ?
Hmm... what if ->vfork_done is pointing to some weird place?
Thanks.
--
tejun
--
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