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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 16 Dec 2009 11:15:09 -0800
From:	"Michael Chan" <mchan@...adcom.com>
To:	"leitao@...ux.vnet.ibm.com" <leitao@...ux.vnet.ibm.com>
cc:	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] bnx2: reset_task is crashing the kernel. Fixing it.


On Wed, 2009-12-16 at 11:12 -0800, leitao@...ux.vnet.ibm.com wrote:
> If bnx2 schedules a reset via the reset_task, e.g., due to a TX
> timeout, it's possible for the NIC to be disabled with packets
> pending for transmit.  In this case, napi_disable will loop forever,
> eventually crashing the kernel.  This patch moves the disable of
> the device to after the napi_disable call.
> 
> Signed-off-by: Breno Leitao <leitao@...ux.vnet.ibm.com>

Acked-by: Michael Chan <mchan@...adcom.com>

> ---
>  drivers/net/bnx2.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
> index f81f082..65df1de 100644
> --- a/drivers/net/bnx2.c
> +++ b/drivers/net/bnx2.c
> @@ -653,7 +653,6 @@ static void
>  bnx2_netif_stop(struct bnx2 *bp)
>  {
>  	bnx2_cnic_stop(bp);
> -	bnx2_disable_int_sync(bp);
>  	if (netif_running(bp->dev)) {
>  		int i;
>  
> @@ -667,6 +666,7 @@ bnx2_netif_stop(struct bnx2 *bp)
>  			txq->trans_start = jiffies;
>  		}
>  	}
> +	bnx2_disable_int_sync(bp);
>  }
>  
>  static void


--
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