login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
18
Re: kernel oops
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: kernel oops
Date: Monday, August 18, 2008 - 9:39 am
On Mon, Aug 18, 2008 at 06:33:42PM +0200, Vegard Nossum wrote:
quoted text
> On Wed, Jul 23, 2008 at 7:11 PM, Vegard Nossum <vegard.nossum@gmail.com> wrote: > > On Wed, Jul 23, 2008 at 2:52 PM, Andrei Popa <andrei.popa@i-neo.ro> wrote: > >> > >> I installed gnokii-0.6.22-r2 and gave the command "gnokii --identify" > >> and the kernel oopsed: > >> > >> BUG: unable to handle kernel NULL pointer dereference at 00000458 > >> IP: [<c0444b52>] mutex_unlock+0x0/0xb > >> *pde = 00000000 > >> Oops: 0002 [#1] PREEMPT SMP > >> > >> Pid: 19043, comm: gnokii Not tainted (2.6.26-ineo7 #2) > >> EIP: 0060:[<c0444b52>] EFLAGS: 00010246 CPU: 0 > >> EIP is at mutex_unlock+0x0/0xb > > ... > >> [<c03830ae>] acm_tty_open+0x4c/0x214 > > > > This shouldn't be too hard; the code is trying to unlock the mutex > > &acm->mutex even when "acm" is NULL. It seems that the label "err_out" > > is otherwise unused, so it makes sense to move this one step further > > down, so that it doesn't try to unlock the non-existent mutex. > > > > If the problem is reproducible, you could try the patch below! > > > > > > Vegard > > > > PS: I actually think the code has some other problems too. Shouldn't > > &acm->mutex be locked before we even inspect acm->dev? > > > > > > Reported-by: Andrei Popa <andrei.popa@i-neo.ro> > > Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> > > > > diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c > > index 63c3404..74d03a7 100644 > > --- a/drivers/usb/class/cdc-acm.c > > +++ b/drivers/usb/class/cdc-acm.c > > @@ -525,8 +525,8 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp) > > tasklet_schedule(&acm->urb_task); > > > > done: > > -err_out: > > mutex_unlock(&acm->mutex); > > +err_out: > > mutex_unlock(&open_mutex); > > return rv; > > > > > > Hi, > > Latest -git seems to have the same problem, and this was about three > weeks ago, so.. Ping?
Hm, I thought I took a patch to fix this a few weeks ago. Oliver, have I missed anything recently? thanks, greg k-h --
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:
kernel oops
, Andrei Popa
, (Wed Jul 23, 5:52 am)
[PATCH] cdc-acm: don't unlock acm->mutex on error path
, Alexey Dobriyan
, (Wed Jul 23, 6:23 am)
Re: [PATCH] cdc-acm: don't unlock acm->mutex on error path
, Andrei Popa
, (Wed Jul 23, 6:36 am)
Re: kernel oops
, Vegard Nossum
, (Wed Jul 23, 10:11 am)
Re: kernel oops
, Vegard Nossum
, (Mon Aug 18, 9:33 am)
Re: kernel oops
, Greg KH
, (Mon Aug 18, 9:39 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate