lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E259C7A.5030506@itwm.fraunhofer.de>
Date:	Tue, 19 Jul 2011 17:02:18 +0200
From:	Bernd Schubert <bernd.schubert@...m.fraunhofer.de>
To:	"Ted Ts'o" <tytso@....edu>
CC:	linux-ext4@...r.kernel.org, adilger@...mcloud.com,
	colyli@...il.com, Jan Kara <jack@...e.cz>
Subject: Re: [PATCH 1/3] ext4: Fix compilation with -DDX_DEBUG v2

On 07/17/2011 01:41 AM, Ted Ts'o wrote:
> On Mon, Jun 20, 2011 at 10:28:49PM +0200, Bernd Schubert wrote:
>> changes from v1 ->  v2:
>> Use %p as suggested by Coly Li
> 
> The problem with %p:
> 
>      1)  It prints numbers that will never be larger than 4096 with as
>          "00000012"
>      2)  It prints the number 0 as "  (null)".
> 
> These two things mean that we get messages like this:
> 
> names: foo:7141e93c.  (null) bar:745c4a06.00000012 baz:79817344.00000024 quux:7e85a800.00000036 ...
> 
> instead of:
> 
> names: foo:7141e93c.0 bar:745c4a06.12 baz:79817344.24 quux:7e85a800.36 ...
> 
> (did anyone even try this and check to see what would happen with %p?)
> 
> I've applied this patch, with a change so that we print the number
> with %u and with an explicit cast to unsigned.
> 
> 						- Ted

Ooops, sorry, I should have checked %p output more thoroughly.

Could you please also apply almost the same patch for ext3? 


ext3: Fix compilation with -DDX_DEBUG v2

From: Bernd Schubert <bernd.schubert@...m.fraunhofer.de>

Compilation of ext3/namei.c brought up an error and warning messages
when compiled with -DDX_DEBUG.

Signed-off-by: Bernd Schubert<bernd.schubert@...m.fraunhofer.de>
---
 fs/ext3/namei.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c
index 34b6d9b..e54e87a 100644
--- a/fs/ext3/namei.c
+++ b/fs/ext3/namei.c
@@ -287,7 +287,7 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_ent
 				while (len--) printk("%c", *name++);
 				ext3fs_dirhash(de->name, de->name_len, &h);
 				printk(":%x.%u ", h.hash,
-				       ((char *) de - base));
+				       (unsigned) ((char *) de - base));
 			}
 			space += EXT3_DIR_REC_LEN(de->name_len);
 			names++;
@@ -1013,7 +1013,7 @@ static struct buffer_head * ext3_dx_find_entry(struct inode *dir,
 
 	*err = -ENOENT;
 errout:
-	dxtrace(printk("%s not found\n", name));
+	dxtrace(printk("%s not found\n", entry->name));
 	dx_release (frames);
 	return NULL;
 }



Thanks,
Bernd
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