lkml.org 
[lkml]   [2011]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/12] perf_events: add LBR software filter support for Intel X86
> if (kernel_ip(addr) || !test_tsk_thread_flag(current, TIF_IA32))

That's not good, a 64bit process can do 32bit syscalls.

The only fully working way is to check the code segment, unfortunately
that requires checking the LDT to be fully correct :-(

In 2.4 we had some code for that if you want to copy, but it disappeared
later.

-Andi
--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2011-10-07 17:11    [W:0.226 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site