lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CABXGCsO9Z0qBqa=5c=YeDkm9g=azsBVz4=V0e9tG=eYBCPOcGQ@mail.gmail.com>
Date:	Sat, 6 Feb 2016 15:07:48 +0500
From:	Михаил Гаврилов 
	<mikhail.v.gavrilov@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: possible irq lock inversion dependency detected

Hi! I see this message in my dmesg log.
I don't know how this information is useful for developer.
But I want helps to do Linux kernel better.

[ 1401.201555] =========================================================
[ 1401.201557] [ INFO: possible irq lock inversion dependency detected ]
[ 1401.201559] 4.3.5-300.fc23.x86_64+debug #1 Not tainted
[ 1401.201560] ---------------------------------------------------------
[ 1401.201562] kswapd0/80 just changed the state of lock:
[ 1401.201563]  (&delayed_node->mutex){+.+.-.}, at:
[<ffffffffa084dccd>] __btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.201585] but this lock took another, RECLAIM_FS-unsafe lock in the past:
[ 1401.201586]  (&fs_info->commit_root_sem){+++++.}

               and interrupts could create inverse lock ordering between them.

[ 1401.201590]
               other info that might help us debug this:
[ 1401.201591] Chain exists of:
                 &delayed_node->mutex --> &found->groups_sem -->
&fs_info->commit_root_sem

[ 1401.201596]  Possible interrupt unsafe locking scenario:

[ 1401.201597]        CPU0                    CPU1
[ 1401.201598]        ----                    ----
[ 1401.201599]   lock(&fs_info->commit_root_sem);
[ 1401.201601]                                local_irq_disable();
[ 1401.201602]                                lock(&delayed_node->mutex);
[ 1401.201604]                                lock(&found->groups_sem);
[ 1401.201606]   <Interrupt>
[ 1401.201607]     lock(&delayed_node->mutex);
[ 1401.201609]
                *** DEADLOCK ***

[ 1401.201611] 2 locks held by kswapd0/80:
[ 1401.201612]  #0:  (shrinker_rwsem){++++..}, at:
[<ffffffff811f533b>] shrink_slab.part.41+0x5b/0x540
[ 1401.201620]  #1:  (&type->s_umount_key#57){.+.+..}, at:
[<ffffffff8127130b>] trylock_super+0x1b/0x50
[ 1401.201627]
               the shortest dependencies between 2nd lock and 1st lock:
