[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3489.1201820129@death>
Date: Thu, 31 Jan 2008 14:55:29 -0800
From: Jay Vosburgh <fubar@...ibm.com>
To: Chuck Ebbert <cebbert@...hat.com>
cc: Netdev <netdev@...r.kernel.org>
Subject: Re: Null pointer dereference in bonding driver, kernel 2.6.24
Chuck Ebbert <cebbert@...hat.com> wrote:
>In bond_main.c:
>
>int bond_create(char *name, struct bond_params *params, struct bonding **newbond)
>{
>...
> /* Check to see if the bond already exists. */
> list_for_each_entry_safe(bond, nxt, &bond_dev_list, bond_list)
> if (strnicmp(bond->dev->name, name, IFNAMSIZ) == 0) {
> printk(KERN_ERR DRV_NAME
> ": cannot add bond %s; it already exists\n",
>
>
>If 'name' is null we get a null dereference in strnicmp()
>
>The code was added in 2.6.24.
This is already fixed in netdev-2.6#upstream.
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@...ibm.com
--
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