problems with very-long symlinks eliminated in reiserfs
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 ; }