[ 1401.201636]    -> (&fs_info->commit_root_sem){+++++.} ops: 1323 {
[ 1401.201640]       HARDIRQ-ON-W at:
[ 1401.201642]                           [<ffffffff81107432>]
__lock_acquire+0x912/0x1ba0
[ 1401.201646]                           [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.201648]                           [<ffffffff818643da>]
down_write+0x5a/0xc0
[ 1401.201652]                           [<ffffffffa07dd386>]
btrfs_prepare_extent_commit+0x36/0x120 [btrfs]
[ 1401.201661]                           [<ffffffffa07f633a>]
btrfs_commit_transaction+0x66a/0xbd0 [btrfs]
[ 1401.201671]                           [<ffffffffa07f0f48>]
transaction_kthread+0x208/0x270 [btrfs]
[ 1401.201680]                           [<ffffffff810d1351>]
kthread+0x101/0x120
[ 1401.201683]                           [<ffffffff818673af>]
ret_from_fork+0x3f/0x70
[ 1401.201686]       HARDIRQ-ON-R at:
[ 1401.201687]                           [<ffffffff8110705c>]
__lock_acquire+0x53c/0x1ba0
[ 1401.201690]                           [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.201692]                           [<ffffffff81864331>]
down_read+0x51/0xa0
[ 1401.201695]                           [<ffffffffa07eab4a>]
caching_kthread+0xda/0x360 [btrfs]
[ 1401.201703]                           [<ffffffff810d1351>]
kthread+0x101/0x120
[ 1401.201705]                           [<ffffffff818673af>]
ret_from_fork+0x3f/0x70
[ 1401.201708]       SOFTIRQ-ON-W at:
[ 1401.201709]                           [<ffffffff8110745e>]
__lock_acquire+0x93e/0x1ba0
[ 1401.201712]                           [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.201714]                           [<ffffffff818643da>]
down_write+0x5a/0xc0
[ 1401.201716]                           [<ffffffffa07dd386>]
btrfs_prepare_extent_commit+0x36/0x120 [btrfs]
[ 1401.201724]                           [<ffffffffa07f633a>]
btrfs_commit_transaction+0x66a/0xbd0 [btrfs]
[ 1401.201733]                           [<ffffffffa07f0f48>]
transaction_kthread+0x208/0x270 [btrfs]
[ 1401.201741]                           [<ffffffff810d1351>]
kthread+0x101/0x120
[ 1401.201743]                           [<ffffffff818673af>]
ret_from_fork+0x3f/0x70
[ 1401.201745]       SOFTIRQ-ON-R at:
[ 1401.201747]                           [<ffffffff8110745e>]
__lock_acquire+0x93e/0x1ba0
[ 1401.201749]                           [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.201751]                           [<ffffffff81864331>]
down_read+0x51/0xa0
[ 1401.201754]                           [<ffffffffa07eab4a>]
caching_kthread+0xda/0x360 [btrfs]
[ 1401.201762]                           [<ffffffff810d1351>]
kthread+0x101/0x120
[ 1401.201764]                           [<ffffffff818673af>]
ret_from_fork+0x3f/0x70
[ 1401.201766]       RECLAIM_FS-ON-W at:
[ 1401.201768]                              [<ffffffff811065e9>]
mark_held_locks+0x79/0xa0
[ 1401.201770]                              [<ffffffff8110999b>]
lockdep_trace_alloc+0x7b/0xd0
[ 1401.201773]                              [<ffffffff812474e6>]
kmem_cache_alloc_trace+0x36/0x320
[ 1401.201776]                              [<ffffffff810d1116>]
kthread_create_on_node+0x116/0x250
[ 1401.201778]                              [<ffffffffa07eb68b>]
start_caching+0xdb/0x180 [btrfs]
[ 1401.201786]                              [<ffffffffa07eb7cb>]
btrfs_return_ino+0x9b/0xe0 [btrfs]
[ 1401.201794]                              [<ffffffffa0802d21>]
btrfs_evict_inode+0x621/0x660 [btrfs]
[ 1401.201804]                              [<ffffffff8128c57f>]
evict+0xaf/0x180
[ 1401.201807]                              [<ffffffff8128c8d9>]
iput+0x229/0x2c0
[ 1401.201809]                              [<ffffffff81286608>]
__dentry_kill+0x178/0x1e0
[ 1401.201812]                              [<ffffffff812883a7>]
dput+0x2a7/0x3a0
[ 1401.201815]                              [<ffffffff81280c21>]
SyS_rename+0x311/0x3a0
[ 1401.201817]                              [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.201820]       INITIAL USE at:
[ 1401.201821]                          [<ffffffff811070cd>]
__lock_acquire+0x5ad/0x1ba0
[ 1401.201823]                          [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.201826]                          [<ffffffff818643da>]
down_write+0x5a/0xc0
[ 1401.201828]                          [<ffffffffa07dd386>]
btrfs_prepare_extent_commit+0x36/0x120 [btrfs]
[ 1401.201836]                          [<ffffffffa07f633a>]
btrfs_commit_transaction+0x66a/0xbd0 [btrfs]
[ 1401.201845]                          [<ffffffffa07f0f48>]
transaction_kthread+0x208/0x270 [btrfs]
[ 1401.201853]                          [<ffffffff810d1351>] kthread+0x101/0x120
[ 1401.201855]                          [<ffffffff818673af>]
ret_from_fork+0x3f/0x70
[ 1401.201857]     }
[ 1401.201859]     ... key      at: [<ffffffffa08924a0>]
__key.49471+0x0/0xfffffffffffe3b60 [btrfs]
[ 1401.201868]     ... acquired at:
[ 1401.201869]    [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.201871]    [<ffffffff81864331>] down_read+0x51/0xa0
[ 1401.201874]    [<ffffffffa07d743d>] caching_thread+0x10d/0x4c0 [btrfs]
[ 1401.201881]    [<ffffffffa08294a0>]
btrfs_scrubparity_helper+0x190/0x530 [btrfs]
[ 1401.201892]    [<ffffffffa082995e>] btrfs_cache_helper+0xe/0x10 [btrfs]
[ 1401.201902]    [<ffffffff810c9e40>] process_one_work+0x230/0x6a0
[ 1401.201905]    [<ffffffff810ca2fe>] worker_thread+0x4e/0x450
[ 1401.201907]    [<ffffffff810d1351>] kthread+0x101/0x120
[ 1401.201909]    [<ffffffff818673af>] ret_from_fork+0x3f/0x70

