From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5144D524.4000302@web.de> Date: Sat, 16 Mar 2013 21:25:08 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <5144D3E9.2050205@xenomai.org> In-Reply-To: <5144D3E9.2050205@xenomai.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] __get_user/__put_user List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Xenomai On 2013-03-16 21:19, Gilles Chanteperdrix wrote: > = > Hi, > = > xenomai asm-generic/syscall.h defines __xn_put_user/__xn_get_user as > aliases for __put_user/__get_user, which implementation, for the ARM > architecture calls might_fault() which triggers an ipipe_root_only() chec= k. > = > So, the question is, what is the best way of avoiding this issue? Remove > the call to might_fault() when compiling with CONFIG_IPIPE enabled? > Define __ipipe_safe_put_user which avoids the call to might_fault() ? Adjust might_fault() in a way that it only considers atomic non-root contexts as problematic. Jan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: