archive mirror
 help / color / mirror / Atom feed
* [Linux-kernel-mentees] investigation for false-positives
@ 2020-09-23  8:41 Ujjwal Kumar
  2020-09-24 17:26 ` Lukas Bulwahn
  0 siblings, 1 reply; 4+ messages in thread
From: Ujjwal Kumar @ 2020-09-23  8:41 UTC (permalink / raw)
  To: Lukas Bulwahn, linux-kernel-mentees

Hi Lukas,

I looked at different error messages and came-up with a list of
possible false positives reports by checkpatch script.

First, is about BAD_SIGN_OFF warning for Duplicate signature.
Though it is obvious to have these warnings but I am wondering 
about situations where there is some other signature between 
two exactly same signatures.
For instance,

commit 3f9c6d38797e9903937b007a341dad0c251765d6
    Signed-off-by: Jonathan Cameron <>
    Acked-by: Andrew F. Davis <>
    Cc: <>
    Signed-off-by: Jonathan Cameron <>

commit 79ea1e12c0b8540100e89b32afb9f0e6503fad35
    Signed-off-by: Johannes Berg <>
    Signed-off-by: Johannes Berg <>
I'm not familiar how/when these situations can occur. But if these 
scenarios are commonly acceptable then the script should not report
 a warning for duplicate signatures.


Second, is about WHILE_AFTER_BRACE errors.

Example commit: 6f8a57ccf8511724e6f48d732cb2940889789ab2

The error message suggests to move the empty while loop with close 
brace of an if block which is not recommended according to the code 

The possible correction would be consider checking the type of 
block that is ending and report only when the do block is found.


Third, is about EXECUTE_PERMISSIONS errors where the script reports 
an error for a python (possible with others scripts as well) script 
with file mode set as '100755' but file name does not include '.py' 
extension and is not present under the 'scripts' directory tree.

So, a python script file named 'binfmt_script' with file mode '100755'
 is erroneously reported by the script as:

ERROR:EXECUTE_PERMISSIONS: do not set execute permissions for source files
#39: FILE: tools/testing/selftests/exec/binfmt_script

even when it is okay to make the script file executable.

Example commit b081320f0693cce0394f7c8bad9fba0b25982186

A possible solution to this would be to use the script's first line 
for determining whether the file is a executable file or not.


I would like your opinion on these findings, whether any of them can 
be worked on.

Ujjwal Kumar
Linux-kernel-mentees mailing list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-25 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23  8:41 [Linux-kernel-mentees] investigation for false-positives Ujjwal Kumar
2020-09-24 17:26 ` Lukas Bulwahn
2020-09-25 12:30   ` Ujjwal Kumar
2020-09-25 15:41     ` Lukas Bulwahn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).