All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG?] possible recursive locking detected
@ 2006-07-26 16:05 Rolf Eike Beer
  2006-07-27  5:53 ` Andrew Morton
  0 siblings, 1 reply; 20+ messages in thread
From: Rolf Eike Beer @ 2006-07-26 16:05 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2052 bytes --]

Hi,

I did some memory stress test (allocating and mlock()ing a huge number of 
pages) from userspace. At the very beginning of that I got that error long 
before the system got unresponsible and the oom killer dropped in.

Eike

=============================================
[ INFO: possible recursive locking detected ]
kded/5304 is trying to acquire lock:
 (&inode->i_mutex){--..}, at: [<c11f476e>] mutex_lock+0x21/0x24

but task is already holding lock:
 (&inode->i_mutex){--..}, at: [<c11f476e>] mutex_lock+0x21/0x24

other info that might help us debug this:
3 locks held by kded/5304:
 #0:  (&inode->i_mutex){--..}, at: [<c11f476e>] mutex_lock+0x21/0x24
 #1:  (shrinker_rwsem){----}, at: [<c1046312>] shrink_slab+0x25/0x136
 #2:  (&type->s_umount_key#14){----}, at: [<c106be2e>] prune_dcache+0xf6/0x144

stack backtrace:
 [<c1003aa9>] show_trace_log_lvl+0x54/0xfd
 [<c1004915>] show_trace+0xd/0x10
 [<c100492f>] dump_stack+0x17/0x1c
 [<c102e0e1>] __lock_acquire+0x753/0x99c
 [<c102e5ac>] lock_acquire+0x4a/0x6a
 [<c11f4609>] __mutex_lock_slowpath+0xb0/0x1f4
 [<c11f476e>] mutex_lock+0x21/0x24
 [<f0854fc4>] ntfs_put_inode+0x3b/0x74 [ntfs]
 [<c106cf3f>] iput+0x33/0x6a
 [<c106b707>] dentry_iput+0x5b/0x73
 [<c106bd15>] prune_one_dentry+0x56/0x79
 [<c106be42>] prune_dcache+0x10a/0x144
 [<c106be95>] shrink_dcache_memory+0x19/0x31
 [<c10463bd>] shrink_slab+0xd0/0x136
 [<c1047494>] try_to_free_pages+0x129/0x1d5
 [<c1043d91>] __alloc_pages+0x18e/0x284
 [<c104044b>] read_cache_page+0x59/0x131
 [<c109e96f>] ext2_get_page+0x1c/0x1ff
 [<c109ebc4>] ext2_find_entry+0x72/0x139
 [<c109ec99>] ext2_inode_by_name+0xe/0x2e
 [<c10a1cad>] ext2_lookup+0x1f/0x65
 [<c1064661>] do_lookup+0xa0/0x134
 [<c1064e9a>] __link_path_walk+0x7a5/0xbe4
 [<c1065329>] link_path_walk+0x50/0xca
 [<c106586d>] do_path_lookup+0x212/0x25a
 [<c1065da9>] __user_walk_fd+0x2d/0x41
 [<c10600bd>] vfs_stat_fd+0x19/0x40
 [<c10600f5>] vfs_stat+0x11/0x13
 [<c1060826>] sys_stat64+0x14/0x2a
 [<c1002845>] sysenter_past_esp+0x56/0x8d

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [bug]: possible recursive locking detected
@ 2016-12-07 16:11 Yclept Nemo
  2016-12-07 21:49 ` Liu Bo
  0 siblings, 1 reply; 20+ messages in thread
From: Yclept Nemo @ 2016-12-07 16:11 UTC (permalink / raw)
  To: linux-btrfs

kernel version: drm-next x86_64
abrt (fedora) bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1402453
dmesg snippet (the full dmesg is 15Mb):

kernel: =============================================
kernel: [ INFO: possible recursive locking detected ]
kernel: 4.9.0-0.rc8.git0.1.fc25.x86_64 #1 Not tainted
kernel: ---------------------------------------------
kernel: gvfsd-metadata/1397 is trying to acquire lock:
kernel:  (
kernel: &ei->log_mutex
kernel: ){+.+...}
kernel: , at:
kernel: [<ffffffffc05f53f2>] btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:
        but task is already holding lock:
kernel:  (
kernel: &ei->log_mutex
kernel: ){+.+...}
kernel: , at:
kernel: [<ffffffffc05f53f2>] btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:
        other info that might help us debug this:
kernel:  Possible unsafe locking scenario:
kernel:        CPU0
kernel:        ----
kernel:   lock(
kernel: &ei->log_mutex
kernel: );
kernel:   lock(
kernel: &ei->log_mutex
kernel: );
kernel:
         *** DEADLOCK ***
