From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 12793] ext4 gives wrong errno with too long extended attribute values
Date: Fri, 7 Aug 2009 15:02:18 GMT [thread overview]
Message-ID: <200908071502.n77F2I8X018452@demeter.kernel.org> (raw)
In-Reply-To: <bug-12793-13602@http.bugzilla.kernel.org/>
http://bugzilla.kernel.org/show_bug.cgi?id=12793
Narendra Prasad Madanapalli <narendramind@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |narendramind@gmail.com
--- Comment #1 from Narendra Prasad Madanapalli <narendramind@gmail.com> 2009-08-07 15:02:16 ---
The following patch fixes the issue.
====Patch starts
iff -uNr linux-2.6.30.3-orig/fs/ext4/xattr.c linux-2.6.30.3-fix/fs/ext4/xattr.c
--- linux-2.6.30.3-orig/fs/ext4/xattr.c 2009-07-25 03:17:51.000000000 +0530
+++ linux-2.6.30.3-fix/fs/ext4/xattr.c 2009-08-07 20:27:40.907412651 +0530
@@ -698,7 +698,7 @@
#define header(x) ((struct ext4_xattr_header *)(x))
if (i->value && i->value_len > sb->s_blocksize)
- return -ENOSPC;
+ return -E2BIG;
if (s->base) {
ce = mb_cache_entry_get(ext4_xattr_cache, bs->bh->b_bdev,
bs->bh->b_blocknr);
====Patch ends
Ran test_xattr.py on the kernel with above fix, it terminates with OSError 7.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
next prev parent reply other threads:[~2009-08-07 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-01 12:40 [Bug 12793] New: ext4 gives wrong errno with too long extended attribute values bugme-daemon
2009-08-07 15:02 ` bugzilla-daemon [this message]
2009-08-11 2:58 ` [Bug 12793] " bugzilla-daemon
[not found] <bug-12793-13602@https.bugzilla.kernel.org/>
2012-05-30 14:19 ` bugzilla-daemon
2012-05-30 14:19 ` bugzilla-daemon
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=200908071502.n77F2I8X018452@demeter.kernel.org \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.