Re: [PATCH] checkpatch: avoid error report caused by syzbot

From: Joe Perches
Date: Wed Feb 28 2018 - 11:37:43 EST


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@xxxxxxxxxxxxxxxxxxxxxxxxx'
>
> For it include '+' in email and make regular expression works abnomal. Fix
> it by adding check for syzbot.
>
> Signed-off-by: Yisheng Xie <xieyisheng1@xxxxxxxxxx>

Nack.

There's a proper patch already in -next

commit 14e45b3ecdb03211ab32656cd84e66fd6a28343e
Author: Joe Perches <joe@xxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxxxxxx

Do so.

Link: http://lkml.kernel.org/r/1518631805.3678.12.camel@xxxxxxxxxxx