login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
28
Re: [PATCH 01/12] lockdep: syscall exit check
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Heiko Carstens <heiko.carstens@...>
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: lkml <linux-kernel@...>, <linux-arch@...>, Zach Brown <zach.brown@...>, Ingo Molnar <mingo@...>, <akpm@...>
Subject:
Re: [PATCH 01/12] lockdep: syscall exit check
Date: Friday, September 28, 2007 - 8:21 am
On Fri, Sep 28, 2007 at 02:14:11PM +0200, Peter Zijlstra wrote:
quoted text
> On Fri, 2007-09-28 at 14:03 +0200, Heiko Carstens wrote: > > > +void lockdep_sys_exit(void) > > > +{ > > > + struct task_struct *curr = current; > > > + > > > + if (unlikely(curr->lockdep_depth)) { > > > + if (!debug_locks_off()) > > > + return; > > > + printk("\n========================================\n"); > > > + printk( "[ BUG: lock held at syscall exit time! ]\n"); > > > + printk( "----------------------------------------\n"); > > > + printk("%s/%d is leaving the kernel with locks still held!\n", > > > + curr->comm, curr->pid); > > > + lockdep_print_held_locks(curr); > > > + } > > > +} > > > > By the way, the s390 patch I just posted also checks if we hold any locks > > when returning from interrupt context to user space. Maybe the above text > > could be changed to "lock held when returning to user space" ? > > Good idea, I'll look at doing the same for i386/x86_64. Traps (page > faults) would also make sense I guess.
Yes, traps and syscalls have the same exit path on s390. So we do that alreasy as well. -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 01/12] lockdep: syscall exit check
, Peter Zijlstra
, (Fri Sep 28, 3:42 am)
Re: [PATCH 01/12] lockdep: syscall exit check
, Heiko Carstens
, (Fri Sep 28, 8:03 am)
Re: [PATCH 01/12] lockdep: syscall exit check
, Peter Zijlstra
, (Fri Sep 28, 8:14 am)
Re: [PATCH 01/12] lockdep: syscall exit check
, Heiko Carstens
, (Fri Sep 28, 8:21 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
Andrew Morton
-mm merge plans for 2.6.23
Can E. Acar
Re: Wasting our Freedom
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
PJ Waskiewicz
[ANNOUNCE] ixgbe: Data Center Bridging (DCB) support for ixgbe
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
845 guests
online.
Online users
zeekec
Jeremy
redchiplawyer
timsmithfields
Syndicate