Skip to contentSkip to conversation

problems with very-long symlinks eliminated in reiserfs

PATCH New Oleg Drokin 1 participant 1 message Jan 8, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 problems with very-long symlinks eliminated in reiserfs

Hello!

This patch fixes following problem:
Symlink-body length check was made against incorrect value, allowing for too long nodes to be inserted into tree. This might lead to obscure warnings in some cases.

Please apply.

Bye,
Oleg

fs/reiserfs/namei.c renamed from fs/reiserfs/namei.c.orig +1 -1
@@ -876,7 +876,7 @@
     }
 
     item_len = ROUND_UP (strlen (symname));
-    if (item_len > MAX_ITEM_LEN (dir->i_sb->s_blocksize)) {
+    if (item_len > MAX_DIRECT_ITEM_LEN (dir->i_sb->s_blocksize)) {
 	iput(inode) ;
 	return -ENAMETOOLONG;
     }