[ 1401.201913]   -> (&caching_ctl->mutex){+.+...} ops: 1478 {
[ 1401.201917]      HARDIRQ-ON-W at:
[ 1401.201918]                         [<ffffffff81107432>]
__lock_acquire+0x912/0x1ba0
[ 1401.201921]                         [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.201923]                         [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.201926]                         [<ffffffffa07d66cb>]
cache_block_group+0x1bb/0x3e0 [btrfs]
[ 1401.201933]                         [<ffffffffa07e2eb3>]
find_free_extent+0x8b3/0xfb0 [btrfs]
[ 1401.201941]                         [<ffffffffa07e3637>]
btrfs_reserve_extent+0x87/0x170 [btrfs]
[ 1401.201949]                         [<ffffffffa07e3826>]
btrfs_alloc_tree_block+0x106/0x4d0 [btrfs]
[ 1401.201956]                         [<ffffffffa07ca0d1>]
__btrfs_cow_block+0x141/0x590 [btrfs]
[ 1401.201963]                         [<ffffffffa07ca6b2>]
btrfs_cow_block+0x112/0x260 [btrfs]
[ 1401.201969]                         [<ffffffffa07ce3a9>]
btrfs_search_slot+0x1e9/0x9f0 [btrfs]
[ 1401.201976]                         [<ffffffffa07d04c1>]
btrfs_insert_empty_items+0x71/0xc0 [btrfs]
[ 1401.201983]                         [<ffffffffa07e75f2>]
insert_with_overflow+0x42/0x120 [btrfs]
[ 1401.201992]                         [<ffffffffa07e777d>]
btrfs_insert_xattr_item+0xad/0x1a0 [btrfs]
[ 1401.201999]                         [<ffffffffa08100bb>]
do_setxattr+0xdb/0x410 [btrfs]
[ 1401.202010]                         [<ffffffffa0810670>]
__btrfs_setxattr+0x80/0xf0 [btrfs]
[ 1401.202019]                         [<ffffffffa0810b1d>]
btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202028]                         [<ffffffff812985fc>]
__vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202030]                         [<ffffffff81298799>]
vfs_setxattr+0xa9/0xb0
[ 1401.202032]                         [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202034]                         [<ffffffff81298a7a>]
path_setxattr+0xaa/0xe0
[ 1401.202037]                         [<ffffffff81298c71>]
SyS_lsetxattr+0x11/0x20
[ 1401.202039]                         [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202041]      SOFTIRQ-ON-W at:
[ 1401.202043]                         [<ffffffff8110745e>]
__lock_acquire+0x93e/0x1ba0
[ 1401.202045]                         [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202047]                         [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.202050]                         [<ffffffffa07d66cb>]
cache_block_group+0x1bb/0x3e0 [btrfs]
[ 1401.202057]                         [<ffffffffa07e2eb3>]
find_free_extent+0x8b3/0xfb0 [btrfs]
[ 1401.202065]                         [<ffffffffa07e3637>]
btrfs_reserve_extent+0x87/0x170 [btrfs]
[ 1401.202072]                         [<ffffffffa07e3826>]
btrfs_alloc_tree_block+0x106/0x4d0 [btrfs]
[ 1401.202079]                         [<ffffffffa07ca0d1>]
__btrfs_cow_block+0x141/0x590 [btrfs]
[ 1401.202086]                         [<ffffffffa07ca6b2>]
btrfs_cow_block+0x112/0x260 [btrfs]
[ 1401.202092]                         [<ffffffffa07ce3a9>]
btrfs_search_slot+0x1e9/0x9f0 [btrfs]
[ 1401.202099]                         [<ffffffffa07d04c1>]
btrfs_insert_empty_items+0x71/0xc0 [btrfs]
[ 1401.202106]                         [<ffffffffa07e75f2>]
insert_with_overflow+0x42/0x120 [btrfs]
[ 1401.202114]                         [<ffffffffa07e777d>]
btrfs_insert_xattr_item+0xad/0x1a0 [btrfs]
[ 1401.202121]                         [<ffffffffa08100bb>]
do_setxattr+0xdb/0x410 [btrfs]
[ 1401.202130]                         [<ffffffffa0810670>]
__btrfs_setxattr+0x80/0xf0 [btrfs]
[ 1401.202139]                         [<ffffffffa0810b1d>]
btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202148]                         [<ffffffff812985fc>]
__vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202150]                         [<ffffffff81298799>]
vfs_setxattr+0xa9/0xb0
[ 1401.202152]                         [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202154]                         [<ffffffff81298a7a>]
path_setxattr+0xaa/0xe0
[ 1401.202156]                         [<ffffffff81298c71>]
SyS_lsetxattr+0x11/0x20
[ 1401.202158]                         [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202161]      INITIAL USE at:
[ 1401.202162]                        [<ffffffff811070cd>]
__lock_acquire+0x5ad/0x1ba0
[ 1401.202165]                        [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202167]                        [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.202170]                        [<ffffffffa07d66cb>]
cache_block_group+0x1bb/0x3e0 [btrfs]
[ 1401.202177]                        [<ffffffffa07e2eb3>]
find_free_extent+0x8b3/0xfb0 [btrfs]
[ 1401.202185]                        [<ffffffffa07e3637>]
btrfs_reserve_extent+0x87/0x170 [btrfs]
[ 1401.202192]                        [<ffffffffa07e3826>]
btrfs_alloc_tree_block+0x106/0x4d0 [btrfs]
[ 1401.202199]                        [<ffffffffa07ca0d1>]
__btrfs_cow_block+0x141/0x590 [btrfs]
[ 1401.202205]                        [<ffffffffa07ca6b2>]
btrfs_cow_block+0x112/0x260 [btrfs]
[ 1401.202212]                        [<ffffffffa07ce3a9>]
btrfs_search_slot+0x1e9/0x9f0 [btrfs]
[ 1401.202219]                        [<ffffffffa07d04c1>]
btrfs_insert_empty_items+0x71/0xc0 [btrfs]
[ 1401.202226]                        [<ffffffffa07e75f2>]
insert_with_overflow+0x42/0x120 [btrfs]
[ 1401.202233]                        [<ffffffffa07e777d>]
btrfs_insert_xattr_item+0xad/0x1a0 [btrfs]
[ 1401.202241]                        [<ffffffffa08100bb>]
do_setxattr+0xdb/0x410 [btrfs]
[ 1401.202250]                        [<ffffffffa0810670>]
__btrfs_setxattr+0x80/0xf0 [btrfs]
[ 1401.202258]                        [<ffffffffa0810b1d>]
btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202267]                        [<ffffffff812985fc>]
__vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202269]                        [<ffffffff81298799>]
vfs_setxattr+0xa9/0xb0
[ 1401.202271]                        [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202273]                        [<ffffffff81298a7a>]
path_setxattr+0xaa/0xe0
[ 1401.202275]                        [<ffffffff81298c71>]
SyS_lsetxattr+0x11/0x20
[ 1401.202277]                        [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202280]    }
[ 1401.202281]    ... key      at: [<ffffffffa08923c8>]
__key.47663+0x0/0xfffffffffffe3c38 [btrfs]
[ 1401.202289]    ... acquired at:
[ 1401.202290]    [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.202292]    [<ffffffff81863286>] mutex_lock_nested+0x86/0x400
[ 1401.202294]    [<ffffffffa07d66cb>] cache_block_group+0x1bb/0x3e0 [btrfs]
[ 1401.202301]    [<ffffffffa07e2eb3>] find_free_extent+0x8b3/0xfb0 [btrfs]
[ 1401.202308]    [<ffffffffa07e3637>] btrfs_reserve_extent+0x87/0x170 [btrfs]
[ 1401.202316]    [<ffffffffa07e3826>]
btrfs_alloc_tree_block+0x106/0x4d0 [btrfs]
[ 1401.202323]    [<ffffffffa07ca0d1>] __btrfs_cow_block+0x141/0x590 [btrfs]
[ 1401.202329]    [<ffffffffa07ca6b2>] btrfs_cow_block+0x112/0x260 [btrfs]
[ 1401.202336]    [<ffffffffa07ce3a9>] btrfs_search_slot+0x1e9/0x9f0 [btrfs]
[ 1401.202342]    [<ffffffffa07d04c1>]
btrfs_insert_empty_items+0x71/0xc0 [btrfs]
[ 1401.202349]    [<ffffffffa07e75f2>] insert_with_overflow+0x42/0x120 [btrfs]
[ 1401.202356]    [<ffffffffa07e777d>]
btrfs_insert_xattr_item+0xad/0x1a0 [btrfs]
[ 1401.202364]    [<ffffffffa08100bb>] do_setxattr+0xdb/0x410 [btrfs]
[ 1401.202373]    [<ffffffffa0810670>] __btrfs_setxattr+0x80/0xf0 [btrfs]
[ 1401.202381]    [<ffffffffa0810b1d>] btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202389]    [<ffffffff812985fc>] __vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202391]    [<ffffffff81298799>] vfs_setxattr+0xa9/0xb0
[ 1401.202393]    [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202395]    [<ffffffff81298a7a>] path_setxattr+0xaa/0xe0
[ 1401.202397]    [<ffffffff81298c71>] SyS_lsetxattr+0x11/0x20
[ 1401.202399]    [<ffffffff81867032>] entry_SYSCALL_64_fastpath+0x12/0x76

[ 1401.202402]  -> (&found->groups_sem){++++..} ops: 237040 {
[ 1401.202406]     HARDIRQ-ON-W at:
[ 1401.202407]                       [<ffffffff81107432>]
__lock_acquire+0x912/0x1ba0
[ 1401.202409]                       [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202412]                       [<ffffffff818643da>] down_write+0x5a/0xc0
[ 1401.202414]                       [<ffffffffa07de096>]
__link_block_group+0x36/0x130 [btrfs]
[ 1401.202422]                       [<ffffffffa07df8b5>]
btrfs_read_block_groups+0x2c5/0x650 [btrfs]
[ 1401.202429]                       [<ffffffffa07f2cd2>]
open_ctree+0x1992/0x25c0 [btrfs]
[ 1401.202437]                       [<ffffffffa07c64c5>]
btrfs_mount+0x945/0xa60 [btrfs]
[ 1401.202444]                       [<ffffffff81271bc8>] mount_fs+0x38/0x170
[ 1401.202446]                       [<ffffffff81291c1b>]
vfs_kern_mount+0x6b/0x150
[ 1401.202449]                       [<ffffffff81294ac5>] do_mount+0x245/0xe60
[ 1401.202451]                       [<ffffffff81295a2f>] SyS_mount+0x9f/0x100
[ 1401.202454]                       [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202456]     HARDIRQ-ON-R at:
[ 1401.202457]                       [<ffffffff8110705c>]
__lock_acquire+0x53c/0x1ba0
[ 1401.202460]                       [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202462]                       [<ffffffff81864331>] down_read+0x51/0xa0
[ 1401.202464]                       [<ffffffffa07ee4c6>]
btrfs_calc_num_tolerated_disk_barrier_failures+0x166/0x250 [btrfs]
[ 1401.202473]                       [<ffffffffa07f2cea>]
open_ctree+0x19aa/0x25c0 [btrfs]
[ 1401.202481]                       [<ffffffffa07c64c5>]
btrfs_mount+0x945/0xa60 [btrfs]
[ 1401.202487]                       [<ffffffff81271bc8>] mount_fs+0x38/0x170
[ 1401.202489]                       [<ffffffff81291c1b>]
vfs_kern_mount+0x6b/0x150
[ 1401.202492]                       [<ffffffff81294ac5>] do_mount+0x245/0xe60
[ 1401.202494]                       [<ffffffff81295a2f>] SyS_mount+0x9f/0x100
[ 1401.202496]                       [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202499]     SOFTIRQ-ON-W at:
[ 1401.202500]                       [<ffffffff8110745e>]
__lock_acquire+0x93e/0x1ba0
[ 1401.202502]                       [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202504]                       [<ffffffff818643da>] down_write+0x5a/0xc0
[ 1401.202507]                       [<ffffffffa07de096>]
__link_block_group+0x36/0x130 [btrfs]
[ 1401.202514]                       [<ffffffffa07df8b5>]
btrfs_read_block_groups+0x2c5/0x650 [btrfs]
[ 1401.202521]                       [<ffffffffa07f2cd2>]
open_ctree+0x1992/0x25c0 [btrfs]
[ 1401.202529]                       [<ffffffffa07c64c5>]
btrfs_mount+0x945/0xa60 [btrfs]
[ 1401.202535]                       [<ffffffff81271bc8>] mount_fs+0x38/0x170
[ 1401.202537]                       [<ffffffff81291c1b>]
vfs_kern_mount+0x6b/0x150
[ 1401.202539]                       [<ffffffff81294ac5>] do_mount+0x245/0xe60
[ 1401.202541]                       [<ffffffff81295a2f>] SyS_mount+0x9f/0x100
[ 1401.202544]                       [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202546]     SOFTIRQ-ON-R at:
[ 1401.202547]                       [<ffffffff8110745e>]
__lock_acquire+0x93e/0x1ba0
[ 1401.202549]                       [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202552]                       [<ffffffff81864331>] down_read+0x51/0xa0
[ 1401.202554]                       [<ffffffffa07ee4c6>]
btrfs_calc_num_tolerated_disk_barrier_failures+0x166/0x250 [btrfs]
[ 1401.202562]                       [<ffffffffa07f2cea>]
open_ctree+0x19aa/0x25c0 [btrfs]
[ 1401.202569]                       [<ffffffffa07c64c5>]
btrfs_mount+0x945/0xa60 [btrfs]
[ 1401.202575]                       [<ffffffff81271bc8>] mount_fs+0x38/0x170
[ 1401.202577]                       [<ffffffff81291c1b>]
vfs_kern_mount+0x6b/0x150
[ 1401.202579]                       [<ffffffff81294ac5>] do_mount+0x245/0xe60
[ 1401.202582]                       [<ffffffff81295a2f>] SyS_mount+0x9f/0x100
[ 1401.202584]                       [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202586]     INITIAL USE at:
[ 1401.202588]                      [<ffffffff811070cd>]
__lock_acquire+0x5ad/0x1ba0
[ 1401.202590]                      [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.202592]                      [<ffffffff818643da>] down_write+0x5a/0xc0
[ 1401.202594]                      [<ffffffffa07de096>]
__link_block_group+0x36/0x130 [btrfs]
[ 1401.202602]                      [<ffffffffa07df8b5>]
btrfs_read_block_groups+0x2c5/0x650 [btrfs]
[ 1401.202609]                      [<ffffffffa07f2cd2>]
open_ctree+0x1992/0x25c0 [btrfs]
[ 1401.202617]                      [<ffffffffa07c64c5>]
btrfs_mount+0x945/0xa60 [btrfs]
[ 1401.202623]                      [<ffffffff81271bc8>] mount_fs+0x38/0x170
[ 1401.202626]                      [<ffffffff81291c1b>]
vfs_kern_mount+0x6b/0x150
[ 1401.202628]                      [<ffffffff81294ac5>] do_mount+0x245/0xe60
[ 1401.202630]                      [<ffffffff81295a2f>] SyS_mount+0x9f/0x100
[ 1401.202632]                      [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202635]   }
[ 1401.202636]   ... key      at: [<ffffffffa08923b0>]
__key.48555+0x0/0xfffffffffffe3c50 [btrfs]
[ 1401.202642]   ... acquired at:
[ 1401.202643]    [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.202645]    [<ffffffff81864331>] down_read+0x51/0xa0
[ 1401.202647]    [<ffffffffa07e2fa9>] find_free_extent+0x9a9/0xfb0 [btrfs]
[ 1401.202654]    [<ffffffffa07e3637>] btrfs_reserve_extent+0x87/0x170 [btrfs]
[ 1401.202660]    [<ffffffffa07e3826>]
btrfs_alloc_tree_block+0x106/0x4d0 [btrfs]
[ 1401.202667]    [<ffffffffa07ca0d1>] __btrfs_cow_block+0x141/0x590 [btrfs]
[ 1401.202673]    [<ffffffffa07ca6b2>] btrfs_cow_block+0x112/0x260 [btrfs]
[ 1401.202680]    [<ffffffffa07ce3a9>] btrfs_search_slot+0x1e9/0x9f0 [btrfs]
[ 1401.202687]    [<ffffffffa07ea85e>] btrfs_lookup_inode+0x3e/0xc0 [btrfs]
[ 1401.202695]    [<ffffffffa084e709>]
__btrfs_update_delayed_inode+0x69/0x210 [btrfs]
[ 1401.202706]    [<ffffffffa084fb71>]
btrfs_commit_inode_delayed_inode+0x121/0x130 [btrfs]
[ 1401.202716]    [<ffffffffa0802ad0>] btrfs_evict_inode+0x3d0/0x660 [btrfs]
[ 1401.202725]    [<ffffffff8128c57f>] evict+0xaf/0x180
[ 1401.202727]    [<ffffffff8128c8d9>] iput+0x229/0x2c0
[ 1401.202729]    [<ffffffff81286608>] __dentry_kill+0x178/0x1e0
[ 1401.202732]    [<ffffffff812883a7>] dput+0x2a7/0x3a0
[ 1401.202734]    [<ffffffff81280c21>] SyS_rename+0x311/0x3a0
[ 1401.202737]    [<ffffffff81867032>] entry_SYSCALL_64_fastpath+0x12/0x76

