[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] BUG: fstat64() clobbers stack; uclibc and kernel don't agree on "struct kernel_stat64".



Hi Graeme,

Graeme Smecher wrote:

Graeme Smecher wrote:

I've just tracked down a header mismatch that causes stack corruption on Petalinux releases v0.20-rc3 and v0.30-rc1. The fstat64() syscall relies on coherent headers between the kernel and userspace, but they appear to be out-of-sync.


The original message was a bit terse. Here's a bit of clarification, in case it helps:

  * This bug affects newlib as well as uClibc.
  * It affects fstat() as well as fstat64(), since one maps to the other.
  * A quick glance suggests it affects both 2.4.x and 2.6.x kernels.

[snip]

Thanks for the report - I'll need to take a closer look, and make sure we get the kernel and uClibc headers consitent (across 2.4 and 2.6). This will require a new toolchain build, which is probably overdue anyway.

Thanks,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/