A set of utilities that assist in triaging syzkaller bugs reported for Chrome OS kernels on IssueTracker.
Generate local caches of issuetracker bugs, and information from https://syzkaller.appspot.com. Also generate a local cache of commit information from various linux kernels.
Edit config.py and ensure that CROS_ROOT points to your local copy of chromiumos source, and that LINUX points to your local copy of linux kernel source code. Next, run:
$ ./dbgen.py --fetchall --hotlistid <issuetracker_hotlistid>
Note that if you are in a hurry, it might be best to simply run the following commands, each in a seperate console instance:
$ ./dbgen.py --it --hotlistid <issuetracker_hotlistid> $ ./dbgen.py --commits $ ./dbgen.py --syzweb
$ ./run4.py
$ ./run4.py --mst
A script that locates potentially security related commits that are present in the upstream kernel, but not in the stable kernels.
$ find . -name "*.o" >> OBJFILES
Inside config.py update LINUX_STABLE with the correct path to your linux stable tree.
Run patchfinder. Use the --cachestable
flag only on your first run, or whenever you wish to refresh the cache.
$ ./patchfinder.py --kver 44 --objfiles <path/to/OBJFILES> --cachestable
Patchfinder will print out commits that: