public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederik Deweerdt <deweerdt@free.fr>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, arjanv@infradead.org
Subject: lockdep warning in check_flags()
Date: Sat, 9 Sep 2006 08:35:23 +0000	[thread overview]
Message-ID: <20060909083523.GG1121@slug> (raw)
In-Reply-To: <20060908011317.6cb0495a.akpm@osdl.org>

On Fri, Sep 08, 2006 at 01:13:17AM -0700, Andrew Morton wrote:
> 
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc6/2.6.18-rc6-mm1/
> 
Lockdep issues the following warning:

[   16.835268] Freeing unused kernel memory: 260k freed
[   16.842715] Write protecting the kernel read-only data: 432k
[   17.796518] BUG: warning at kernel/lockdep.c:2359/check_flags()
[   17.804117]  [<c0104436>] dump_trace+0x1f3/0x22a
[   17.811514]  [<c0104493>] show_trace_log_lvl+0x26/0x3c
[   17.818984]  [<c0104b58>] show_trace+0x1b/0x1d
[   17.826397]  [<c0104c43>] dump_stack+0x24/0x26
[   17.833856]  [<c013775e>] check_flags+0x1e4/0x2b1
[   17.841400]  [<c013a9e2>] lock_acquire+0x21/0x7a
[   17.848977]  [<c0135a50>] down_write+0x50/0x69
[   17.856557]  [<c01640d4>] sys_brk+0x23/0xe7
[   17.864105]  [<c01031f6>] sysenter_past_esp+0x5f/0x99
[   17.871556]  [<b7faf410>] 0xb7faf410
[   17.878831]  =======================
[   17.885839] irq event stamp: 8318
[   17.892746] hardirqs last  enabled at (8317): [<c01032c8>] restore_nocheck+0x12/0x15
[   17.906778] hardirqs last disabled at (8318): [<c0103203>] sysenter_past_esp+0x6c/0x99
[   17.921481] softirqs last  enabled at (7128): [<c0123cd1>] __do_softirq+0xe9/0xfa
[   17.936962] softirqs last disabled at (7121): [<c0123d3e>] do_softirq+0x5c/0x60

I've replaced the DEBUG_LOCKS_WARN_ON by a BUG, and it appears that the
user space program calling sys_brk is hotplug.
This is 100% reproducible, it happens at (nearly) the same time, at each
boot.
The lspci, .config and dmesg are available at
http://fdeweerdt.free.fr/lockdep_warning
I'm going to try to bisect sysenter_past_esp by instering some
TRACE_IRQS_ON between the beginning of the routine and the actual syscall
to see when the irq enabling is missed.


Thanks,
Frederik

  parent reply	other threads:[~2006-09-09  6:36 UTC|newest]

Thread overview: 101+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08  8:13 2.6.18-rc6-mm1 Andrew Morton
2006-09-08 11:49 ` 2.6.18-rc6-mm1 Andy Whitcroft
2006-09-08 12:07 ` 2.6.18-rc6-mm1 Frederik Deweerdt
2006-09-08 12:16 ` [patch -mm] s390: fix save_stack_trace Heiko Carstens
2006-09-09 13:36   ` Andi Kleen
2006-09-08 12:23 ` 2.6.18-rc6-mm1 - x86_64-mm-lockdep-dont-force-framepointer.patch Heiko Carstens
2006-09-09 13:39   ` Andi Kleen
2006-09-11  8:45     ` Martin Schwidefsky
2006-09-08 14:26 ` 2.6.18-rc6-mm1 Rafael J. Wysocki
2006-09-08 20:44   ` [linux-usb-devel] 2.6.18-rc6-mm1 Alan Stern
2006-09-08 22:57     ` Rafael J. Wysocki
2006-09-11 22:08       ` Rafael J. Wysocki
2006-09-12 14:28         ` Alan Stern
2006-09-12 17:22           ` Mattia Dongili
2006-09-12 18:04             ` Mattia Dongili
2006-09-12 20:10               ` Alan Stern
2006-09-13 17:00                 ` Rafael J. Wysocki
2006-09-13 12:07       ` [linux-usb-devel] 2.6.18-rc6-mm1 (-mm2): ohci resume problem Rafael J. Wysocki
2006-09-13 12:42         ` Rafael J. Wysocki
2006-09-13 18:38           ` Alan Stern
2006-09-13 20:00             ` Rafael J. Wysocki
2006-09-13 21:01               ` Alan Stern
2006-09-13 21:32                 ` Rafael J. Wysocki
2006-09-13 21:55                   ` Alan Stern
2006-09-14 13:14                     ` Rafael J. Wysocki
2006-09-14 14:08                       ` Rafael J. Wysocki
2006-09-14 15:04                         ` Alan Stern
2006-09-14 16:17                           ` Alan Stern
2006-09-14 17:08                             ` Rafael J. Wysocki
2006-09-14 17:13                               ` Rafael J. Wysocki
2006-09-14 17:24                                 ` Alan Stern
2006-09-14 17:22                               ` Alan Stern
2006-09-14 17:35                                 ` Rafael J. Wysocki
2006-09-14 18:28                                   ` Alan Stern
     [not found]                                     ` <200609142137.52066.rjw@sisk.pl>
