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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:  <49B32B63.9030106@gmail.com>
Date:	Sat, 07 Mar 2009 20:20:19 -0600
From:	Robert Hancock <hancockrwd@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Roland Dreier <rdreier@...co.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject:  Re: printk issue - bug?

Adrian McMenamin wrote:
> 2009/3/7 Roland Dreier <rdreier@...co.com>:
> 
>> ie offset is a 64-bit type but the printk format for it is %x, which
>> presumably only consumes 32 bits on SH4?  Seems like your code is buggy
>> and you ignored a compiler warning about printk format mismatch?
>>
>>  - R.
>>
> 
> Yes, loff_t is a long long  but why did it work in the first line and
> not the second?

It didn't. You didn't print loff_t in the first printk, and the variable 
size mismatch corrupted the next value being printed in the second one.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