On 10/17/2013 06:41 AM, Douglas Gilbert wrote:
> That seems to be the case. Vaughan acknowledged the
> problem and forwarded it to me 8 days ago. Yes, it
> seems to be a "no-no" to hold a any kernel semaphore
> when returning to the user space; in this case from
> sg_open(). I was hoping a revised
On 13-10-16 09:24 AM, James Bottomley wrote:
On Tue, 2013-10-08 at 09:45 -0400, Douglas Gilbert wrote:
On 13-10-08 02:44 AM, vaughan wrote:
Hi Madper,
CC to Douglas to get comments.
I use the rw_semaphore o_sem to protect excl open, introduced in commit
On Tue, 2013-10-08 at 09:45 -0400, Douglas Gilbert wrote:
> On 13-10-08 02:44 AM, vaughan wrote:
> > Hi Madper,
> >
> > CC to Douglas to get comments.
> > I use the rw_semaphore o_sem to protect excl open, introduced in commit
> > 15b06f9a02406e5460001db6d5af5c738cd3d4e7 since v3.12-rc1.
> > Is it
On Tue, 2013-10-08 at 09:45 -0400, Douglas Gilbert wrote:
On 13-10-08 02:44 AM, vaughan wrote:
Hi Madper,
CC to Douglas to get comments.
I use the rw_semaphore o_sem to protect excl open, introduced in commit
15b06f9a02406e5460001db6d5af5c738cd3d4e7 since v3.12-rc1.
Is it forbidden to
On 13-10-16 09:24 AM, James Bottomley wrote:
On Tue, 2013-10-08 at 09:45 -0400, Douglas Gilbert wrote:
On 13-10-08 02:44 AM, vaughan wrote:
Hi Madper,
CC to Douglas to get comments.
I use the rw_semaphore o_sem to protect excl open, introduced in commit
On 10/17/2013 06:41 AM, Douglas Gilbert wrote:
That seems to be the case. Vaughan acknowledged the
problem and forwarded it to me 8 days ago. Yes, it
seems to be a no-no to hold a any kernel semaphore
when returning to the user space; in this case from
sg_open(). I was hoping a revised patch
]
[ 12.864681] [ BUG: lock held when returning to user space! ]
[ 12.864682] 3.12.0-rc2 #1 Not tainted
[ 12.864683]
[ 12.864684] iprinit/719 is leaving the kernel with locks still held
c2 the dmesg shows following logs:
>> [ 12.864680] ============
>> [ 12.864681] [ BUG: lock held when returning to user space! ]
>> [ 12.864682] 3.12.0-rc2 #1 Not tainted
>> [ 12.864683]
>&
]
[ 12.864681] [ BUG: lock held when returning to user space! ]
[ 12.864682] 3.12.0-rc2 #1 Not tainted
[ 12.864683]
[ 12.864684] iprinit/719 is leaving the kernel with locks still held
]
[ 12.864681] [ BUG: lock held when returning to user space! ]
[ 12.864682] 3.12.0-rc2 #1 Not tainted
[ 12.864683]
[ 12.864684] iprinit/719 is leaving the kernel with locks still held
g logs:
> [ 12.864680]
> [ 12.864681] [ BUG: lock held when returning to user space! ]
> [ 12.864682] 3.12.0-rc2 #1 Not tainted
> [ 12.864683]
> [ 12.864684] iprinit/719 is leaving
:
[ 12.864680]
[ 12.864681] [ BUG: lock held when returning to user space! ]
[ 12.864682] 3.12.0-rc2 #1 Not tainted
[ 12.864683]
[ 12.864684] iprinit/719 is leaving the kernel with locks still
Hi all,
With kernel3.12-rc2 the dmesg shows following logs:
[ 12.864680]
[ 12.864681] [ BUG: lock held when returning to user space! ]
[ 12.864682] 3.12.0-rc2 #1 Not tainted
[ 12.864683
Hi all,
With kernel3.12-rc2 the dmesg shows following logs:
[ 12.864680]
[ 12.864681] [ BUG: lock held when returning to user space! ]
[ 12.864682] 3.12.0-rc2 #1 Not tainted
[ 12.864683
t; > >
> > > > Signed-off-by: Davidlohr Bueso
> > > > Tested-by: Sedat Dilek
> > > > Cc: Rik van Riel
> > > > Cc: Manfred Spraul
> > > > Signed-off-by: Andrew Morton
>
Signed-off-by: Andrew Morton a...@linux-foundation.org
[ 20.702156]
[ 20.702493]
[ 20.703511] [ BUG: lock held when returning to user space! ]
[ 20.704532] 3.11.0-rc1-next-20130719 #50 Not tainted
[ 20.705416
: Sedat Dilek
> > > Cc: Rik van Riel
> > > Cc: Manfred Spraul
> > > Signed-off-by: Andrew Morton
> > >
> > > [ 20.702156]
> > > [ 20.702493]
> > > [ 20.703511] [ BUG: lock held when returning to user space! ]
[ 20.702156]
[ 20.702493]
[ 20.703511] [ BUG: lock held when returning to user space! ]
[ 20.704532] 3.11.0-rc1-next-20130719 #50 Not tainted
[ 20.705416]
[ 20.706425] trinity-child0/174
>
> > Signed-off-by: Davidlohr Bueso
> > Tested-by: Sedat Dilek
> > Cc: Rik van Riel
> > Cc: Manfred Spraul
> > Signed-off-by: Andrew Morton
> >
> > [ 20.702156]
> > [ 20.702493] =
t; Signed-off-by: Andrew Morton
>
> [ 20.702156]
> [ 20.702493] ============
> [ 20.703511] [ BUG: lock held when returning to user space! ]
> [ 20.704532] 3.11.0-rc1-next-20130719 #50 Not tainted
> [ 20.705416]
...@redhat.com
Cc: Manfred Spraul manf...@colorfullife.com
Signed-off-by: Andrew Morton a...@linux-foundation.org
[ 20.702156]
[ 20.702493]
[ 20.703511] [ BUG: lock held when returning to user space! ]
[ 20.704532] 3.11.0-rc1-next
: lock held when returning to user space! ]
[ 20.704532] 3.11.0-rc1-next-20130719 #50 Not tainted
[ 20.705416]
[ 20.706425] trinity-child0/174 is leaving the kernel with locks still
held!
[ 20.707638] 1 lock held by trinity-child0
On Sun, 28 Oct 2007 00:47:15 +0200 (CEST)
Jiri Kosina <[EMAIL PROTECTED]> wrote:
> Yes, but the fact is that is really is invalid use of mutex -- because the
> mutex owner could become seriously wrong after fork() or sending the
> filedescriptor through unix socket ... this easily leads to
On Sun, 28 Oct 2007 12:12:19 +0100 (CET)
Jiri Kosina <[EMAIL PROTECTED]> wrote:
> On Sat, 27 Oct 2007, Andrew Morton wrote:
>
> > It's a fairly daft thing to do. I think it'd be saner to teach rtc about
> > test_and_set_bit() personally..
>
>
> From: Jiri Kosina <[EMAIL PROTECTED]>
>
>
On Sun, 28 Oct 2007 00:47:15 +0200 (CEST)
Jiri Kosina [EMAIL PROTECTED] wrote:
Yes, but the fact is that is really is invalid use of mutex -- because the
mutex owner could become seriously wrong after fork() or sending the
filedescriptor through unix socket ... this easily leads to broken
On Sun, 28 Oct 2007 12:12:19 +0100 (CET)
Jiri Kosina [EMAIL PROTECTED] wrote:
On Sat, 27 Oct 2007, Andrew Morton wrote:
It's a fairly daft thing to do. I think it'd be saner to teach rtc about
test_and_set_bit() personally..
From: Jiri Kosina [EMAIL PROTECTED]
RTC: convert mutex
(CC list stripped)
On Sat, 27 Oct 2007, Andrew Morton wrote:
> It's a fairly daft thing to do. I think it'd be saner to teach rtc about
> test_and_set_bit() personally..
From: Jiri Kosina <[EMAIL PROTECTED]>
RTC: convert mutex to bitfield
RTC code is using mutex to assure exclusive access
(CC list stripped)
On Sat, 27 Oct 2007, Andrew Morton wrote:
It's a fairly daft thing to do. I think it'd be saner to teach rtc about
test_and_set_bit() personally..
From: Jiri Kosina [EMAIL PROTECTED]
RTC: convert mutex to bitfield
RTC code is using mutex to assure exclusive access to
On Sat, 27 Oct 2007, Peter Zijlstra wrote:
> > > [ 592.752781]
> > > [ 592.753478] [ BUG: lock held when returning to user space! ]
> > > [ 592.753880]
> > > [
On Sat, 27 Oct 2007 18:09:29 +0200
Peter Zijlstra <[EMAIL PROTECTED]> wrote:
>
>
> Right, the fd could be transferred using unix sockets or fork(). That
> would indeed seriously break a mutex.
>
or just multi-threaded app..
>
--
If you want to reach me at my work email, use [EMAIL
On Sat, 27 Oct 2007, Peter Zijlstra wrote:
>
> Now I could probably come up with an annotation to hide it, but what do
> other people think, Ingo, Linus, Andrew, do we want to keep kernel locks
> held over userspace?
Definitely not a sane thing to do. It should use ref-counting and/or a
y in dmesg after booting current git (
> > > ec3b67c11df42362ccda81261d62829042f223f0 ) :
> > > ...
> > > [ 592.752777]
> > > [ 592.752781] ============
> > > [ 592.753478] [ BUG: lock held when returning to user space! ]
> > > [ 592.753880] ---
gt; [ 592.752777]
> > [ 592.752781] ========
> > [ 592.753478] [ BUG: lock held when returning to user space! ]
> > [ 592.753880]
> > [ 592.754262] hwclock/1452 is leaving the kernel with lock
; ec3b67c11df42362ccda81261d62829042f223f0 ) :
> > > ...
> > > [ 592.752777]
> > > [ 592.752781] ================
> > > [ 592.753478] [ BUG: lock held when returning to user space! ]
> > > [ 592.753880] -
592.752777]
> > [ 592.752781] ========
> > [ 592.753478] [ BUG: lock held when returning to user space! ]
> > [ 592.753880]
> > [ 592.754262] hwclock/1452 is leaving the kernel with locks still held!
> > [ 592
On Sat, 27 Oct 2007, Gabriel C wrote:
> I found that today in dmesg after booting current git (
> ec3b67c11df42362ccda81261d62829042f223f0 ) :
> ...
> [ 592.752777]
> [ 592.752781]
> [ 592.753478] [ BUG: lock held when retur
Hi,
I found that today in dmesg after booting current git (
ec3b67c11df42362ccda81261d62829042f223f0 ) :
...
[ 592.752777]
[ 592.752781]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880
Hi,
I found that today in dmesg after booting current git (
ec3b67c11df42362ccda81261d62829042f223f0 ) :
...
[ 592.752777]
[ 592.752781]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880
On Sat, 27 Oct 2007, Gabriel C wrote:
I found that today in dmesg after booting current git (
ec3b67c11df42362ccda81261d62829042f223f0 ) :
...
[ 592.752777]
[ 592.752781]
[ 592.753478] [ BUG: lock held when returning to user space
]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880]
[ 592.754262] hwclock/1452 is leaving the kernel with locks still held!
[ 592.754655] 1 lock held by hwclock/1452:
[ 592.755007] #0: (rtc-char_lock
) :
...
[ 592.752777]
[ 592.752781]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880]
[ 592.754262] hwclock/1452 is leaving the kernel with locks still held
]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880]
[ 592.754262] hwclock/1452 is leaving the kernel with locks still
held! [ 592.754655] 1 lock held by hwclock/1452:
[ 592.755007] #0: (rtc
) :
...
[ 592.752777]
[ 592.752781]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880]
[ 592.754262] hwclock/1452 is leaving the kernel with locks still
held
On Sat, 27 Oct 2007, Peter Zijlstra wrote:
Now I could probably come up with an annotation to hide it, but what do
other people think, Ingo, Linus, Andrew, do we want to keep kernel locks
held over userspace?
Definitely not a sane thing to do. It should use ref-counting and/or a
single
On Sat, 27 Oct 2007 18:09:29 +0200
Peter Zijlstra [EMAIL PROTECTED] wrote:
Right, the fd could be transferred using unix sockets or fork(). That
would indeed seriously break a mutex.
or just multi-threaded app..
--
If you want to reach me at my work email, use [EMAIL PROTECTED]
On Sat, 27 Oct 2007, Peter Zijlstra wrote:
[ 592.752781]
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880]
[ 592.754262] hwclock/1452 is leaving the kernel
46 matches
Mail list logo