2006-09-14 20:21                                       ` Rafael J. Wysocki
2006-09-14 20:55                                       ` Alan Stern
2006-09-14 21:47                                         ` Rafael J. Wysocki
2006-09-14 22:19                                           ` Alan Stern
2006-09-14 16:48                           ` Rafael J. Wysocki
2006-09-13 20:38             ` Mattia Dongili
2006-09-13 20:54               ` Alan Stern
2006-09-14 20:19                 ` Mattia Dongili
2006-09-14 20:25                   ` Alan Stern
2006-09-14 20:35                     ` Mattia Dongili
2006-09-16 11:58                     ` Mattia Dongili
2006-09-16 14:31                       ` Alan Stern
2006-09-08 17:43 ` 2.6.18-rc6-mm1 Stefan Richter
2006-09-08 18:04   ` 2.6.18-rc6-mm1 Andrew Morton
2006-09-08 18:36     ` 2.6.18-rc6-mm1 Stefan Richter
2006-09-08 19:23 ` 2.6.18-rc6-mm1 Michal Piotrowski
2006-09-08 19:43   ` 2.6.18-rc6-mm1 Andrew Morton
2006-09-08 20:01     ` 2.6.18-rc6-mm1 Michal Piotrowski
2006-09-08 19:30 ` 2.6.18-rc6-mm1 thunder7
2006-09-08 19:44   ` 2.6.18-rc6-mm1 Andrew Morton
2006-09-09  9:04     ` 2.6.18-rc6-mm1 thunder7
2006-09-09 15:31       ` 2.6.18-rc6-mm1 Andrew Morton
2006-09-09 22:02         ` 2.6.18-rc6-mm1 Jean Delvare
2006-09-10  6:30           ` 2.6.18-rc6-mm1 thunder7
2006-09-09  8:35 ` Frederik Deweerdt [this message]
2006-09-11  5:43   ` lockdep warning in check_flags() Ingo Molnar
2006-09-12 14:13     ` Frederik Deweerdt
2006-09-12 16:54       ` Ingo Molnar
2006-09-12 20:21         ` Frederik Deweerdt
     [not found] ` <4503DC64.9070007@free.fr>
2006-09-10  8:32   ` 2.6.18-rc6-mm1: GPF loop on early boot Andi Kleen
2006-09-10 10:29     ` Arjan van de Ven
2006-09-10 11:57     ` Ingo Molnar
2006-09-10 11:34       ` Andi Kleen
2006-09-10 13:26         ` Ingo Molnar
2006-09-10 13:55           ` Andi Kleen
2006-09-10 14:02             ` Ingo Molnar
2006-09-10 16:33           ` Andrew Morton
2006-09-10 23:03             ` Jeremy Fitzhardinge
2006-09-11  5:10               ` Ingo Molnar
2006-09-11  7:31                 ` Jeremy Fitzhardinge
2006-09-11  7:29                   ` Ingo Molnar
2006-09-11  7:41                     ` Jeremy Fitzhardinge
2006-09-11  7:36                       ` Ingo Molnar
2006-09-11  7:59                         ` Jeremy Fitzhardinge
2006-09-11  8:01                           ` Ingo Molnar
2006-09-11  8:13                             ` Jeremy Fitzhardinge
2006-09-11  7:38                       ` Ingo Molnar
2006-09-11  7:56                         ` Jeremy Fitzhardinge
2006-09-11  7:55                           ` Ingo Molnar
2006-09-11  5:21               ` Laurent Riffard
2006-09-11  5:18                 ` Ingo Molnar
2006-09-11  5:25               ` [patch] i386-PDA, lockdep: fix %gs restore Ingo Molnar
2006-09-11  5:41                 ` Andi Kleen
2006-09-11  5:48                   ` Ingo Molnar
2006-09-11  5:46                 ` Ingo Molnar
2006-09-11 16:35                   ` Laurent Riffard
2006-09-11  7:42                 ` Jeremy Fitzhardinge
2006-09-11 19:33                 ` Jeremy Fitzhardinge
2006-09-11 21:25                   ` Jeremy Fitzhardinge
2006-09-11 20:20                 ` Andi Kleen
2006-09-11 21:37                   ` Jeremy Fitzhardinge
2006-09-11 20:48                     ` Andi Kleen
2006-09-10 12:36       ` 2.6.18-rc6-mm1: GPF loop on early boot Laurent Riffard
2006-09-10 13:07         ` Ingo Molnar
2006-09-10 13:11       ` Ingo Molnar
2006-09-11 21:19 ` 2.6.18-rc6-mm1 Mark Haverkamp
2006-09-11 22:16   ` 2.6.18-rc6-mm1 Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060909083523.GG1121@slug \
    --to=deweerdt@free.fr \
    --cc=akpm@osdl.org \
    --cc=arjanv@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox