lkml.org 
[lkml]   [2009]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NFS lockdep lock misordering mmap_sem<->i_mutex_key with 2.6.32-git1
On Mon, Dec 07, 2009 at 09:19:28PM +0900, KOSAKI Motohiro wrote:
> >
> > While booting 2.6.32-git1 on a NFS root box I got the following
> > lockdep warning early at boot. I haven't looked at details.
>
> It seems typical ABBA deadlock.
>
> vfs_readdir [grab i_mutex]
> nfs_readdir
> nfs_do_filldir
> filldir
> copy_to_user
> [page_fault] [grab mmap_sem]
>
> sys_mmap [grab mmap_sem]
> do_mmap_pgoff
> mmap_region
> nfs_file_mmap
> nfs_revalidate_mapping
> nfs_invalidate_mapping [grab i_mutex]
>
> I guess recent lockdep improvement find old bug.

Thanks for the analysis.

I guess should never do copy_*_user while holding i_mutex? There might
be lots of cases like that.

-Andi


\
 
 \ /
  Last update: 2009-12-07 14:23    [W:0.069 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site