public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org,
	reiserfs-dev@namesys.com
Subject: [PATCH] problems with very-long symlinks eliminated in reiserfs
Date: Tue, 8 Jan 2002 20:05:49 +0300	[thread overview]
Message-ID: <20020108200549.A5051@namesys.com> (raw)

[-- 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;
     }

                 reply	other threads:[~2002-01-08 17:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020108200549.A5051@namesys.com \
    --to=green@namesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=reiserfs-dev@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox