[PATCH] Fix NULL pointer dereference on firmware name for early calls to get_drvinfo.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bill Nottingham <notting at redhat.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 at redhat.com>

Already fixed in current sources.


[Index of Archives]     [Linux Kernel]     [Linux Wireless]     [Linux Bluetooth]     [Linux Netdev]     [Linux Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux