2022-08-10 11:13:03

by Dan Carpenter

[permalink] [raw]
Subject: Smatch v1.73 released

Smatch is a C static checker with a lot of kernel specific checks. You
can download it from: http://repo.or.cz/w/smatch.git. Or if you prefer
a github mirror, then you can download it from
https://github.com/error27/smatch

It's a simple process to run Smatch on a file in the kernel:

yum install gcc make sqlite3 sqlite-devel sqlite perl-DBD-SQLite openssl-devel perl-Try-Tiny
make
cd ~/path/to/kernel_dir
~/smatch_dir/smatch_scripts/kchecker drivers/whatever/file.c

Overall, this release is mostly small fixes all over. The main
improvement is better tracking changes to container_of(). For example,
there are a lot of kernel release functions which free the container_of().
The next step is to figure out the correct free function to call for
put_device().

Special thanks to Elena Reshetova who wrote a new module to track
host/VMM data for confidential computing. And also to thanks to
Christophe JAILLET for a bunch of fixes and updates.

Please test and let me know if you find any issues!

regards,
dan carpenter