Skip to contentSkip to conversation

VFS bug? Trying to free free buffer

DISCUSSION Alexey Vyskubov 2 participants 2 messages Jun 8, 2001 – Jun 10, 2001 Isofs filesystem

lore
Share & tools
lore
#0 lore raw

Hello.

Kernel 2.4.5.

$ sudo mount -o iocharset=garbage /dev/cdrom /cdrom

VFS: brelse: Trying to free free buffer

Signature · 1 line
Alexey
#1 lore raw

Hello,

At Fri, 8 Jun 2001 16:42:54 +0300,

Quoted 8 lines · Alexey Vyskubov

Hello.

Kernel 2.4.5.

$ sudo mount -o iocharset=garbage /dev/cdrom /cdrom

VFS: brelse: Trying to free free buffer

I think this is the ISOFS's bug. If invalid iocharset is specified
as a mount option, isofs_read_super() tries to free the buffer_head twice.

This patch may help.

fs/isofs/inode.c +1 -1
diff -r -u -N linux.org/fs/isofs/inode.c linux/fs/isofs/inode.c
@@ -744,7 +744,7 @@
 		if (! s->u.isofs_sb.s_nls_iocharset) {
 			/* Fail only if explicit charset specified */
 			if (opt.iocharset)
-				goto out_freebh;
+				goto out_unlock;
 			s->u.isofs_sb.s_nls_iocharset = load_nls_default();
 		}
 	}