public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] problems with very-long symlinks eliminated in reiserfs
@ 2002-01-08 17:05 Oleg Drokin
  0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2002-01-08 17:05 UTC (permalink / raw)
  To: marcelo, linux-kernel, reiserfs-dev

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

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

[-- Attachment #2: long_symlinks_fix.diff --]
[-- Type: text/plain, Size: 365 bytes --]

--- linux/fs/reiserfs/namei.c.orig	Tue Jan  8 15:39:24 2002
+++ linux/fs/reiserfs/namei.c	Tue Jan  8 15:39:46 2002
@@ -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;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-08 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-08 17:05 [PATCH] problems with very-long symlinks eliminated in reiserfs Oleg Drokin

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