Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-04 Thread Cyrill Gorcunov
[Jan Kara - Fri, Jun 01, 2007 at 11:10:36PM +0200] | On Wed 30-05-07 16:46:28, Eric Sandeen wrote: | > Jan Kara wrote: | > > Hello, | > > | > > On Thu 24-05-07 19:05:54, Jan Kara wrote: | > >> Hello, | > >> | > >> attached is a patch that fixes possible leakage of free blocks / use of | > >>

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-03 Thread Cyrill Gorcunov
[Cyrill Gorcunov - Sun, Jun 03, 2007 at 10:28:40AM +0400] | [Andrew Morton - Sat, Jun 02, 2007 at 03:49:42PM -0700] | | On Sun, 3 Jun 2007 00:01:46 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | | | | > [Andrew Morton - Sat, Jun 02, 2007 at 12:16:16PM -0700] | | > [...snip...] | | > | | | > |

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Cyrill Gorcunov
[Andrew Morton - Sat, Jun 02, 2007 at 03:49:42PM -0700] | On Sun, 3 Jun 2007 00:01:46 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | | > [Andrew Morton - Sat, Jun 02, 2007 at 12:16:16PM -0700] | > [...snip...] | > | | > | No, the problem is that the patch caused the kernel to take inode_lock

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Andrew Morton
On Sun, 3 Jun 2007 00:01:46 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > [Andrew Morton - Sat, Jun 02, 2007 at 12:16:16PM -0700] > [...snip...] > | > | No, the problem is that the patch caused the kernel to take inode_lock > | within the newly-added drop_inode(), btu drop_inode() is already

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Cyrill Gorcunov
[Andrew Morton - Sat, Jun 02, 2007 at 12:16:16PM -0700] [...snip...] | | No, the problem is that the patch caused the kernel to take inode_lock | within the newly-added drop_inode(), btu drop_inode() is already called | under inode_lock. | | It has nothing to do with lock_kernel() and it has noth

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Andrew Morton
On Sat, 2 Jun 2007 22:57:07 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > [Andrew Morton - Sat, Jun 02, 2007 at 10:32:03AM -0700] > | On Sat, 2 Jun 2007 18:06:19 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > | > | > [Andrew Morton - Sat, Jun 02, 2007 at 12:06:45AM -0700] > | > | On Sat,

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Cyrill Gorcunov
[Andrew Morton - Sat, Jun 02, 2007 at 10:32:03AM -0700] | On Sat, 2 Jun 2007 18:06:19 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | | > [Andrew Morton - Sat, Jun 02, 2007 at 12:06:45AM -0700] | > | On Sat, 2 Jun 2007 10:59:23 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | > | | > | > [A

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Andrew Morton
On Sat, 2 Jun 2007 18:06:19 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > [Andrew Morton - Sat, Jun 02, 2007 at 12:06:45AM -0700] > | On Sat, 2 Jun 2007 10:59:23 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > | > | > [Andrew Morton - Fri, Jun 01, 2007 at 11:54:22PM -0700] > | > | On Sat,

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Cyrill Gorcunov
[Andrew Morton - Sat, Jun 02, 2007 at 12:06:45AM -0700] | On Sat, 2 Jun 2007 10:59:23 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | | > [Andrew Morton - Fri, Jun 01, 2007 at 11:54:22PM -0700] | > | On Sat, 2 Jun 2007 10:34:03 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | > | | > | > |

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Andrew Morton
On Sat, 2 Jun 2007 10:59:23 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > [Andrew Morton - Fri, Jun 01, 2007 at 11:54:22PM -0700] > | On Sat, 2 Jun 2007 10:34:03 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > | > | > | That patch is DOA, methinks. > | > | > | > > | > Andrew, what does

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-02 Thread Cyrill Gorcunov
[Andrew Morton - Fri, Jun 01, 2007 at 11:54:22PM -0700] | On Sat, 2 Jun 2007 10:34:03 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | | > | That patch is DOA, methinks. | > | | > | > Andrew, what does it mean - "DOA"? Dead on arrival? | | yes - I dropped it. | But that could lead to reject

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Andrew Morton
On Sat, 2 Jun 2007 10:34:03 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > | That patch is DOA, methinks. > | > > Andrew, what does it mean - "DOA"? Dead on arrival? yes - I dropped it. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EM

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Cyrill Gorcunov
[Andrew Morton - Fri, Jun 01, 2007 at 10:43:39PM -0700] | On Sat, 02 Jun 2007 00:17:51 -0500 Eric Sandeen <[EMAIL PROTECTED]> wrote: | | > Andrew Morton wrote: | > > On Fri, 01 Jun 2007 17:37:49 -0500 | > > Eric Sandeen <[EMAIL PROTECTED]> wrote: | > | > >> going for the inode_lock twice? | > >>

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Andrew Morton
On Sat, 02 Jun 2007 00:17:51 -0500 Eric Sandeen <[EMAIL PROTECTED]> wrote: > Andrew Morton wrote: > > On Fri, 01 Jun 2007 17:37:49 -0500 > > Eric Sandeen <[EMAIL PROTECTED]> wrote: > > >> going for the inode_lock twice? > >> > > > > lockdep should catch that. > > > > hey that's a good idea...!

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Eric Sandeen
Andrew Morton wrote: On Fri, 01 Jun 2007 17:37:49 -0500 Eric Sandeen <[EMAIL PROTECTED]> wrote: going for the inode_lock twice? lockdep should catch that. hey that's a good idea...! *sigh* sometimes I worry about myself... but hey at least I got it right. :) =

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Andrew Morton
On Fri, 01 Jun 2007 17:37:49 -0500 Eric Sandeen <[EMAIL PROTECTED]> wrote: > Jan Kara wrote: > > Thanks for info - I'm now mostly out of email for a few days but I'll > > have a look at it as soon as I return. > > > > Honza > > Here w

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Eric Sandeen
Jan Kara wrote: Thanks for info - I'm now mostly out of email for a few days but I'll have a look at it as soon as I return. Honza Here we go: [1]kdb> btp 3263 Stack traceback for pid 3263 0x81006f1b8100 3263 3247

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Eric Sandeen
Jan Kara wrote: but iput goes iput->iput_final->drop_inode->udf_drop_inode->lock_kernel() again As Andrew already wrote, BKL is free to recurse... looking for the right way around it but figured I'd ping you early :) Thanks for info - I'm now mostly out of email for a few days but I'll h

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Jan Kara
On Wed 30-05-07 16:46:28, Eric Sandeen wrote: > Jan Kara wrote: > > Hello, > > > > On Thu 24-05-07 19:05:54, Jan Kara wrote: > >> Hello, > >> > >> attached is a patch that fixes possible leakage of free blocks / use of > >> free blocks in UDF (which spilled nice assertion failures I've added

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Cyrill Gorcunov
[Eric Sandeen - Fri, Jun 01, 2007 at 12:51:34PM -0500] | Cyrill Gorcunov wrote: | >[Eric Sandeen - Fri, Jun 01, 2007 at 12:17:53PM -0500] | >| Andrew Morton wrote: | >| | >| >Recursive lock_kernel() is OK. | >| | >| Oh, it is? Clearly I am not well versed in the BKL... that's probably a | >| go

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Cyrill Gorcunov
[Eric Sandeen - Fri, Jun 01, 2007 at 12:51:34PM -0500] | Cyrill Gorcunov wrote: | >[Eric Sandeen - Fri, Jun 01, 2007 at 12:17:53PM -0500] | >| Andrew Morton wrote: | >| | >| >Recursive lock_kernel() is OK. | >| | >| Oh, it is? Clearly I am not well versed in the BKL... that's probably a | >| go

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Eric Sandeen
Cyrill Gorcunov wrote: [Eric Sandeen - Fri, Jun 01, 2007 at 12:17:53PM -0500] | Andrew Morton wrote: | | >Recursive lock_kernel() is OK. | | Oh, it is? Clearly I am not well versed in the BKL... that's probably a | good thing :) | | Ok, let me look into it further. I changed lock_kernel

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Cyrill Gorcunov
[Eric Sandeen - Fri, Jun 01, 2007 at 12:17:53PM -0500] | Andrew Morton wrote: | | >Recursive lock_kernel() is OK. | | Oh, it is? Clearly I am not well versed in the BKL... that's probably a | good thing :) | | Ok, let me look into it further. I changed lock_kernel to | udf_lock_kernel to

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Eric Sandeen
Andrew Morton wrote: Recursive lock_kernel() is OK. Oh, it is? Clearly I am not well versed in the BKL... that's probably a good thing :) Ok, let me look into it further. I changed lock_kernel to udf_lock_kernel to complain & backtrace if we re-lock, and it always immediately hung a

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Cyrill Gorcunov
[Andrew Morton - Fri, Jun 01, 2007 at 10:04:25AM -0700] | On Fri, 1 Jun 2007 20:49:26 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | | > [Eric Sandeen - Thu, May 31, 2007 at 12:46:15PM -0500] | > | Cyrill Gorcunov wrote: | > | | > | >Eric, could you please try the following: | > | > | > | >1)

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Andrew Morton
On Fri, 1 Jun 2007 20:49:26 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > [Eric Sandeen - Thu, May 31, 2007 at 12:46:15PM -0500] > | Cyrill Gorcunov wrote: > | > | >Eric, could you please try the following: > | > > | >1) declare the spinlock in the top of inode.c as > | > > | > DEFINE_SPIN

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-06-01 Thread Cyrill Gorcunov
[Eric Sandeen - Thu, May 31, 2007 at 12:46:15PM -0500] | Cyrill Gorcunov wrote: | | >Eric, could you please try the following: | > | >1) declare the spinlock in the top of inode.c as | > | > DEFINE_SPINLOCK(udf_drop_lock); | > | >2) replace in udf_drop_inode() | > | > kernel_lock -> spin_l

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-05-31 Thread Eric Sandeen
Cyrill Gorcunov wrote: Eric, could you please try the following: 1) declare the spinlock in the top of inode.c as DEFINE_SPINLOCK(udf_drop_lock); 2) replace in udf_drop_inode() kernel_lock -> spin_lock(&udf_drop_lock); kernel_unlock -> spin_unlock(&udf_drop_lock); I'

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-05-31 Thread Cyrill Gorcunov
[Eric Sandeen - Wed, May 30, 2007 at 05:22:23PM -0500] | Eric Sandeen wrote: | | > Jan, something seems busted here. I'm getting lockups when testing udf | > on a single cpu with this last patch in place... | > | > I think it's the BKL stumbling on itself. | | To demonstrate, try this: | | # B

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-05-31 Thread Cyrill Gorcunov
[Eric Sandeen - Wed, May 30, 2007 at 05:22:23PM -0500] | Eric Sandeen wrote: | | > Jan, something seems busted here. I'm getting lockups when testing udf | > on a single cpu with this last patch in place... | > | > I think it's the BKL stumbling on itself. | | To demonstrate, try this: | | # B

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-05-30 Thread Eric Sandeen
Eric Sandeen wrote: > Jan, something seems busted here. I'm getting lockups when testing udf > on a single cpu with this last patch in place... > > I think it's the BKL stumbling on itself. To demonstrate, try this: # BIGFILENAME=`seq -s '' 1 1000` # ln -s $BIGFILENAME foo instant deadlock :(

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-05-30 Thread Eric Sandeen
Jan Kara wrote: > Hello, > > On Thu 24-05-07 19:05:54, Jan Kara wrote: >> Hello, >> >> attached is a patch that fixes possible leakage of free blocks / use of >> free blocks in UDF (which spilled nice assertion failures I've added in my >> first round of patches). More details in the changel

Re: [PATCH 2/2] Fix possible leakage of blocks in UDF

2007-05-24 Thread Jan Kara
Hello, On Thu 24-05-07 19:05:54, Jan Kara wrote: > Hello, > > attached is a patch that fixes possible leakage of free blocks / use of > free blocks in UDF (which spilled nice assertion failures I've added in my > first round of patches). More details in the changelog. Andrew, please apply.