[ 1401.202741] -> (&delayed_node->mutex){+.+.-.} ops: 1388847 {
[ 1401.202745]    HARDIRQ-ON-W at:
[ 1401.202746]                     [<ffffffff81107432>]
__lock_acquire+0x912/0x1ba0
[ 1401.202749]                     [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.202751]                     [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.202754]                     [<ffffffffa08508d9>]
btrfs_delayed_update_inode+0x49/0x600 [btrfs]
[ 1401.202764]                     [<ffffffffa07fc2af>]
btrfs_update_inode+0x8f/0x100 [btrfs]
[ 1401.202774]                     [<ffffffffa08106bc>]
__btrfs_setxattr+0xcc/0xf0 [btrfs]
[ 1401.202783]                     [<ffffffffa0810b1d>]
btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202792]                     [<ffffffff812985fc>]
__vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202794]                     [<ffffffff81298799>] vfs_setxattr+0xa9/0xb0
[ 1401.202796]                     [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202799]                     [<ffffffff81298a7a>] path_setxattr+0xaa/0xe0
[ 1401.202801]                     [<ffffffff81298c71>] SyS_lsetxattr+0x11/0x20
[ 1401.202803]                     [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202805]    SOFTIRQ-ON-W at:
[ 1401.202807]                     [<ffffffff8110745e>]
__lock_acquire+0x93e/0x1ba0
[ 1401.202809]                     [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.202811]                     [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.202814]                     [<ffffffffa08508d9>]
btrfs_delayed_update_inode+0x49/0x600 [btrfs]
[ 1401.202825]                     [<ffffffffa07fc2af>]
btrfs_update_inode+0x8f/0x100 [btrfs]
[ 1401.202834]                     [<ffffffffa08106bc>]
__btrfs_setxattr+0xcc/0xf0 [btrfs]
[ 1401.202843]                     [<ffffffffa0810b1d>]
btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202851]                     [<ffffffff812985fc>]
__vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202853]                     [<ffffffff81298799>] vfs_setxattr+0xa9/0xb0
[ 1401.202855]                     [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202857]                     [<ffffffff81298a7a>] path_setxattr+0xaa/0xe0
[ 1401.202860]                     [<ffffffff81298c71>] SyS_lsetxattr+0x11/0x20
[ 1401.202862]                     [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202864]    IN-RECLAIM_FS-W at:
[ 1401.202866]                        [<ffffffff8110747f>]
__lock_acquire+0x95f/0x1ba0
[ 1401.202868]                        [<ffffffff8110903e>]
lock_acquire+0xce/0x1c0
[ 1401.202870]                        [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.202873]                        [<ffffffffa084dccd>]
__btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.202883]                        [<ffffffffa084fba4>]
btrfs_remove_delayed_node+0x24/0x30 [btrfs]
[ 1401.202893]                        [<ffffffffa08029ac>]
btrfs_evict_inode+0x2ac/0x660 [btrfs]
[ 1401.202902]                        [<ffffffff8128c57f>] evict+0xaf/0x180
[ 1401.202904]                        [<ffffffff8128c687>]
dispose_list+0x37/0x60
[ 1401.202907]                        [<ffffffff8128d93a>]
prune_icache_sb+0x5a/0x80
[ 1401.202909]                        [<ffffffff8127148c>]
super_cache_scan+0x14c/0x1a0
[ 1401.202911]                        [<ffffffff811f54f3>]
shrink_slab.part.41+0x213/0x540
[ 1401.202914]                        [<ffffffff811fa176>]
shrink_zone+0x2b6/0x2c0
[ 1401.202917]                        [<ffffffff811fb661>] kswapd+0x571/0xb10
[ 1401.202919]                        [<ffffffff810d1351>] kthread+0x101/0x120
[ 1401.202921]                        [<ffffffff818673af>]
ret_from_fork+0x3f/0x70
[ 1401.202924]    INITIAL USE at:
[ 1401.202925]                    [<ffffffff811070cd>]
__lock_acquire+0x5ad/0x1ba0
[ 1401.202927]                    [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.202930]                    [<ffffffff81863286>]
mutex_lock_nested+0x86/0x400
[ 1401.202932]                    [<ffffffffa08508d9>]
btrfs_delayed_update_inode+0x49/0x600 [btrfs]
[ 1401.202942]                    [<ffffffffa07fc2af>]
btrfs_update_inode+0x8f/0x100 [btrfs]
[ 1401.202951]                    [<ffffffffa08106bc>]
__btrfs_setxattr+0xcc/0xf0 [btrfs]
[ 1401.202961]                    [<ffffffffa0810b1d>]
btrfs_setxattr+0x8d/0xe0 [btrfs]
[ 1401.202969]                    [<ffffffff812985fc>]
__vfs_setxattr_noperm+0xac/0x1a0
[ 1401.202972]                    [<ffffffff81298799>] vfs_setxattr+0xa9/0xb0
[ 1401.202974]                    [<ffffffff812988d9>] setxattr+0x139/0x230
[ 1401.202976]                    [<ffffffff81298a7a>] path_setxattr+0xaa/0xe0
[ 1401.202978]                    [<ffffffff81298c71>] SyS_lsetxattr+0x11/0x20
[ 1401.202980]                    [<ffffffff81867032>]
entry_SYSCALL_64_fastpath+0x12/0x76
[ 1401.202983]  }
[ 1401.202984]  ... key      at: [<ffffffffa08963b8>]
__key.46552+0x0/0xfffffffffffdfc48 [btrfs]
[ 1401.202991]  ... acquired at:
[ 1401.202992]    [<ffffffff8110546d>] check_usage_forwards+0x15d/0x170
[ 1401.202995]    [<ffffffff8110628a>] mark_lock+0x33a/0x620
[ 1401.202997]    [<ffffffff8110747f>] __lock_acquire+0x95f/0x1ba0
[ 1401.203000]    [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.203002]    [<ffffffff81863286>] mutex_lock_nested+0x86/0x400
[ 1401.203004]    [<ffffffffa084dccd>]
__btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.203014]    [<ffffffffa084fba4>]
btrfs_remove_delayed_node+0x24/0x30 [btrfs]
[ 1401.203024]    [<ffffffffa08029ac>] btrfs_evict_inode+0x2ac/0x660 [btrfs]
[ 1401.203033]    [<ffffffff8128c57f>] evict+0xaf/0x180
[ 1401.203036]    [<ffffffff8128c687>] dispose_list+0x37/0x60
[ 1401.203038]    [<ffffffff8128d93a>] prune_icache_sb+0x5a/0x80
[ 1401.203040]    [<ffffffff8127148c>] super_cache_scan+0x14c/0x1a0
[ 1401.203042]    [<ffffffff811f54f3>] shrink_slab.part.41+0x213/0x540
[ 1401.203045]    [<ffffffff811fa176>] shrink_zone+0x2b6/0x2c0
[ 1401.203047]    [<ffffffff811fb661>] kswapd+0x571/0xb10
[ 1401.203050]    [<ffffffff810d1351>] kthread+0x101/0x120
[ 1401.203052]    [<ffffffff818673af>] ret_from_fork+0x3f/0x70

