[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150720194051.GA21204@redhat.com>
Date: Mon, 20 Jul 2015 21:40:51 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Jiri Slaby <jslaby@...e.cz>
Cc: Patrick Donnelly <batrick@...bytes.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
open list <linux-kernel@...r.kernel.org>,
openSUSE Kernel <opensuse-kernel@...nsuse.org>
Subject: Re: [PATCH v4] tty: add missing rcu_read_lock for task_pgrp
On 07/20, Jiri Slaby wrote:
>
> CC Oleg
>
> On 07/13/2015, 12:51 AM, Patrick Donnelly wrote:
> > task_pgrp requires an rcu or tasklist lock to be obtained if the returned pid
> > is to be dereferenced, which kill_pgrp does. Obtain an RCU lock for the
> > duration of use.
Look like, this change is right.
But perhaps we should a simple helper for drivers/tty/ which takes rcu
lock, sends a signal to task_pgrp(current), and sets TIF_SIGPENDING?
I won't insist of course, I am fine either way.
Oleg.
--
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