[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111007150917.GD14482@one.firstfloor.org>
Date: Fri, 7 Oct 2011 17:09:17 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Cc: Stephane Eranian <eranian@...gle.com>,
Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org,
peterz@...radead.org, mingo@...e.hu, acme@...hat.com,
ming.m.lin@...el.com, robert.richter@....com, ravitillo@....gov
Subject: Re: [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@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists