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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 16 Mar 2014 09:59:23 -0700
From:	Joe Perches <joe@...ches.com>
To:	Veaceslav Falico <vfalico@...hat.com>
Cc:	netdev@...r.kernel.org, Jay Vosburgh <fubar@...ibm.com>,
	Andy Gospodarek <andy@...yhouse.net>
Subject: Re: [PATCH net-next] bonding: net_ratelimit() pr_warn()s in 802.3ad
 mode

On Sun, 2014-03-16 at 17:29 +0100, Veaceslav Falico wrote:
> Only ratelimit the ones that might spam, omiting the ones from
> enslave/deslave.

No, this patch isn't good and must not be applied.
You've also changed flow here.

> diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
[]
> @@ -2080,7 +2081,7 @@ void bond_3ad_state_machine_handler(struct work_struct *work)
>  
>  		/* select the active aggregator for the bond */
>  		if (port) {
> -			if (!port->slave) {
> +			if (!port->slave && net_ratelimit()) {
>  				pr_warn("%s: Warning: bond's first port is uninitialized\n",
>  					bond->dev->name);
>  				goto re_arm;

Now the goto is ratelimited too.

> @@ -2095,7 +2096,7 @@ void bond_3ad_state_machine_handler(struct work_struct *work)
>  	/* for each port run the state machines */
>  	bond_for_each_slave_rcu(bond, slave, iter) {
>  		port = &(SLAVE_AD_INFO(slave).port);
> -		if (!port->slave) {
> +		if (!port->slave && net_ratelimit()) {
>  			pr_warn("%s: Warning: Found an uninitialized port\n",
>  				bond->dev->name);
>  			goto re_arm;

here too.

> @@ -2157,7 +2158,7 @@ static int bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave,
>  
>  		port = &(SLAVE_AD_INFO(slave).port);
>  
> -		if (!port->slave) {
> +		if (!port->slave && net_ratelimit()) {
>  			pr_warn("%s: Warning: port of slave %s is uninitialized\n",
>  				slave->dev->name, slave->bond->dev->name);
>  			return ret;

And the return 3.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