Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423035AbXBBAnj (ORCPT ); Thu, 1 Feb 2007 19:43:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423036AbXBBAnj (ORCPT ); Thu, 1 Feb 2007 19:43:39 -0500 Received: from threatwall.zlynx.org ([199.45.143.218]:36424 "EHLO zlynx.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1423035AbXBBAni (ORCPT ); Thu, 1 Feb 2007 19:43:38 -0500 Subject: 2.6.20-rc6-mm3 possible circular lock on mmap_sem From: Zan Lynx To: Linux Kernel , linux-mm@kvack.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vSQv17GaBM4+cBcxX4Nx" Date: Thu, 01 Feb 2007 17:43:35 -0700 Message-Id: <1170377015.7233.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 X-Envelope-From: zlynx@acm.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7583 Lines: 151 --=-vSQv17GaBM4+cBcxX4Nx Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I just noticed this in my logs, from the lock checker: [ 142.299455]=20 [ 142.299458] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ 142.299473] [ INFO: possible circular locking dependency detected ] [ 142.299478] 2.6.20-rc6-mm3 #2 [ 142.299482] ------------------------------------------------------- [ 142.299547] evolution-data-/6909 is trying to acquire lock: [ 142.299551] (&mm->mmap_sem){----}, at: [] do_page_fau= lt+0x3f6/0x8a0 [ 142.299742]=20 [ 142.299743] but task is already holding lock: [ 142.299749] (&data->latch){----}, at: [] get_exclusiv= e_access+0x11/0x20 [ 142.299880]=20 [ 142.299880] which lock already depends on the new lock. [ 142.299882]=20 [ 142.299947]=20 [ 142.299948] the existing dependency chain (in reverse order) is: [ 142.300010]=20 [ 142.300011] -> #1 (&data->latch){----}: [ 142.300138] [] __lock_acquire+0xd48/0xff0 [ 142.300390] [] lock_acquire+0x4b/0x70 [ 142.300583] [] get_exclusive_access+0x11/0x20 [ 142.300833] [] down_write+0x34/0x40 [ 142.301084] [] get_exclusive_access+0x11/0x20 [ 142.301277] [] mmap_unix_file+0x8e/0x1a0 [ 142.301526] [] do_mmap_pgoff+0x4eb/0x820 [ 142.301777] [] mark_held_locks+0x76/0xa0 [ 142.301969] [] _spin_unlock_irq+0x24/0x30 [ 142.302219] [] _spin_unlock_irq+0x24/0x30 [ 142.302468] [] elf_map+0xa3/0x100 [ 142.302662] [] load_elf_binary+0x920/0x1cd0 [ 142.302912] [] kfree+0xd5/0xf0 [ 142.303162] [] load_aout_binary+0x0/0x990 [ 142.303356] [] load_elf_binary+0x0/0x1cd0 [ 142.303606] [] search_binary_handler+0x9d/0x240 [ 142.303857] [] load_script+0x211/0x240 [ 142.304050] [] load_elf_binary+0x0/0x1cd0 [ 142.304300] [] load_script+0x0/0x240 [ 142.304549] [] load_script+0x0/0x240 [ 142.304741] [] search_binary_handler+0x9d/0x240 [ 142.304991] [] do_execve+0x17a/0x220 [ 142.305241] [] __call_usermodehelper+0x0/0x80 [ 142.305434] [] sys_execve+0x44/0xb0 [ 142.305684] [] kernel_execve+0x64/0xd0 [ 142.305878] [] __call_usermodehelper+0x0/0x80 [ 142.306127] [] ____call_usermodehelper+0x161/0x= 170 [ 142.306377] [] child_rip+0xa/0x12 [ 142.306569] [] _spin_unlock_irq+0x24/0x30 [ 142.306818] [] restore_args+0x0/0x30 [ 142.307068] [] ____call_usermodehelper+0x0/0x17= 0 [ 142.307260] [] child_rip+0x0/0x12 [ 142.307510] [] 0xffffffffffffffff [ 142.307752]=20 [ 142.307752] -> #0 (&mm->mmap_sem){----}: [ 142.307878] [] print_circular_bug_header+0xdb/0= x100 [ 142.308128] [] __lock_acquire+0xc07/0xff0 [ 142.308378] [] mark_held_locks+0x76/0xa0 [ 142.308570] [] lock_acquire+0x4b/0x70 [ 142.308820] [] do_page_fault+0x3f6/0x8a0 [ 142.309013] [] down_read+0x37/0x40 [ 142.309263] [] do_page_fault+0x3f6/0x8a0 [ 142.309513] [] mark_held_locks+0x76/0xa0 [ 142.309705] [] error_exit+0x0/0x96 [ 142.309954] [] file_read_actor+0x43/0x180 [ 142.310147] [] __wait_on_bit_lock+0x6f/0x80 [ 142.310399] [] do_generic_mapping_read+0x25b/0x= 580 [ 142.310649] [] file_read_actor+0x0/0x180 [ 142.310841] [] generic_file_aio_read+0x19a/0x1f= 0 [ 142.311091] [] do_sync_read+0xdb/0x130 [ 142.311340] [] wake_bit_function+0x0/0x30 [ 142.311533] [] _spin_unlock+0x17/0x20 [ 142.311783] [] reiser4_grab+0xae/0xd0 [ 142.311977] [] read_unix_file+0xdb/0x450 [ 142.312227] [] vma_merge+0x12b/0x1e0 [ 142.312476] [] vfs_read+0xba/0x180 [ 142.312669] [] sys_read+0x53/0x90 [ 142.312918] [] system_call+0x7e/0x83 [ 142.313111] [] 0xffffffffffffffff [ 142.313361]=20 [ 142.313361] other info that might help us debug this: [ 142.313363]=20 [ 142.313428] 1 lock held by evolution-data-/6909: [ 142.313432] #0: (&data->latch){----}, at: [] get_exc= lusive_access+0x11/0x20 [ 142.313619]=20 [ 142.313619] stack backtrace: [ 142.313682]=20 [ 142.313682] Call Trace: [ 142.313690] [] print_circular_bug_tail+0x74/0x90 [ 142.313754] [] print_circular_bug_header+0xdb/0x100 [ 142.313760] [] __lock_acquire+0xc07/0xff0 [ 142.313766] [] mark_held_locks+0x76/0xa0 [ 142.313830] [] lock_acquire+0x4b/0x70 [ 142.313835] [] do_page_fault+0x3f6/0x8a0 [ 142.313898] [] down_read+0x37/0x40 [ 142.313904] [] do_page_fault+0x3f6/0x8a0 [ 142.313913] [] mark_held_locks+0x76/0xa0 [ 142.313977] [] error_exit+0x0/0x96 [ 142.313985] [] file_read_actor+0x43/0x180 [ 142.313991] [] __wait_on_bit_lock+0x6f/0x80 [ 142.314055] [] do_generic_mapping_read+0x25b/0x580 [ 142.314060] [] file_read_actor+0x0/0x180 [ 142.314071] [] generic_file_aio_read+0x19a/0x1f0 [ 142.314135] [] do_sync_read+0xdb/0x130 [ 142.314143] [] wake_bit_function+0x0/0x30 [ 142.314150] [] _spin_unlock+0x17/0x20 [ 142.314213] [] reiser4_grab+0xae/0xd0 [ 142.314219] [] read_unix_file+0xdb/0x450 [ 142.314225] [] vma_merge+0x12b/0x1e0 [ 142.314291] [] vfs_read+0xba/0x180 [ 142.314297] [] sys_read+0x53/0x90 [ 142.314360] [] system_call+0x7e/0x83 [ 142.314366]=20 --=20 Zan Lynx --=-vSQv17GaBM4+cBcxX4Nx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) iD8DBQBFwok3G8fHaOLTWwgRAuJJAKCms7Eri0atCpOy57fqJ89wKLrXBQCfS2zj E1I9OTwDe/PaCG9FSp/rgkA= =e9Uw -----END PGP SIGNATURE----- --=-vSQv17GaBM4+cBcxX4Nx-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/