References: <20180925103809.4932-1-rpm@xenomai.org> <20180927144203.5e7d006b@md1pvb1c.ad001.siemens.net> <20181001165112.18eafb36@md1pvb1c.ad001.siemens.net> <0d0ab124-f861-da42-433c-d61195a5e13f@xenomai.org> <20181005121128.7898c167@md1pvb1c.ad001.siemens.net> <620226841.5052965.1538766564288@mail.yahoo.com> From: Jan Kiszka Message-ID: <11d7b567-7168-27b4-9ccf-6cc495e39991@web.de> Date: Tue, 9 Oct 2018 21:33:37 +0200 MIME-Version: 1.0 In-Reply-To: <620226841.5052965.1538766564288@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [I-PIPE][PATCH 00/32] 4.14.71/x86_64 port (split series) List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alec Ari , Xenomai On 05.10.18 21:09, Alec Ari wrote: >> I instrumented __ipipe_trap_prologue and did not even see the #PF >> there. So it is either in the assembly before that or we do not have >> the trap handler mapped or something like that. nopcid and nopti did >> not help. > > I'm going to take a wild guess and say entry_64.S is where the issue is because I can't make heads or tails of the KPTI code.. I might as well be looking at Denuvo. > That guess was good: We fail to hook into the traps that are taken from userspace (identry -> from_usermode_switch_stack path). I'll look into how to address that best tomorrow. Jan