coccinelle: api: add kzfree script
I dare to repeat previous patch review aspects once more.
https://lore.kernel.org/cocci/[email protected]/
…
Review
Quoted 4 lines
(quoted diff) +4
-0+virtual context +virtual patch +virtual org +virtual report
+virtual context, patch, org, report
Is such a SmPL code variant more succinct?
…
Review
Quoted 2 lines
(quoted diff) +2
-0+if (...) + \(memset@ok\|memzero_explicit@ok\)(...);
Would you like to tolerate any extra source code around such a function call in an if branch?
…
Review
Quoted 5 lines
(quoted diff) +5
-0+( +* memset@m((T)E, 0, ...); +| +* memzero_explicit@m((T)E, ...); +)
…
I suggest to move a semicolon.
+(
+*memset@m((T)E, 0, ...)
+|
+*memzero_explicit@m((T)E, ...)
+);
…
Quoted 2 lines
+- \(kfree\|vfree\|kvfree\)(E);
++kvfree_sensitive(E, size);
…
Would you like to increase the precision a bit for the change specification?
+-\(kfree\|vfree\|kvfree\)
++kvfree_sensitive
+ (E
++ , size
+ );
…
Review
Quoted 7 lines
(quoted diff) +7
-0+( +- kfree(E); ++ kzfree(E); +| +- \(vfree\|kvfree\)(E); ++ kvfree_sensitive(E, size); +)
…
+(
+-kfree
++kzfree
+ (E)
+|
+-\(vfree\|kvfree\)
++kvfree_sensitive
+ (E
++ , size
+ )
+);
…
Review
Quoted 4 lines
(quoted diff) +4
-0+// TODO: uncomment when kfree_sensitive will be merged. +// Only this case is commented out because developers +// may not like patches like this since kzfree uses memset +// internally (not memzero_explicit).
Will this information trigger any further clarification?
…
Review
Quoted 2 lines
(quoted diff) +2
-0+coccilib.org.print_todo(p[0], + "WARNING: opportunity for kzfree/kvfree_sensitive")
I propose to align the second function parameter.
+coccilib.org.print_todo(p[0],
+ "WARNING: opportunity for kzfree/kvfree_sensitive")
Regards,
Markus