Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756297AbZA2JKh (ORCPT ); Thu, 29 Jan 2009 04:10:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751621AbZA2JKY (ORCPT ); Thu, 29 Jan 2009 04:10:24 -0500 Received: from edna.telenet-ops.be ([195.130.132.58]:54196 "EHLO edna.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752339AbZA2JKV (ORCPT ); Thu, 29 Jan 2009 04:10:21 -0500 Date: Thu, 29 Jan 2009 10:10:11 +0100 (CET) From: Geert Uytterhoeven To: Andrey Borzenkov cc: Linux Frame Buffer Device Development , "Antonino A. Daplas" , linux-pm@lists.linux-foundation.org, Linux Kernel Development , Andrea Righi Subject: Re: [Linux-fbdev-devel] [2.6.29-rc2] fb_mmap: circular locking dependency on hibernation In-Reply-To: <200901272137.57757.arvidjaar@mail.ru> Message-ID: References: <200901272137.57757.arvidjaar@mail.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4261 Lines: 88 On Tue, 27 Jan 2009, Andrey Borzenkov wrote: > I do not know if this is new; I usually do not hibernate at all and was > testing another driver actually. I do not remember such issues in 2.6.28 > though. Dmesg follows; config attached. > [11715.652498] ======================================================= > [11715.652520] [ INFO: possible circular locking dependency detected ] > [11715.652534] 2.6.29-rc2-1avb #11 > [11715.652541] ------------------------------------------------------- > [11715.652550] s2disk/25519 is trying to acquire lock: > [11715.652562] (&fb_info->lock){--..}, at: [] fb_mmap+0x97/0x170 > [11715.652623] > [11715.652625] but task is already holding lock: > [11715.652632] (&mm->mmap_sem){----}, at: [] sys_mmap2+0x8e/0xc0 > [11715.652669] > [11715.652671] which lock already depends on the new lock. > [11715.652675] > [11715.652681] > [11715.652683] the existing dependency chain (in reverse order) is: > [11715.652691] > [11715.652693] -> #1 (&mm->mmap_sem){----}: > [11715.652707] [] __lock_acquire+0x129f/0x1930 > [11715.652730] [] lock_acquire+0x5c/0x80 > [11715.652742] [] might_fault+0x77/0xa0 > [11715.652764] [] copy_from_user+0x35/0x130 > [11715.652782] [] fb_ioctl+0x1d5/0x3f0 > [11715.652797] [] vfs_ioctl+0x20/0x80 > [11715.652832] [] do_vfs_ioctl+0x72/0x570 > [11715.652845] [] sys_ioctl+0x39/0x70 > [11715.652857] [] sysenter_do_call+0x12/0x31 > [11715.652870] [] 0xffffffff > [11715.652973] > [11715.652975] -> #0 (&fb_info->lock){--..}: > [11715.652988] [] __lock_acquire+0x140c/0x1930 > [11715.653000] [] lock_acquire+0x5c/0x80 > [11715.653011] [] mutex_lock_nested+0xba/0x2f0 > [11715.653032] [] fb_mmap+0x97/0x170 > [11715.653044] [] mmap_region+0x1d6/0x530 > [11715.653067] [] do_mmap_pgoff+0x1d3/0x2f0 > [11715.653079] [] sys_mmap2+0xad/0xc0 > [11715.653091] [] sysenter_do_call+0x12/0x31 > [11715.653102] [] 0xffffffff > [11715.653116] > [11715.653119] other info that might help us debug this: > [11715.653122] > [11715.653130] 1 lock held by s2disk/25519: > [11715.653137] #0: (&mm->mmap_sem){----}, at: [] > sys_mmap2+0x8e/0xc0 > [11715.653156] > [11715.653158] stack backtrace: > [11715.653170] Pid: 25519, comm: s2disk Not tainted 2.6.29-rc2-1avb #11 > [11715.653179] Call Trace: > [11715.653190] [] ? printk+0x18/0x20 > [11715.653202] [] print_circular_bug_tail+0xcf/0xe0 > [11715.653213] [] __lock_acquire+0x140c/0x1930 > [11715.653224] [] ? trace_hardirqs_on+0xb/0x10 > [11715.653242] [] ? _spin_unlock_irqrestore+0x35/0x60 > [11715.653254] [] ? lock_release_holdtime+0x35/0x210 > [11715.653265] [] lock_acquire+0x5c/0x80 > [11715.653277] [] ? fb_mmap+0x97/0x170 > [11715.653287] [] mutex_lock_nested+0xba/0x2f0 > [11715.653298] [] ? fb_mmap+0x97/0x170 > [11715.653309] [] ? fb_mmap+0x97/0x170 > [11715.653335] [] ? kmem_cache_alloc+0xad/0x100 > [11715.653347] [] fb_mmap+0x97/0x170 > [11715.653358] [] mmap_region+0x1d6/0x530 > [11715.653371] [] ? arch_get_unmapped_area_topdown+0x10d/0x170 > [11715.653383] [] do_mmap_pgoff+0x1d3/0x2f0 > [11715.653395] [] sys_mmap2+0xad/0xc0 > [11715.653406] [] sysenter_do_call+0x12/0x31 Is this fixed by http://patchwork.kernel.org/patch/3259/? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- 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/