public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] hfs, hfsplus: don't leak s_fs_info and fix an oops
@ 2005-10-07  4:39 Horms
  2005-10-07  7:10 ` Colin Leroy
  0 siblings, 1 reply; 4+ messages in thread
From: Horms @ 2005-10-07  4:39 UTC (permalink / raw)
  To: Roman Zippel; +Cc: Colin Leroy, Marcelo Tosatti, linux-kernel, debian-kernel

I have been looking over CAN-2005-3109, better known as
the hfs, hfsplus leak and oops, and I am wondering if the 
problem is present in 2.4

I took a look at making a backport, and it seems that
some of the problems are there, but without a deeper inspection
of the code its difficult to tell if the problems manifest or not.

For reference, here is the 2.6 variant of the change:
http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=945b092011c6af71a0107be96e119c8c08776f3f

I can futher my backport effort and post it for inspection if need be.

-- 
Horms

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

* Re: [PATCH] hfs, hfsplus: don't leak s_fs_info and fix an oops
  2005-10-07  4:39 [PATCH] hfs, hfsplus: don't leak s_fs_info and fix an oops Horms
@ 2005-10-07  7:10 ` Colin Leroy
  2005-10-07  7:31   ` Horms
  2005-11-29  4:16   ` Horms
  0 siblings, 2 replies; 4+ messages in thread
From: Colin Leroy @ 2005-10-07  7:10 UTC (permalink / raw)
  To: Horms; +Cc: Roman Zippel, Marcelo Tosatti, linux-kernel, debian-kernel

On 07 Oct 2005 at 13h10, Horms wrote:

Hi, 

> I took a look at making a backport, and it seems that
> some of the problems are there, but without a deeper inspection
> of the code its difficult to tell if the problems manifest or not.

That was easy to get the oops:

$ dd if=/dev/zero of=im_not_hfsplus count=10 #for example
$ mkdir test_dir
$ sudo mount -o loop -t hfsplus ./im_not_hfsplus ./testdir
$ dmesg

-- 
Colin

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

* Re: [PATCH] hfs, hfsplus: don't leak s_fs_info and fix an oops
  2005-10-07  7:10 ` Colin Leroy
@ 2005-10-07  7:31   ` Horms
  2005-11-29  4:16   ` Horms
  1 sibling, 0 replies; 4+ messages in thread
From: Horms @ 2005-10-07  7:31 UTC (permalink / raw)
  To: Colin Leroy; +Cc: Roman Zippel, Marcelo Tosatti, linux-kernel, debian-kernel

On Fri, Oct 07, 2005 at 09:10:05AM +0200, Colin Leroy wrote:
> On 07 Oct 2005 at 13h10, Horms wrote:
> 
> Hi, 
> 
> > I took a look at making a backport, and it seems that
> > some of the problems are there, but without a deeper inspection
> > of the code its difficult to tell if the problems manifest or not.
> 
> That was easy to get the oops:
> 
> $ dd if=/dev/zero of=im_not_hfsplus count=10 #for example
> $ mkdir test_dir
> $ sudo mount -o loop -t hfsplus ./im_not_hfsplus ./testdir
> $ dmesg

Silly me, I should have thought of that :-)

-- 
Horms

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

* Re: [PATCH] hfs, hfsplus: don't leak s_fs_info and fix an oops
  2005-10-07  7:10 ` Colin Leroy
  2005-10-07  7:31   ` Horms
@ 2005-11-29  4:16   ` Horms
  1 sibling, 0 replies; 4+ messages in thread
From: Horms @ 2005-11-29  4:16 UTC (permalink / raw)
  To: Colin Leroy; +Cc: Roman Zippel, Marcelo Tosatti, linux-kernel, debian-kernel

On Fri, Oct 07, 2005 at 09:10:05AM +0200, Colin Leroy wrote:
> On 07 Oct 2005 at 13h10, Horms wrote:
> 
> Hi, 
> 
> > I took a look at making a backport, and it seems that
> > some of the problems are there, but without a deeper inspection
> > of the code its difficult to tell if the problems manifest or not.
> 
> That was easy to get the oops:
> 
> $ dd if=/dev/zero of=im_not_hfsplus count=10 #for example
> $ mkdir test_dir
> $ sudo mount -o loop -t hfsplus ./im_not_hfsplus ./testdir
> $ dmesg

After an extended delay I have been able to confirm that the above
commands do not cause 2.4 (Debian's 2.4.27) to do anything unusal.

Mount just reports:
  mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems

And there is nothing exciting in dmsg:
  loop: loaded (max 8 devices)
  HFS+-fs: unable to find HFS+ superblock
  HFS+-fs: unable to find HFS+ superblock
  HFS+-fs: unable to find HFS+ superblock

Thus it seems that 2.4 does not suffer from this bug.

-- 
Horms

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

end of thread, other threads:[~2005-11-29  4:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-07  4:39 [PATCH] hfs, hfsplus: don't leak s_fs_info and fix an oops Horms
2005-10-07  7:10 ` Colin Leroy
2005-10-07  7:31   ` Horms
2005-11-29  4:16   ` Horms

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