lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1812010830170.2633@hadrien>
Date:   Sat, 1 Dec 2018 08:31:40 +0100 (CET)
From:   Julia Lawall <julia.lawall@...6.fr>
To:     Pablo Neira Ayuso <pablo@...filter.org>
cc:     davem@...emloft.net, netdev@...r.kernel.org, kbuild-all@...org,
        thomas.lendacky@....com, f.fainelli@...il.com,
        ariel.elior@...ium.com, michael.chan@...adcom.com,
        santosh@...lsio.com, madalin.bucur@....com,
        yisen.zhuang@...wei.com, salil.mehta@...wei.com,
        jeffrey.t.kirsher@...el.com, tariqt@...lanox.com,
        saeedm@...lanox.com, jiri@...lanox.com, idosch@...lanox.com,
        jakub.kicinski@...ronome.com, peppe.cavallaro@...com,
        grygorii.strashko@...com, andrew@...n.ch,
        vivien.didelot@...oirfairelinux.com, alexandre.torgue@...com,
        joabreu@...opsys.com, linux-net-drivers@...arflare.com,
        ganeshgr@...lsio.com, ogerlitz@...lanox.com,
        Manish.Chopra@...ium.com, marcelo.leitner@...il.com
Subject: Re: [PATCH net-next,v4 01/12] flow_offload: add flow_rule and
 flow_match structures and use them (fwd)

Hello,

It looks like the kfree on line 1573 should be moved down a few lines.

julia

---------- Forwarded message ----------
Date: Sat, 1 Dec 2018 11:11:55 +0800
From: kbuild test robot <lkp@...el.com>
To: kbuild@...org
Cc: Julia Lawall <julia.lawall@...6.fr>
Subject: Re: [PATCH net-next,
    v4 01/12] flow_offload: add flow_rule and flow_match structures and use them

CC: kbuild-all@...org
In-Reply-To: <20181129022231.2740-2-pablo@...filter.org>
References: <20181129022231.2740-2-pablo@...filter.org>
TO: Pablo Neira Ayuso <pablo@...filter.org>
CC: netdev@...r.kernel.org

Hi Pablo,

I love your patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]
[also build test WARNING on next-20181130]
[cannot apply to v4.20-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Pablo-Neira-Ayuso/add-flow_rule-infrastructure/20181130-204709
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago

>> net/sched/cls_flower.c:1586:7-9: ERROR: reference preceded by free on line 1573

# https://github.com/0day-ci/linux/commit/012ba7afb48db31be34a84d5fe82c4ceb409fd2d
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 012ba7afb48db31be34a84d5fe82c4ceb409fd2d
vim +1586 net/sched/cls_flower.c

34738452 Jiri Pirko        2018-07-23  1544
b95ec7eb Jiri Pirko        2018-07-23  1545  static void *fl_tmplt_create(struct net *net, struct tcf_chain *chain,
b95ec7eb Jiri Pirko        2018-07-23  1546  			     struct nlattr **tca,
b95ec7eb Jiri Pirko        2018-07-23  1547  			     struct netlink_ext_ack *extack)
b95ec7eb Jiri Pirko        2018-07-23  1548  {
b95ec7eb Jiri Pirko        2018-07-23  1549  	struct fl_flow_tmplt *tmplt;
b95ec7eb Jiri Pirko        2018-07-23  1550  	struct nlattr **tb;
b95ec7eb Jiri Pirko        2018-07-23  1551  	int err;
b95ec7eb Jiri Pirko        2018-07-23  1552
b95ec7eb Jiri Pirko        2018-07-23  1553  	if (!tca[TCA_OPTIONS])
b95ec7eb Jiri Pirko        2018-07-23  1554  		return ERR_PTR(-EINVAL);
b95ec7eb Jiri Pirko        2018-07-23  1555
b95ec7eb Jiri Pirko        2018-07-23  1556  	tb = kcalloc(TCA_FLOWER_MAX + 1, sizeof(struct nlattr *), GFP_KERNEL);
b95ec7eb Jiri Pirko        2018-07-23  1557  	if (!tb)
b95ec7eb Jiri Pirko        2018-07-23  1558  		return ERR_PTR(-ENOBUFS);
b95ec7eb Jiri Pirko        2018-07-23  1559  	err = nla_parse_nested(tb, TCA_FLOWER_MAX, tca[TCA_OPTIONS],
b95ec7eb Jiri Pirko        2018-07-23  1560  			       fl_policy, NULL);
b95ec7eb Jiri Pirko        2018-07-23  1561  	if (err)
b95ec7eb Jiri Pirko        2018-07-23  1562  		goto errout_tb;
b95ec7eb Jiri Pirko        2018-07-23  1563
b95ec7eb Jiri Pirko        2018-07-23  1564  	tmplt = kzalloc(sizeof(*tmplt), GFP_KERNEL);
1cbc36a5 Dan Carpenter     2018-08-03  1565  	if (!tmplt) {
1cbc36a5 Dan Carpenter     2018-08-03  1566  		err = -ENOMEM;
b95ec7eb Jiri Pirko        2018-07-23  1567  		goto errout_tb;
1cbc36a5 Dan Carpenter     2018-08-03  1568  	}
b95ec7eb Jiri Pirko        2018-07-23  1569  	tmplt->chain = chain;
b95ec7eb Jiri Pirko        2018-07-23  1570  	err = fl_set_key(net, tb, &tmplt->dummy_key, &tmplt->mask, extack);
b95ec7eb Jiri Pirko        2018-07-23  1571  	if (err)
b95ec7eb Jiri Pirko        2018-07-23  1572  		goto errout_tmplt;
b95ec7eb Jiri Pirko        2018-07-23 @1573  	kfree(tb);
b95ec7eb Jiri Pirko        2018-07-23  1574
b95ec7eb Jiri Pirko        2018-07-23  1575  	fl_init_dissector(&tmplt->dissector, &tmplt->mask);
b95ec7eb Jiri Pirko        2018-07-23  1576
012ba7af Pablo Neira Ayuso 2018-11-29  1577  	err = fl_hw_create_tmplt(chain, tmplt);
012ba7af Pablo Neira Ayuso 2018-11-29  1578  	if (err)
012ba7af Pablo Neira Ayuso 2018-11-29  1579  		goto errout_tmplt;
34738452 Jiri Pirko        2018-07-23  1580
b95ec7eb Jiri Pirko        2018-07-23  1581  	return tmplt;
b95ec7eb Jiri Pirko        2018-07-23  1582
b95ec7eb Jiri Pirko        2018-07-23  1583  errout_tmplt:
b95ec7eb Jiri Pirko        2018-07-23  1584  	kfree(tmplt);
b95ec7eb Jiri Pirko        2018-07-23  1585  errout_tb:
b95ec7eb Jiri Pirko        2018-07-23 @1586  	kfree(tb);
b95ec7eb Jiri Pirko        2018-07-23  1587  	return ERR_PTR(err);
b95ec7eb Jiri Pirko        2018-07-23  1588  }
b95ec7eb Jiri Pirko        2018-07-23  1589

:::::: The code at line 1586 was first introduced by commit
:::::: b95ec7eb3b4d2f158dd15c912cf670b546f09571 net: sched: cls_flower: implement chain templates

:::::: TO: Jiri Pirko <jiri@...lanox.com>
:::::: CC: David S. Miller <davem@...emloft.net>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