[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081123105211.GC30453@elte.hu>
Date: Sun, 23 Nov 2008 11:52:11 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Török Edwin <edwintorok@...il.com>
Cc: srostedt@...hat.com, a.p.zijlstra@...llo.nl, sandmann@...mi.au.dk,
linux-kernel@...r.kernel.org, viro@...IV.linux.org.uk
Subject: Re: [PATCH 2/3] tracing/stack-tracer: fix locking
* Török Edwin <edwintorok@...il.com> wrote:
> + down_read(&mm->mmap_sem);
> + vma = find_vma(mm, ip);
> if (vma) {
> file = vma->vm_file;
> vmstart = vma->vm_start;
> }
> + up_read(&mm->mmap_sem);
> }
> if (file) {
> ret = trace_seq_path(s, &file->f_path);
and now it's "file" that is held without a reference and possibly
racy.
Ingo
--
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