From mboxrd@z Thu Jan 1 00:00:00 1970 References: <5674331B.2010807@siemens.com> <20151218171203.GC21744@hermes.click-hack.org> <56801912.3080408@web.de> <20151227174158.GA1986@hermes.click-hack.org> From: Jan Kiszka Message-ID: <56802311.4090302@web.de> Date: Sun, 27 Dec 2015 18:42:41 +0100 MIME-Version: 1.0 In-Reply-To: <20151227174158.GA1986@hermes.click-hack.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] SMAP-detected direct userspace access List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Xenomai On 2015-12-27 18:41, Gilles Chanteperdrix wrote: > On Sun, Dec 27, 2015 at 06:00:02PM +0100, Jan Kiszka wrote: >> On 2015-12-18 18:12, Gilles Chanteperdrix wrote: >>> On Fri, Dec 18, 2015 at 05:23:55PM +0100, Jan Kiszka wrote: >>>> Hi all, >>>> >>>> I know this is legacy code, but this is where we currently stumbled in= to >>>> it, and maybe the same pattern also exists in 3.x: >>>> >>>> http://git.xenomai.org/xenomai-2.6.git/tree/ksrc/skins/posix/syscall.c= #n1182 >>>> >>>> more precisely: >>>> >>>> return pse51_mutex_check_init(&umx->shadow_mutex, attr); >>>> >>>> Here we pass the userspace object for initialization to the core inste= ad >>>> of handing over the kernel shadow and then copying over the result. Is >>>> there a reason for this? Could we have more of such cases? >>>> >>>> Background: SMAP detects and prevents any direct userspace memory acce= ss >>>> on x86 except or those that are wrapped in stac() and clac() (which >>>> toggle a bit in eflags). Generally a useful feature we should allow to >>>> be enabled for robustness reasons. >>> >>> BTW, I believe most RTnet ioctls have this issue. >>> >> >> Correct, long-pending deficit that will now start to bite back more >> seriously. I was always postponing this until some potential userspace >> ABI overhaul. > = > The ABI overhaul should happen in the 3.1 branch, hopefully real > soon now (tm). > = Cool! Jan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: