[Linux-kernel-mentees] [SYZBOT REPORT] WARNING: Support for this device (Terratec Grabster AV400) is experimental
skunberg.kelsey at gmail.com
Fri May 17 17:26:28 UTC 2019
WARNING: Support for this device (Terratec Grabster AV400) is experimental.
This warning does not trigger a crash in the system and alternatively is
warning the device’s functionality might not be entirely working.
Since this isn’t a crash, it’s incorrectly being reported in Syzbot.
I was not able to reproduce this warning due to not having the Terratec Grabster
AV400, however, by checking the following file it can be verified if the Warning
will be triggered or not:
I was able to verify in kernel 5.1.2, it shows the warning would be trigged due to
the following line in pvrusb2-hdw.c:
"WARNING: Support for this device (%s) is experimental.",
The "WARNING" in the format string is getting interpeted as a Warning
from WARN_ON() and then reported to syzbot.
Clarification on valid uses of WARN(), WARN_ON(), and WARN_ON_ONCE() can be found
in the following file:
It states: "Do not include "BUG"/"WARNING" in format strings manually to make these
conditions distinguishable from kernel issues."
This error can be resolved by updating the format strings to output an
alternative to 'WARNING' which will avoid the string from being confused
with a kernel issue.
A patch was already submitted to address this problem:
This patch changes the "WARNING" in format strings to have "***" on each
side of the word:
- "WARNING: Support for this device (%s) is experimental.",
+ "***WARNING*** Support for this device (%s) is experimental.",
More information about the Linux-kernel-mentees