Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2010 20:12:08 -0400
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Garrett Cooper <yanefbsd@gmail.com>
Cc:        "Sam Fourman Jr." <sfourman@gmail.com>, Kostik Belousov <kostikbel@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: kernel patch needed for wine?
Message-ID:  <20100630201208.095139c0@kan.dnsalias.net>
In-Reply-To: <AANLkTineENDg9MZwqJY44enyHqpfFxfVIdzS_6tG43TI@mail.gmail.com>
References:  <AANLkTik5Owwpk5O6eUbSKgHxpjvcEXwilGECgtX0hx5a@mail.gmail.com> <20100630105027.GJ13238@deviant.kiev.zoral.com.ua> <AANLkTikDxVGpc6LfYlqFZLo-QiJFr8lbj2MVZMUci-lI@mail.gmail.com> <AANLkTilusilVimfscZdj3QAOOFYs3Gh3pt5V6SXe3VHP@mail.gmail.com> <AANLkTinNMaMH_5TSUL8PN1D0J-IBjIZV8K_sBTeB1H64@mail.gmail.com> <AANLkTiksgnem7qiGzpJIVQp7Dxsu0dfasF10STzSwxBf@mail.gmail.com> <20100630192350.105e8303@kan.dnsalias.net> <AANLkTineENDg9MZwqJY44enyHqpfFxfVIdzS_6tG43TI@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 30 Jun 2010 16:45:18 -0700
Garrett Cooper <yanefbsd@gmail.com> wrote:

> >
> > Now make icebp_func const and observe the program start working. The
> > test case is broken as written, because icebp_func array is
> > writable, so in ends up in a non-const part of .bss, which is not
> > marked as executable and rightfully causes SIGSEGV when jumped to.
> 
> Which means that Linux is broken in this regard because it's loading
> data as text, not data as data and text as text?
> Thanks,

Nope, I think this is i386 vs. amd64 difference. NX page protection is
enforced in long mode, or in 32-bit with PAE, if I remember things
correctly.

-- 
Alexander Kabaev

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (FreeBSD)

iD8DBQFMK91cQ6z1jMm+XZYRAtQ4AJ9ZtXAuvaeH1twnRmZRYUfKpUhEAQCgxd3d
dToOaZXrnJ8+kVH/FPC/mC0=
=Uob+
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100630201208.095139c0>