Skip to content

Commit 4e1c754

Browse files
committed
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
2 parents c605c39 + e71ec0b commit 4e1c754

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/coccinelle/api/kvmalloc.cocci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ position p : script:python() { relevant(p) };
7979
} else {
8080
... when != krealloc(E, ...)
8181
when any
82-
* \(kfree\|kzfree\)(E)
82+
* \(kfree\|kfree_sensitive\)(E)
8383
...
8484
}
8585

scripts/coccinelle/iterators/use_after_iter.cocci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ hlist_for_each_entry_safe(c,...) S
123123
|
124124
list_remove_head(x,c,...)
125125
|
126+
list_entry_is_head(c,...)
127+
|
126128
sizeof(<+...c...+>)
127129
|
128130
&c->member

0 commit comments

Comments
 (0)