Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2480813ybi; Sun, 28 Jul 2019 09:53:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9w97L5l5vukgdLexevtObpWVmVTPcoW4IxzBj1nLA7q1WlBzCLPf30Yqtktda4n98fp6e X-Received: by 2002:a17:902:7202:: with SMTP id ba2mr107828212plb.266.1564332782254; Sun, 28 Jul 2019 09:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564332782; cv=none; d=google.com; s=arc-20160816; b=ie6BuBezTgKuVWmJTzgdaxS50M4gV9Fcji2rzkygmTuReF3cUNLgpjUAP2INsLwdz8 V4ofw7TgV/hgHFfNNKx3FrB/3TT9ncXgRYUslkdQhtOSzUuPSZkql2yXv9+4XJeYx8At GIg021FYUGcABd4Ps1KLs58mXVsLGXMl6XUYWGBqKXlu4ayxTjHJ0QNy/Lk714u6oGdt cgqn/i51XVxz0djWEeSUVuAf/PDLb9dfQsdioJV8yZrv6tW8whl8S71BYGafuJ+XrA3f 25f3fAa6jdB06WvmwWyMeYCd6dqzhL3POfeUGuQcjm+lOcBoEh5IIU027Y3uBkJ3tDQ3 F23A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=5K+SuxpGvXfQ///N9XK1+tF5GqeC/HVgCK0aC6WVZtU=; b=yIAo2MRGkBMRp/qY3fj9M6TsN58l3coOGAGIfaoHAepdrhgEqX7SIic9fGJfsOsEOZ F42ZzPz+iVrTScWmpSWacIw0KE6tm9LKC/tXkviCoqSQfSFV1HcmcwFZsTubf0MSwHmt dey7OSq3NhZ4d238OIdhVcJlx2Gztjo9TMRU3qClL/GmEtjjJih7lStvLD2Q+OPM0Vlg 8BBK4FMAGHqrwTUjRDDMs8oX6swct1Riow40+E0XKLetBspgvHiiUwNCKRNVaHwURWYV PXDGqAdnsQFKhmtJpfYbntxa8aN7ZTWGz7WDqJGS5KK13VcrhFHAXH/rwBRqJH16YYPz QdBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=OfC8vdkx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si23618846pgt.150.2019.07.28.09.52.46; Sun, 28 Jul 2019 09:53:02 -0700 (PDT) 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; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=OfC8vdkx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726046AbfG1QvI (ORCPT + 99 others); Sun, 28 Jul 2019 12:51:08 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44612 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbfG1QvI (ORCPT ); Sun, 28 Jul 2019 12:51:08 -0400 Received: by mail-wr1-f67.google.com with SMTP id p17so59246782wrf.11 for ; Sun, 28 Jul 2019 09:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=5K+SuxpGvXfQ///N9XK1+tF5GqeC/HVgCK0aC6WVZtU=; b=OfC8vdkx64xyhbGpo8KCxYo+Lm9vikgIF+jEkc9Nv6Yxn4gP0DjP/kIQg51vfl7xGC jV8WoJ2HAmWTP3kg4XrVF4jk+AGlMOm8gSNklsPETgCIJkZwo7ReZmIX238PnP9Qyin9 yd0vAmYMJBw9QIB5VddDz14pj4cZtz7R9nCvg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5K+SuxpGvXfQ///N9XK1+tF5GqeC/HVgCK0aC6WVZtU=; b=SKs/anD9F6bRAJgiz4qFGO/oY/IHVz/7+PWK9BNbYVIA8JL3HjxwBuby4GaVFHllHg BQsf/zmKMacFWCDIVExUB+gkvAYVnAeZ0RpXzZMqEQc21SMs3/pBP9F86RnKUc47XiR8 cLsErfsT55rKECXxKDaPg/Q1svMMAQ77NYXA7/fs5D3I5gbKIvXH3Nrv1VmANtttFAEP GL1dnKmdVPd4AaFaPntI+uvAqai0WPvnAU+sXMsWDnURcjZ5GYusN2J56WuJ/AmSxCQW hijtCe+Ieq0KVxDp6IpCTkFsjkH+JXV4bdvnV/fB4HqO8XyH/bWybi8BA/QWWXEXydUw ywJQ== X-Gm-Message-State: APjAAAXjy2OewxbcV9upHltSr/RenP5pMh8AckDmSg1FPikVpKRh19Z3 SuLZ0fVhLdOG4FFkkUbFem3xyg== X-Received: by 2002:adf:ea87:: with SMTP id s7mr116716538wrm.24.1564332666403; Sun, 28 Jul 2019 09:51:06 -0700 (PDT) Received: from [192.168.0.107] (84-238-136-197.ip.btc-net.bg. [84.238.136.197]) by smtp.gmail.com with ESMTPSA id i12sm69356215wrx.61.2019.07.28.09.51.04 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jul 2019 09:51:05 -0700 (PDT) Subject: Re: memory leak in fdb_create To: syzbot , bridge@lists.linux-foundation.org, bsingharora@gmail.com, coreteam@netfilter.org, davem@davemloft.net, duwe@suse.de, kaber@trash.net, kadlec@blackhole.kfki.hu, linux-kernel@vger.kernel.org, mingo@redhat.com, mpe@ellerman.id.au, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, pablo@netfilter.org, roopa@cumulusnetworks.com, rostedt@goodmis.org, syzkaller-bugs@googlegroups.com References: <0000000000008be1b2058ebe7805@google.com> From: Nikolay Aleksandrov Message-ID: Date: Sun, 28 Jul 2019 19:51:03 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <0000000000008be1b2058ebe7805@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/07/2019 17:20, syzbot wrote: > syzbot has bisected this bug to: > > commit 04cf31a759ef575f750a63777cee95500e410994 > Author: Michael Ellerman > Date:   Thu Mar 24 11:04:01 2016 +0000 > >     ftrace: Make ftrace_location_range() global > > bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=1538c778600000 > start commit:   abf02e29 Merge tag 'pm-5.2-rc6' of git://git.kernel.org/pu.. > git tree:       upstream > final crash:    https://syzkaller.appspot.com/x/report.txt?x=1738c778600000 > console output: https://syzkaller.appspot.com/x/log.txt?x=1338c778600000 > kernel config:  https://syzkaller.appspot.com/x/.config?x=56f1da14935c3cce > dashboard link: https://syzkaller.appspot.com/bug?extid=88533dc8b582309bf3ee > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=16de5c06a00000 > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=10546026a00000 > > Reported-by: syzbot+88533dc8b582309bf3ee@syzkaller.appspotmail.com > Fixes: 04cf31a759ef ("ftrace: Make ftrace_location_range() global") > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection I see the problem, it'd happen if the multicast stats memory allocation fails on bridge init then the fdb added due to the default vlan would remain and the bridge kmem cache would be destroyed while not empty (you can even trigger a BUG because of that). I'll post a patch shortly after running a few tests. Thanks, Nik