kernel:  May be due to missing lock nesting notation
kernel: 3 locks held by gvfsd-metadata/1397:
kernel:  #0:
kernel:  (
kernel: &type->i_mutex_dir_key
kernel: #3
kernel: ){++++++}
kernel: , at:
kernel: [<ffffffffc05c3de3>] btrfs_sync_file+0x163/0x4c0 [btrfs]
kernel:  #1:
kernel:  (
kernel: sb_internal
kernel: ){.+.+.+}
kernel: , at:
kernel: [<ffffffffc05aaa16>] start_transaction+0x2f6/0x530 [btrfs]
kernel:  #2:
kernel:  (
kernel: &ei->log_mutex
kernel: ){+.+...}
kernel: , at:
kernel: [<ffffffffc05f53f2>] btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:
        stack backtrace:
kernel: CPU: 0 PID: 1397 Comm: gvfsd-metadata Not tainted
4.9.0-0.rc8.git0.1.fc25.x86_64 #1
kernel: Hardware name:    /LP NF4 Series, BIOS 6.00 PG 01/25/2005
kernel:  ffffb5c3c383b760 ffffffffa64772e3 ffffffffa7be05e0 ffff96512b328000
kernel:  ffffb5c3c383b828 ffffffffa611231e ffffb5c3c383b780 ffffffff00000003
kernel:  00000000c383b7a8 ffffffffa74e5600 6629c0631375af20 ffff96512b328ca8
kernel: Call Trace:
kernel:  [<ffffffffa64772e3>] dump_stack+0x86/0xc3
kernel:  [<ffffffffa611231e>] __lock_acquire+0x78e/0x1290
kernel:  [<ffffffffa60ed4b0>] ? sched_clock_cpu+0x90/0xc0
kernel:  [<ffffffffa691395e>] ? mutex_unlock+0xe/0x10
kernel:  [<ffffffffa6113286>] lock_acquire+0xf6/0x1f0
kernel:  [<ffffffffc05f53f2>] ? btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:  [<ffffffffa6912ce6>] mutex_lock_nested+0x86/0x3f0
kernel:  [<ffffffffc05f53f2>] ? btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:  [<ffffffffc060bb05>] ? __btrfs_release_delayed_node+0x75/0x1c0 [btrfs]
kernel:  [<ffffffffc05f53f2>] ? btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:  [<ffffffffc060d999>] ?
btrfs_commit_inode_delayed_inode+0xe9/0x130 [btrfs]
kernel:  [<ffffffffc05f53f2>] btrfs_log_inode+0x162/0x1190 [btrfs]
kernel:  [<ffffffffa60e16fa>] ? __might_sleep+0x4a/0x80
kernel:  [<ffffffffc05f5fa8>] btrfs_log_inode+0xd18/0x1190 [btrfs]
kernel:  [<ffffffffa60ed3b7>] ? sched_clock_local+0x17/0x80
kernel:  [<ffffffffc0635dc7>] log_new_dir_dentries+0x1e1/0x4c0 [btrfs]
kernel:  [<ffffffffc05f6d48>] btrfs_log_inode_parent+0x898/0x940 [btrfs]
kernel:  [<ffffffffa62ca879>] ? dget_parent+0x99/0x2a0
kernel:  [<ffffffffc05f7d92>] btrfs_log_dentry_safe+0x62/0x80 [btrfs]
kernel:  [<ffffffffc05c3f92>] btrfs_sync_file+0x312/0x4c0 [btrfs]
kernel:  [<ffffffffa62eb6db>] vfs_fsync_range+0x4b/0xb0
kernel:  [<ffffffffa62eb79d>] do_fsync+0x3d/0x70
kernel:  [<ffffffffa62eba60>] SyS_fsync+0x10/0x20
kernel:  [<ffffffffa6917741>] entry_SYSCALL_64_fastpath+0x1f/0xc2

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-12-07 21:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-26 16:05 [BUG?] possible recursive locking detected Rolf Eike Beer
2006-07-27  5:53 ` Andrew Morton
2006-07-27  6:51   ` Nick Piggin
2006-07-27  7:15     ` Anton Altaparmakov
2006-07-27  7:38       ` Andrew Morton
2006-07-27  8:19         ` Anton Altaparmakov
2006-07-27  8:53           ` Andrew Morton
2006-07-27  9:28             ` Anton Altaparmakov
2006-07-27  9:46               ` Ingo Molnar
2006-07-27 14:31                 ` Anton Altaparmakov
2006-07-27 14:45                   ` Ingo Molnar
2006-07-27 18:04                     ` Andrew Morton
2006-07-27  9:18           ` Nick Piggin
2006-07-27  9:35             ` Anton Altaparmakov
2006-07-27 10:02               ` Nick Piggin
2006-07-27 12:30                 ` Anton Altaparmakov
2006-07-27  7:24     ` Andrew Morton
2006-07-27  7:29   ` Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2016-12-07 16:11 [bug]: " Yclept Nemo
2016-12-07 21:49 ` Liu Bo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.