login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
1
Re: - eepro100-avoid-potential-null-pointer-deref-in-speedo_init_rx_ring.patch removed from -mm tree
view
thread
Score:
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Kok, Auke <auke-jan.h.kok@...>
To: <jesper.juhl@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: - eepro100-avoid-potential-null-pointer-deref-in-speedo_init_rx_ring.patch removed from -mm tree
Date: Monday, October 1, 2007 - 4:54 pm
akpm@linux-foundation.org
wrote:
quoted text
> The patch titled > eepro100: Avoid potential NULL pointer deref in speedo_init_rx_ring() > has been removed from the -mm tree. Its filename was > eepro100-avoid-potential-null-pointer-deref-in-speedo_init_rx_ring.patch > > This patch was dropped because an updated version will be merged > > ------------------------------------------------------ > Subject: eepro100: Avoid potential NULL pointer deref in speedo_init_rx_ring() > From: Jesper Juhl <jesper.juhl@gmail.com> > > In a low memory situation, if you are very unlucky, the speedo_init_rx_ring() > function may cause a NULL pointer deref. > > The problem is in the case where we can't allocate even a single skb for > the RX ring. In this case 'last_rxf' will be NULL when we break out of > the loop and the line > last_rxf->status = cpu_to_le32(0xC0000002); /* '2' is flag value only. */ > will cause a NULL pointer dereference. > > To fix this properly we need to be return an error from speedo_init_rx_ring() > and have the caller (speedo_open()) catch and propagate the error, as well as > undo anything done to setup the device so far. > > This patch adds a check to catch the unlucky case of not even a single skb > being available and adds code in the caller to catch the error and release the > device properly. > > For a user who hits this problem, this makes the difference between her device > not being opened and a kernel crash. Clearly a non functional NIC if > preferable to a kernel crash - especially since setting up the device can > easily be retried later after freeing up some memory; a kernel crash is not as > easy to recover from. > > The problem was initially spotted by the Coverity checker. > > Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
is this actually a problem? everybody should be running e100. I'm surprised to see a patch for eepro100, just before it gets removed... Auke -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: - eepro100-avoid-potential-null-pointer-deref-in-speedo_...
, Kok, Auke
, (Mon Oct 1, 4:54 pm)
Re: - eepro100-avoid-potential-null-pointer-deref-in-speedo_...
, Jesper Juhl
, (Tue Oct 2, 4:12 am)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Ingo Molnar
Re: [BUG] New Kernel Bugs
Tony Lindgren
[PATCH 42/90] ARM: OMAP: Tabify mux.c
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
Martin Langhoff
Re: pack operation is thrashing my server
Andreas Ericsson
Re: VCS comparison table
Ingo Molnar
[OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commi...
Nicolas Vilz 'niv'
git + ssh + key authentication feature-request
openbsd-misc
:
Richard Stallman
Real men don't attack straw men
Darren Spruell
Re: About Xen: maybe a reiterative question but ..
Nick Holland
Re: 4.1 on ALIX.1C - recommendations?
Lord Sporkton
Re: low-MHz server
linux-netdev
:
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Brandeburg, Jesse
RE: e1000 full-duplex TCP performance well below wire speed
Latest forum posts
high memory
1 day ago
Linux kernel
semaphore access speed
1 day ago
Applications and Utilities
the kernel how to power off the machine
1 day ago
Linux kernel
Easter Eggs in windows XP
1 day ago
Windows
Shared swap partition
1 day ago
Linux general
Root password
1 day ago
Linux general
Where/when DNOTIFY is used?
1 day ago
Linux kernel
How to convert Linux Kernel built-in module into a loadable module
1 day ago
Linux kernel
Linux 2.6.24 and I/O schedulers
1 day ago
Linux kernel
USB Driver -- Interrupt Polling -- A Little Help Please
2 days ago
Linux general
Show all forums...
Recent Tags
2.6.27
bugs
-rc
Linux
-rc8
quote
Intel
Linus Torvalds
2.6.27-rc8
more tags
Colocation donated by:
Who's online
There are currently
2 users
and
827 guests
online.
Online users
jnareb
Mr_Z
Syndicate
speck-geostationary