lkml.org 
[lkml]   [2022]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] x86/unwind/orc: Fix address check size for deref_stack_iret_regs
Date


> On Tue, Apr 12, 2022 at 10:40:04AM +0300, Dmitry Monakhov wrote:
>
>> For historical reasons we check only IRET_FRAME_OFFSET, but this check
>> is no longer valid because we also access regs->sp field which is
>> located beyond IRET_FRAME, so it is reasonable to validate full structure.
>
> Uuuh, what? IRET frame is:
>
> ss, sp, flags, cs, ip
>
> that very much includes sp.
Oh. Indeed you are right. Sorry. Please ignore this patch.

\
 
 \ /
  Last update: 2022-04-12 14:09    [W:0.040 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site