History

Merge branch 'for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

Pull coccinelle updates from Julia Lawall: "These changes update some existing semantic patches with respect to some recent changes in the kernel. Specifically, the change to kvmalloc.cocci searches for kfree_sensitive rather than kzfree, and the change to use_after_iter.cocci adds list_entry_is_head as a valid use of a list iterator index variable after the end of the loop" * 'for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux: scripts: coccinelle: allow list_entry_is_head() to use pos coccinelle: api: rename kzfree to kfree_sensitive

Linus Torvalds committed 5 years ago

Commit 4e1c7542 parents c605c39 e71ec0b2 files · +3 −1Browse files

Showing the changes to scripts (2 of 2 files). Show all

Unified · Split

2 files
  1. scripts/coccinelle/api/kvmalloc.cocci +1 −1
  2. scripts/coccinelle/iterators/use_after_iter.cocci +2 −0
scripts/coccinelle/api/kvmalloc.cocci+1−1
@@ -79,7 +79,7 @@ position p : script:python() { relevant(p) }; · 78 unmodified lines
79 } else {79 } else {
80 ... when != krealloc(E, ...)80 ... when != krealloc(E, ...)
81 when any81 when any
82* \(kfree\|kzfree\)(E)82* \(kfree\|kfree_sensitive\)(E)
83 ...83 ...
84 }84 }
85 85
scripts/coccinelle/iterators/use_after_iter.cocci+2−0
@@ -123,6 +123,8 @@ hlist_for_each_entry_safe(c,...) S · 122 unmodified lines
123|123|
124list_remove_head(x,c,...)124list_remove_head(x,c,...)
125|125|
126list_entry_is_head(c,...)
127|
126sizeof(<+...c...+>)128sizeof(<+...c...+>)
127|129|
128 &c->member130 &c->member