[ 1401.203055]
               stack backtrace:
[ 1401.203059] CPU: 1 PID: 80 Comm: kswapd0 Not tainted
4.3.5-300.fc23.x86_64+debug #1
[ 1401.203060] Hardware name: Gigabyte Technology Co., Ltd.
Z87M-D3H/Z87M-D3H, BIOS F11 08/12/2014
[ 1401.203062]  0000000000000000 0000000020b8f59d ffff88009c51f760
ffffffff8141c3f9
[ 1401.203066]  ffffffff82f54e80 ffff88009c51f7a0 ffffffff811dd2dc
ffff88009c518998
[ 1401.203069]  ffff88009c518998 ffff88009c518000 ffffffff81c7e381
0000000000000000
[ 1401.203072] Call Trace:
[ 1401.203077]  [<ffffffff8141c3f9>] dump_stack+0x4b/0x72
[ 1401.203080]  [<ffffffff811dd2dc>] print_irq_inversion_bug.part.40+0x1a4/0x1b0
[ 1401.203083]  [<ffffffff8110546d>] check_usage_forwards+0x15d/0x170
[ 1401.203085]  [<ffffffff8110628a>] mark_lock+0x33a/0x620
[ 1401.203088]  [<ffffffff81105310>] ?
print_shortest_lock_dependencies+0x1a0/0x1a0
[ 1401.203090]  [<ffffffff8110747f>] __lock_acquire+0x95f/0x1ba0
[ 1401.203092]  [<ffffffff811076f7>] ? __lock_acquire+0xbd7/0x1ba0
[ 1401.203096]  [<ffffffff810e5e8c>] ? local_clock+0x1c/0x20
[ 1401.203099]  [<ffffffff8110903e>] lock_acquire+0xce/0x1c0
[ 1401.203108]  [<ffffffffa084dccd>] ?
__btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.203111]  [<ffffffff81863286>] mutex_lock_nested+0x86/0x400
[ 1401.203120]  [<ffffffffa084dccd>] ?
__btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.203123]  [<ffffffff81025c09>] ? sched_clock+0x9/0x10
[ 1401.203132]  [<ffffffffa084dccd>] ?
__btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.203135]  [<ffffffff8112515d>] ? debug_lockdep_rcu_enabled+0x1d/0x20
[ 1401.203143]  [<ffffffffa084dccd>]
__btrfs_release_delayed_node+0x3d/0x1c0 [btrfs]
[ 1401.203152]  [<ffffffffa084fba4>] btrfs_remove_delayed_node+0x24/0x30 [btrfs]
[ 1401.203161]  [<ffffffffa08029ac>] btrfs_evict_inode+0x2ac/0x660 [btrfs]
[ 1401.203164]  [<ffffffff8128c57f>] evict+0xaf/0x180
[ 1401.203166]  [<ffffffff8128c687>] dispose_list+0x37/0x60
[ 1401.203168]  [<ffffffff8128d93a>] prune_icache_sb+0x5a/0x80
[ 1401.203170]  [<ffffffff8127148c>] super_cache_scan+0x14c/0x1a0
[ 1401.203172]  [<ffffffff811f54f3>] shrink_slab.part.41+0x213/0x540
[ 1401.203175]  [<ffffffff8112515d>] ? debug_lockdep_rcu_enabled+0x1d/0x20
[ 1401.203178]  [<ffffffff811fa176>] shrink_zone+0x2b6/0x2c0
[ 1401.203180]  [<ffffffff811fb661>] kswapd+0x571/0xb10
[ 1401.203183]  [<ffffffff811fb0f0>] ? mem_cgroup_shrink_node_zone+0x300/0x300
[ 1401.203185]  [<ffffffff810d1351>] kthread+0x101/0x120
[ 1401.203188]  [<ffffffff81106739>] ? trace_hardirqs_on_caller+0x129/0x1b0
[ 1401.203191]  [<ffffffff810d1250>] ? kthread_create_on_node+0x250/0x250
[ 1401.203193]  [<ffffffff818673af>] ret_from_fork+0x3f/0x70
[ 1401.203195]  [<ffffffff810d1250>] ? kthread_create_on_node+0x250/0x250
[ 1410.976378] kworker/dying (151) used greatest stack depth: 9768 bytes left



--
Best Regards,
Mike Gavrilov.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