* [PATCH] checkpatch: avoid error report caused by syzbot
@ 2018-02-28 9:10 Yisheng Xie
2018-02-28 16:37 ` Joe Perches
0 siblings, 1 reply; 3+ messages in thread
From: Yisheng Xie @ 2018-02-28 9:10 UTC (permalink / raw)
To: apw, joe, akpm; +Cc: linux-kernel, Yisheng Xie
syzbot request to add his reported-by when fix the bug find by syzbot.
However, it will trigger a error when use checkpatch:
ERROR: Unrecognized email address: 'syzbot+d7a918a7a8e1c952bc36@syzkaller.appspotmail.com'
For it include '+' in email and make regular expression works abnomal. Fix
it by adding check for syzbot.
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
scripts/checkpatch.pl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3d40403..19f3e26 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1075,7 +1075,11 @@ sub parse_email {
} elsif ($formatted_email =~ /(\S+\@\S+)(.*)$/) {
$address = $1;
$comment = $2 if defined $2;
- $formatted_email =~ s/$address.*$//;
+ if ($address =~ /^syzbot.*\@syzkaller\.appspotmail\.com$/) {
+ $formatted_email = "";
+ } else {
+ $formatted_email =~ s/^($address).*$//;
+ }
$name = $formatted_email;
$name = trim($name);
$name =~ s/^\"|\"$//g;
--
1.7.12.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] checkpatch: avoid error report caused by syzbot
2018-02-28 9:10 [PATCH] checkpatch: avoid error report caused by syzbot Yisheng Xie
@ 2018-02-28 16:37 ` Joe Perches
2018-03-01 0:44 ` Yisheng Xie
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2018-02-28 16:37 UTC (permalink / raw)
To: Yisheng Xie, apw, akpm; +Cc: linux-kernel
On Wed, 2018-02-28 at 17:10 +0800, Yisheng Xie wrote:
> syzbot request to add his reported-by when fix the bug find by syzbot.
> However, it will trigger a error when use checkpatch:
>
> ERROR: Unrecognized email address: 'syzbot+d7a918a7a8e1c952bc36@syzkaller.appspotmail.com'
>
> For it include '+' in email and make regular expression works abnomal. Fix
> it by adding check for syzbot.
>
> Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Nack.
There's a proper patch already in -next
commit 14e45b3ecdb03211ab32656cd84e66fd6a28343e
Author: Joe Perches <joe@perches.com>
Date: Thu Feb 22 09:59:45 2018 +1100
checkpatch: improve parse_email signature checking
Bare email addresses with non alphanumeric characters require escape
quoting before being substituted in the parse_email routine.
e.g. Reported-by: syzbot+bbd8e9a06452cc48059b@syzkaller.appspotmail.com
Do so.
Link: http://lkml.kernel.org/r/1518631805.3678.12.camel@perches.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] checkpatch: avoid error report caused by syzbot
2018-02-28 16:37 ` Joe Perches
@ 2018-03-01 0:44 ` Yisheng Xie
0 siblings, 0 replies; 3+ messages in thread
From: Yisheng Xie @ 2018-03-01 0:44 UTC (permalink / raw)
To: Joe Perches, apw, akpm; +Cc: linux-kernel
Hi Joe,
On 2018/3/1 0:37, Joe Perches wrote:
> On Wed, 2018-02-28 at 17:10 +0800, Yisheng Xie wrote:
>> syzbot request to add his reported-by when fix the bug find by syzbot.
>> However, it will trigger a error when use checkpatch:
>>
>> ERROR: Unrecognized email address: 'syzbot+d7a918a7a8e1c952bc36@syzkaller.appspotmail.com'
>>
>> For it include '+' in email and make regular expression works abnomal. Fix
>> it by adding check for syzbot.
>>
>> Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
>
> Nack.
>
> There's a proper patch already in -next
>
Thanks for the information.
Thanks
Yisheng
> commit 14e45b3ecdb03211ab32656cd84e66fd6a28343e
> Author: Joe Perches <joe@perches.com>
> Date: Thu Feb 22 09:59:45 2018 +1100
>
> checkpatch: improve parse_email signature checking
>
> Bare email addresses with non alphanumeric characters require escape
> quoting before being substituted in the parse_email routine.
>
> e.g. Reported-by: syzbot+bbd8e9a06452cc48059b@syzkaller.appspotmail.com
>
> Do so.
>
> Link: http://lkml.kernel.org/r/1518631805.3678.12.camel@perches.com
>
>
> .
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-01 0:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 9:10 [PATCH] checkpatch: avoid error report caused by syzbot Yisheng Xie
2018-02-28 16:37 ` Joe Perches
2018-03-01 0:44 ` Yisheng Xie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.