Skip to content

Commit

Permalink
Merge branch 'for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
torvalds committed Sep 11, 2021
2 parents c605c39 + e71ec0b commit 4e1c754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/coccinelle/api/kvmalloc.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ position p : script:python() { relevant(p) };
} else {
... when != krealloc(E, ...)
when any
* \(kfree\|kzfree\)(E)
* \(kfree\|kfree_sensitive\)(E)
...
}

Expand Down
2 changes: 2 additions & 0 deletions scripts/coccinelle/iterators/use_after_iter.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ hlist_for_each_entry_safe(c,...) S
|
list_remove_head(x,c,...)
|
list_entry_is_head(c,...)
|
sizeof(<+...c...+>)
|
&c->member
Expand Down

0 comments on commit 4e1c754

Please sign in to comment.