From: Jens Axboe <jaxboe@fusionio.com>
To: "paulmck@linux.vnet.ibm.com" <paulmck@linux.vnet.ibm.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Andrew Morton <akpm@linux-foundation.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>,
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Subject: Re: [PATCH] ioprio: rcu_read_lock/unlock protect find_task_by_vpid call (V2)
Date: Tue, 9 Nov 2010 21:20:50 +0100 [thread overview]
Message-ID: <4CD9AD22.9030006@fusionio.com> (raw)
In-Reply-To: <20101109201557.GS4032@linux.vnet.ibm.com>
On 2010-11-09 21:15, Paul E. McKenney wrote:
> On Tue, Nov 09, 2010 at 12:21:24PM +0200, Sergey Senozhatsky wrote:
>> Commit 4221a9918e38b7494cee341dda7b7b4bb8c04bde "Add RCU check for
>> find_task_by_vpid()" introduced rcu_lockdep_assert to find_task_by_pid_ns..
>> Assertion failed in sys_ioprio_get. The patch is fixing assertion
>> failure in ioprio_set as well.
>>
>> kernel/pid.c:419 invoked rcu_dereference_check() without protection!
>>
>> stack backtrace:
>> Pid: 4254, comm: iotop Not tainted
>> Call Trace:
>> [<ffffffff810656f2>] lockdep_rcu_dereference+0xaa/0xb2
>> [<ffffffff81053c67>] find_task_by_pid_ns+0x4f/0x68
>> [<ffffffff81053c9d>] find_task_by_vpid+0x1d/0x1f
>> [<ffffffff811104e2>] sys_ioprio_get+0x50/0x2da
>> [<ffffffff81002182>] system_call_fastpath+0x16/0x1b
>>
>> V2: rcu critical section expanded according to comment by Paul E. McKenne:
>> | Looking over the patch again, the scope of the RCU read-side critical
>> | section needs to expand to cover the use of the pointer as well as the
>> | call to find_task_by_vpid().
>
> Thank you, Sergey!
>
> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
>
> Jens, are you willing to take this one?
Certainly, thanks guys!
--
Jens Axboe
next prev parent reply other threads:[~2010-11-09 20:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-09 10:21 [PATCH] ioprio: rcu_read_lock/unlock protect find_task_by_vpid call (V2) Sergey Senozhatsky
2010-11-09 20:15 ` Paul E. McKenney
2010-11-09 20:20 ` Jens Axboe [this message]
2010-11-09 20:48 ` Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CD9AD22.9030006@fusionio.com \
--to=jaxboe@fusionio.com \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulmck@linux.vnet.ibm.com \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=sergey.senozhatsky@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox