Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 574091 Details for
Bug 808603
i2400m null pointer dereference
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
a patch thrown at upstream
0001-Fix-NULL-pointer-dereference-on-firmware-name-for-ea.patch (text/plain), 1.58 KB, created by
Bill Nottingham
on 2012-03-30 20:25:29 UTC
(
hide
)
Description:
a patch thrown at upstream
Filename:
MIME Type:
Creator:
Bill Nottingham
Created:
2012-03-30 20:25:29 UTC
Size:
1.58 KB
patch
obsolete
>From 27bfcbf6ebd238b09623ec35094767b968c61b6e Mon Sep 17 00:00:00 2001 >From: Bill Nottingham <notting@redhat.com> >Date: Fri, 30 Mar 2012 16:17:20 -0400 >Subject: [PATCH] Fix NULL pointer dereference on firmware name for early > calls to get_drvinfo. > >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@redhat.com> >--- > drivers/net/wimax/i2400m/netdev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c >index 63e4b70..e44f4e2 100644 >--- a/drivers/net/wimax/i2400m/netdev.c >+++ b/drivers/net/wimax/i2400m/netdev.c >@@ -597,7 +597,8 @@ static void i2400m_get_drvinfo(struct net_device *net_dev, > struct i2400m *i2400m = net_dev_to_i2400m(net_dev); > > strncpy(info->driver, KBUILD_MODNAME, sizeof(info->driver) - 1); >- strncpy(info->fw_version, i2400m->fw_name, sizeof(info->fw_version) - 1); >+ if (i2400m->fw_name) >+ strncpy(info->fw_version, i2400m->fw_name, sizeof(info->fw_version) - 1); > if (net_dev->dev.parent) > strncpy(info->bus_info, dev_name(net_dev->dev.parent), > sizeof(info->bus_info) - 1); >-- >1.7.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 808603
: 574091