public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* file locking BUG
@ 2004-02-27 14:37 Gerd Knorr
  2004-03-03 14:55 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Knorr @ 2004-02-27 14:37 UTC (permalink / raw)
  To: Kernel List

  Hi,

Got a BUG today.  Happened while playing with user-mode-linux, which
uses locks for the image files presenting the virtual hard disks.

The UML kernel complained that it can't lock the disk:

  F_SETLK failed, file already locked by pid 24612
  Failed to lock '/work/uml/yast2/harddisk.img', err = 11

There is no process (any more) with pid 24612 through.  Checked the
kernel log on the host and found the BUG message below ...

  Gerd

------------[ cut here ]------------
kernel BUG at fs/locks.c:1727!
invalid operand: 0000 [#2]
CPU:    0
EIP:    0060:[<c016049c>]    Tainted: PF 
EFLAGS: 00010246
EIP is at locks_remove_flock+0x3c/0x60
eax: f6ea7ea8   ebx: d510cc98   ecx: d510cc14   edx: 00000000
esi: f634d980   edi: d510cc14   ebp: db8dfe80   esp: e97a7f40
ds: 007b   es: 007b   ss: 0068
Process linux (pid: 24748, threadinfo=e97a6000 task=f649d210)
Stack: f634d980 f7fec700 c014f4a2 f634d980 00000000 c76c5300 00000001 c014ca63 
       00000f7f 00000009 c76c5300 c011e16f c7158880 c71588a0 f649d210 00000100 
       c011ee9a c03e1760 c7158880 e77feec0 40001000 c03e1760 00000001 00000000 
Call Trace:
 [<c014f4a2>] __fput+0x22/0x100
 [<c014ca63>] filp_close+0x43/0x70
 [<c011e16f>] put_files_struct+0x4f/0xa0
 [<c011ee9a>] do_exit+0x14a/0xa10
 [<c011f787>] do_group_exit+0x27/0x70
 [<c0108e17>] syscall_call+0x7/0xb

Code: 0f 0b bf 06 f5 fb 2f c0 eb da 5b 5e c3 89 d8 e8 d0 fd ff ff 
 nfs warning: mount version older than kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: file locking BUG
  2004-02-27 14:37 file locking BUG Gerd Knorr
@ 2004-03-03 14:55 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2004-03-03 14:55 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: Kernel List

  Hello!

> Got a BUG today.  Happened while playing with user-mode-linux, which
> uses locks for the image files presenting the virtual hard disks.
> 
> The UML kernel complained that it can't lock the disk:
> 
>   F_SETLK failed, file already locked by pid 24612
>   Failed to lock '/work/uml/yast2/harddisk.img', err = 11
> 
> There is no process (any more) with pid 24612 through.  Checked the
> kernel log on the host and found the BUG message below ...
  I was also hitting the bug - host kernel 2.4.23-skas3. It was almost
100% reproducible by running uml under GDB and after it boots let GDB
kill it. I didn't see any Ooops in my case.

								Honza

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-03 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 14:37 file locking BUG Gerd Knorr
2004-03-03 14:55 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox