Re: [PATCH] ext3/4: fix uninitialized bs in ext3/4_xattr_set_handle()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kalpak Shah
Date: Tuesday, May 13, 2008 - 1:48 am

Hi Eric,

On Mon, 2008-05-12 at 19:18 -0500, Eric Sandeen wrote:

Attached is a simple script to reproduce the problem.


I don't quite understand what you mean but the problem is that in
ext3_xattr_set_handle(), the EA being replaced is found in the
inode-body (by function ext3_xattr_ibody_find) and hence
ext3_xattr_block_find() is not called initially. So in this test-case
when we have to delete an EA from the inode and add it into the external
block, bs turns out to be uninitialized and therefore a new EA block
gets allocated instead of the existing one being used.

Thanks,
Kalpak

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ext3/4: fix uninitialized bs in ext3/4_xattr_s ..., Kalpak Shah, (Tue May 13, 1:48 am)
Re: [PATCH] ext3/4: fix uninitialized bs in ext3/4_xattr_s ..., Andreas Gruenbacher, (Wed May 14, 3:56 am)