splitting and fingerprinting findings
Hi folks,
I'd like to hack up some scripts that automatically scan and report findings on a daily basis, eg. on the linux-next tree. Obviously, nobody can seriously read this all at once, especially not on a daily basis.
Therefore I need to:
* split the findings (eg. by ruleset or affected files / subsystems)
* filter out findings that already have been reported.
The second part seems to be trickiest one, as the code might slightly change in the meantime, laeding to different patch outputs. Ignoring the @@ lines should at least drop a large portion of the duplicates, but I'll yet have to see how well that works ...
Did anyone else already working on that topic ?
--mtx
Signature · 7 lines
Enrico Weigelt, metux IT consult Free software and Linux embedded engineering [email protected] -- +49-151-27565287 _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
Quoted 13 lines · metux IT consult
Hi folks,
I'd like to hack up some scripts that automatically scan and report findings on a daily basis, eg. on the linux-next tree. Obviously, nobody can seriously read this all at once, especially not on a daily basis.
Therefore I need to:
* split the findings (eg. by ruleset or affected files / subsystems)
* filter out findings that already have been reported.
Quoted 6 lines
The second part seems to be trickiest one, as the code might slightly change in the meantime, laeding to different patch outputs. Ignoring the @@ lines should at least drop a large portion of the duplicates, but I'll yet have to see how well that works ...
Did anyone else already working on that topic ?
The 0-day people do something.
The tool Herodotos addressed this, but seems to be hard to get working.
In general, you need to just interpret the report line numbers and the diff hunks to figure out whether the report lines are or are not in the changed lines of code.
For example, if the report was on line 69 and is now on line 70, and the only change was to replace line 2-3 by lines 2-4, ie add a new line, then the report on line 70 is the same as the report on line 69.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci
Hi,
Le 05/06/2019 à 21:56, Julia Lawall a écrit :
Quoted 22 lines · metux IT consult
Quoted 19 lines
Hi folks,
I'd like to hack up some scripts that automatically scan and report findings on a daily basis, eg. on the linux-next tree. Obviously, nobody can seriously read this all at once, especially not on a daily basis.
Therefore I need to:
* split the findings (eg. by ruleset or affected files / subsystems)
* filter out findings that already have been reported.The second part seems to be trickiest one, as the code might slightly change in the meantime, laeding to different patch outputs. Ignoring the @@ lines should at least drop a large portion of the duplicates, but I'll yet have to see how well that works ...
Quoted 5 lines
Quoted 1 line
Did anyone else already working on that topic ?
The 0-day people do something.
The tool Herodotos addressed this, but seems to be hard to get working.
Still maintained. ;)
I have someone currently working on it to make optional a set of features that are useless for your purpose.
However, I never used it on linux-next...
You may also take a look at cgum/gumtree to track changes in a more finer way than diff.
Quoted 15 lines
In general, you need to just interpret the report line numbers and the diff hunks to figure out whether the report lines are or are not in the changed lines of code.
For example, if the report was on line 69 and is now on line 70, and the only change was to replace line 2-3 by lines 2-4, ie add a new line, then the report on line 70 is the same as the report on line 69.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci
Signature · 6 lines
Nicolas Palix http://lig-membres.imag.fr/palix/ _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci