Re: [PATCH 5/8 v2] dm: replace memset by memzero_explicit

2014-12-01 Thread Mike Snitzer
On Mon, Dec 01 2014 at 4:03pm -0500, Milan Broz wrote: > On 11/30/2014 06:03 PM, Julia Lawall wrote: > > From: Julia Lawall > > > > Memset on a local variable may be removed when it is called just before the > > variable goes out of scope. Using memzero_explicit defeats this > > optimization.

Re: [PATCH 5/8 v2] dm: replace memset by memzero_explicit

2014-12-01 Thread Milan Broz
On 11/30/2014 06:03 PM, Julia Lawall wrote: > From: Julia Lawall > > Memset on a local variable may be removed when it is called just before the > variable goes out of scope. Using memzero_explicit defeats this > optimization. A simplified version of the semantic patch that makes this > change

[PATCH 5/8 v2] dm: replace memset by memzero_explicit

2014-11-30 Thread Julia Lawall
From: Julia Lawall Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ iden