Re: [PATCH mm] kfence: zero guard page after out-of-bounds access

2021-03-12 Thread Alexander Potapenko
On Fri, Mar 12, 2021 at 1:16 PM Marco Elver wrote: > > After an out-of-bounds accesses, zero the guard page before > re-protecting in kfence_guarded_free(). On one hand this helps make the > failure mode of subsequent out-of-bounds accesses more deterministic, > but could also prevent certain info

[PATCH mm] kfence: zero guard page after out-of-bounds access

2021-03-12 Thread Marco Elver
After an out-of-bounds accesses, zero the guard page before re-protecting in kfence_guarded_free(). On one hand this helps make the failure mode of subsequent out-of-bounds accesses more deterministic, but could also prevent certain information leaks. Signed-off-by: Marco Elver --- mm/kfence/cor