From: syzbot <syzbot+@syzkaller.appspotmail.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: coreteam@netfilter.org, davem@davemloft.net, fw@strlen.de,
kadlec@blackhole.kfki.hu, kuznet@ms2.inr.ac.ru,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
netfilter-devel@vger.kernel.org, pabeni@redhat.com,
pablo@netfilter.org, syzkaller-bugs@googlegroups.com,
xiyou.wangcong@gmail.com, yoshfuji@linux-ipv6.org
Subject: Re: WARNING: proc registration bug in clusterip_tg_check
Date: Wed, 07 Feb 2018 02:42:27 -0800 [thread overview]
Message-ID: <001a114372a68e749405649cf352@google.com> (raw)
In-Reply-To: <945c8517a87c671825b61223088064ea2ad0a8cb.1517999262.git.pabeni@redhat.com>
> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
> master
Can't find the corresponding bug.
> I can't reproduce the issue locally, so asking the syzbot to test the
> tentive fix for me (and hoping I did not mess with the tag/format)
> ---
> net/ipv4/netfilter/ipt_CLUSTERIP.c | 30 +++++++++++++++---------------
> 1 file changed, 15 insertions(+), 15 deletions(-)
> diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c
> b/net/ipv4/netfilter/ipt_CLUSTERIP.c
> index 3a84a60f6b39..db103cd971a9 100644
> --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
> +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
> @@ -230,17 +230,6 @@ clusterip_config_init(struct net *net, const struct
> ipt_clusterip_tgt_info *i,
> refcount_set(&c->refcount, 1);
> refcount_set(&c->entries, 1);
> - spin_lock_bh(&cn->lock);
> - if (__clusterip_config_find(net, ip)) {
> - spin_unlock_bh(&cn->lock);
> - kfree(c);
> -
> - return ERR_PTR(-EBUSY);
> - }
> -
> - list_add_rcu(&c->list, &cn->configs);
> - spin_unlock_bh(&cn->lock);
> -
> #ifdef CONFIG_PROC_FS
> {
> char buffer[16];
> @@ -257,20 +246,31 @@ clusterip_config_init(struct net *net, const struct
> ipt_clusterip_tgt_info *i,
> }
> #endif
> + spin_lock_bh(&cn->lock);
> + if (__clusterip_config_find(net, ip)) {
> + spin_unlock_bh(&cn->lock);
> + err = -EBUSY;
> + goto err_remove_pte:
> + }
> +
> + list_add_rcu(&c->list, &cn->configs);
> + spin_unlock_bh(&cn->lock);
> +
> c->notifier.notifier_call = clusterip_netdev_event;
> err = register_netdevice_notifier(&c->notifier);
> if (!err)
> return c;
> + spin_lock_bh(&cn->lock);
> + list_del_rcu(&c->list);
> + spin_unlock_bh(&cn->lock);
> +
> +err_remove_pte:
> #ifdef CONFIG_PROC_FS
> proc_remove(c->pde);
> err:
> #endif
> - spin_lock_bh(&cn->lock);
> - list_del_rcu(&c->list);
> - spin_unlock_bh(&cn->lock);
> kfree(c);
> -
> return ERR_PTR(err);
> }
> --
> 2.14.3
> --
> You received this message because you are subscribed to the Google
> Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to syzkaller-bugs+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/syzkaller-bugs/945c8517a87c671825b61223088064ea2ad0a8cb.1517999262.git.pabeni%40redhat.com.
> For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2018-02-07 10:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-06 14:27 WARNING: proc registration bug in clusterip_tg_check syzbot
2018-02-07 6:42 ` Cong Wang
2018-02-07 8:43 ` Paolo Abeni
2018-02-07 15:57 ` Paolo Abeni
2018-02-07 10:41 ` Paolo Abeni
2018-02-07 10:42 ` syzbot [this message]
2018-02-07 10:50 ` Dmitry Vyukov
2018-02-07 11:04 ` syzbot
2018-02-07 11:31 ` Florian Westphal
[not found] <65775a4878958a927b7d7d5e31dc240486096f31.1518001993.git.pabeni@redhat.com>
2018-02-07 11:23 ` syzbot
2018-02-07 11:24 ` syzbot
-- strict thread matches above, loose matches on Subject: below --
2022-12-27 15:09 Wei Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=001a114372a68e749405649cf352@google.com \
--to=syzbot+@syzkaller.appspotmail.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=kadlec@blackhole.kfki.hu \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=syzkaller-bugs@googlegroups.com \
--cc=xiyou.wangcong@gmail.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.