lkml.org 
[lkml]   [2017]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [v6 11/15] arm64/kasan: explicitly zero kasan shadow memory
From
Date
On 2017-08-08 09:15, David Laight wrote:
> From: Pasha Tatashin
>> Sent: 08 August 2017 12:49
>> Thank you for looking at this change. What you described was in my
>> previous iterations of this project.
>>
>> See for example here: https://lkml.org/lkml/2017/5/5/369
>>
>> I was asked to remove that flag, and only zero memory in place when
>> needed. Overall the current approach is better everywhere else in the
>> kernel, but it adds a little extra code to kasan initialization.
>
> Perhaps you could #define the function prototype(s?) so that the flags
> are not passed unless it is a kasan build?
>

Hi David,

Thank you for suggestion. I think a kasan specific vmemmap (what I
described in the previous e-mail) would be a better solution over having
different prototypes with different builds. It would be cleaner to have
all kasan specific code in one place.

Pasha

\
 
 \ /
  Last update: 2017-08-08 15:35    [W:0.140 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site