lkml.org 
[lkml]   [2009]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Xen-devel] [PATCH 2/5] xen/x86-64: clean up warnings aboutIST-usingtraps
>>> Jeremy Fitzhardinge <jeremy@goop.org> 08.05.09 17:23 >>>
>Jan Beulich wrote:
>>> else if (addr == (unsigned long)int3)
>>> addr = (unsigned long)xen_int3;
>>> - else
>>> - WARN_ON(val->ist != 0);
>>> + else if (addr == (unsigned long)double_fault ||
>>> + addr == (unsigned long)stack_segment) {
>>>
>>
>> I don't think you want to exclude handling stack faults: Ordinary memory
>> references using rsp or rbp as the base register will cause these instead
>> of general protection faults when the resulting effective address is non-
>> canonical.
>>
>
>So even usermode memory accesses? Ew.

Yes, just try it out - you'll observe them generate SIGBUS instead of SIGSEGV.

Jan



\
 
 \ /
  Last update: 2009-05-08 17:33    [W:0.530 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site