Re: Crash when memset of shared mapped memory in ARM

From: Dave Martin
Date: Thu Nov 17 2011 - 07:10:30 EST


On Wed, Nov 16, 2011 at 11:54:35AM +0000, Will Deacon wrote:
> (Replying to Russell so as to lose the -request addresses)
>
> On Wed, Nov 16, 2011 at 08:45:47AM +0000, Russell King - ARM Linux wrote:
> > Please do not spam mailing lists -request addresses when you post. The
> > -request addresses are there for you to give the mailing list software
> > _instructions_ on what to do with your subscription. It is not for
> > posts to the mailing list.
>
> For what it's worth, I was brave/daft enough to compile and run the testcase
> with an -rc1 kernel and Linaro 11.09 filesystem on the quad A9 Versatile
> Express:
>
> root@dancing-fool:~# ./yad
> mmap: addr 0x20000000
> root@dancing-fool:~# ./yad
> shm_open: File exists
> mmap: addr 0x20000000
>
> Looks like I'm missing the fireworks, despite the weirdy MAP_SHARED |
> MAP_FIXED mmap flags.

I did't see any problem on a random 3.1-rc4 kernel either on A9...

(Since when was MAP_SHARED "weirdy"...?)

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