[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120330.205154.1612043960353576031.davem@davemloft.net>
Date: Fri, 30 Mar 2012 20:51:54 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: notting@...hat.com
Cc: inaky.perez-gonzalez@...el.com, wimax@...uxwimax.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] Fix NULL pointer dereference on firmware name for
early calls to get_drvinfo.
From: Bill Nottingham <notting@...hat.com>
Date: Fri, 30 Mar 2012 16:24:05 -0400
> The driver comments show an initialization sequence of:
> * i2400m_setup()
> * i2400m->bus_setup()
> * i2400m_bootrom_init()
> * register_netdev()
> * wimax_dev_add()
> * i2400m_dev_start()
> * __i2400m_dev_start()
> * i2400m_dev_bootstrap()
>
> dev_bootstrap() is where the firmware is loaded. So, if something calls
> get_drvinfo() from a register_netdevice_notifier (such as the cnic driver),
> we won't have a firmware name, and strncpy will crash.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=808603
>
> Signed-off-by: Bill Nottingham <notting@...hat.com>
Already fixed in current sources.
--
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