Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 May 2012 01:03:47 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Possible ARM struct stat problem.

* Rich Felker <dalias@...ifal.cx> [2012-05-27 15:43:19 -0400]:
> On Sun, May 27, 2012 at 01:35:07PM -0500, Richard Pennington wrote:
> > Hi,
> > 
> > I think a found a problem with the struct stat definition for the ARM. It 
> > needed a bit more padding. I've attached a diff and wrote about it on my blog 
> > if you'd like more information.
> > 
> > http://ellcc.org/blog/?p=121
> 
> This looks like a clang bug. Per the ABI, long long has 8-byte
> alignment on ARM. Thus, the structure definition musl has right now
> will give the right layout to match the ABI, and in fact it works
> perfectly when compiled with GCC. 
> 
> I'm not entirely opposed to putting the explicit padding in there,
> since this is an arch-specific structure anyway, but I think you
> should check your compiler. The same issue might come up elsewhere and
> might not be so easy to work around.
> 
> Let me know what you find.

hm i have an /usr/include/asm-generic/stat.h (kernel header)
and it has a struct stat and struct stat64 and they seem
to have different padding than the musl definition

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.