Received: by 10.223.185.116 with SMTP id b49csp969241wrg; Wed, 14 Feb 2018 09:34:43 -0800 (PST) X-Google-Smtp-Source: AH8x2262NAcP0Ni9Muc8Bd6usEH9gcSp/PWDHynb34uuz1AnNICH8pSASLe4hOU4Ldk4QVs4AxSE X-Received: by 2002:a17:902:1746:: with SMTP id i64-v6mr5101834pli.53.1518629683723; Wed, 14 Feb 2018 09:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518629683; cv=none; d=google.com; s=arc-20160816; b=JLKiQ61n4l92wD95BUgPvKO7rfWwh9dPe6pfvsig1cD9Eon9loURM9PLWr4ShodaJ3 kfBZi+ZX43P2Hy9Mot+N4187nyxYkvdsoKTGag4JicVZqbGgSiLFEzBo39UZzM8Qp8WQ TANyPzwb9WdG37KfUHhyDfJAt4MwHtSWoQLJbBhLYlAOAUPaXZ6UXTOBdNpRRyfOg8Vy Fgx/stueCV2B6LIUwFWe4rJslKAF9AP45wE2bcjzbfb+EAgNm3dAUJS+X3jtB//ZJETT eX0TybzKMracc08x4eMm2Qy+QGPWMGc6+Gv1nPT07TITEwxPO8DxQ2tD0qtPnvMb39u9 jItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=aqgOoZV485e7ZbaeFJOGZU9mULu0P8Li3JkwUMl3x0E=; b=wAGuiqPk+ycoDshisCEQWstwOKIv/Axx9fLjQNZP5M+F+j8frWCBAcIYh0cLxqUvLN YM9lip0/f9c/s0LWffPU3AYS3VuUl1wrTU/U7Mw+pUFPIG07rNGgAPPWk/8pSbOHiuNF 3jftFns0YqXQuFwLpYw53hqjuwrxzqEIDLJ5fl7HGc+aMeT/XvFWcU6sK53J4A1P81nG 40cfopjEu8vcRbJ3uUplcQGialgVgcsf9vGssaHVusgASYdTPKT5Yumje3jJwdizob4e pk9o9bWD6khY8sC5aoujrH7Sjo0VE0ozrdBXn+2fptM4OsegmBzoOBHxcrxxsA8AcS1I zVmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si91474pgd.610.2018.02.14.09.34.16; Wed, 14 Feb 2018 09:34:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161236AbeBNRdA (ORCPT + 99 others); Wed, 14 Feb 2018 12:33:00 -0500 Received: from smtprelay0240.hostedemail.com ([216.40.44.240]:33972 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161026AbeBNRc6 (ORCPT ); Wed, 14 Feb 2018 12:32:58 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id A26E419B3D; Wed, 14 Feb 2018 17:32:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:965:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2197:2198:2199:2200:2393:2553:2559:2562:2691:2693:2828:2909:2919:3138:3139:3140:3141:3142:3354:3622:3653:3865:3867:3870:3872:3873:3874:4321:4390:4605:5007:9040:10004:10400:10848:11026:11232:11658:11914:12043:12296:12438:12555:12740:12760:12895:13439:14093:14097:14181:14659:14721:21080:21221:21324:21433:21451:21611:21627:30003:30016:30022:30029:30054:30064:30070:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:21,LUA_SUMMARY:none X-HE-Tag: sort17_53b0b41563245 X-Filterd-Recvd-Size: 3622 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Wed, 14 Feb 2018 17:32:54 +0000 (UTC) Message-ID: <1518629573.3678.7.camel@perches.com> Subject: Re: KASAN: use-after-free Read in rds_tcp_tune From: Joe Perches To: Dmitry Vyukov Cc: Sowmini Varadhan , syzbot , David Miller , LKML , linux-rdma@vger.kernel.org, netdev , rds-devel@oss.oracle.com, Santosh Shilimkar , syzkaller-bugs@googlegroups.com Date: Wed, 14 Feb 2018 09:32:53 -0800 In-Reply-To: References: <001a1141a524c513ca05628d8ad4@google.com> <20180112183046.GA26098@oracle.com> <20180214152109.GF11528@oracle.com> <20180214153555.GG11528@oracle.com> <1518627728.3678.2.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-02-14 at 18:16 +0100, Dmitry Vyukov wrote: > On Wed, Feb 14, 2018 at 6:02 PM, Joe Perches wrote: > > On Wed, 2018-02-14 at 16:55 +0100, Dmitry Vyukov wrote: > > > On Wed, Feb 14, 2018 at 4:35 PM, Sowmini Varadhan wrote: > > > > btw, checkpatch.pl complains about the syzbot*@syzkaller.appspotmail.com > > > > addresses as "Unrecognized email address", we should fix that > > > > error from checkpatch at some point. > > > > > > Interesting. Looking at checkpatch.pl I think it wants all addresses > > > to be in <>, i.e. > > > Reported-by: > > > There probably was some reason to enforce this, so I think I will > > > change the syzbot email template to include <>. > > > Thanks! > > > > Not really. > > > > It's the somewhat unusual + in the address > > that perl needs quoted before a substitution. > > > > I believe this fixes it in checkpatch. > > --- > > scripts/checkpatch.pl | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > > @@ -1075,7 +1075,7 @@ sub parse_email { > > } elsif ($formatted_email =~ /(\S+\@\S+)(.*)$/) { > > $address = $1; > > $comment = $2 if defined $2; > > - $formatted_email =~ s/$address.*$//; > > + $formatted_email =~ s/\Q$address\E.*$//; > > $name = $formatted_email; > > $name = trim($name); > > $name =~ s/^\"|\"$//g; > > > I can confirm that running > $ git show HEAD | scripts/checkpatch.pl - > on a commit that contains a syzbot Reported-by tag does not produce > the warning anymore. > > Joe, do you mind mailing this as patch? 'course not. It's nice you tested it. I did on the last thousand commits without apparent change. $ git log --format=oneline --no-merges -1000 | \ cut -f1 -d" " | \ while read commit ; do \ ./scripts/checkpatch.pl --git $commit --types=bad_sign_off --terse ; \ done