lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 2 Apr 2009 17:21:31 +0200 (CEST)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Jaswinder Singh Rajput <jaswinder@...nel.org>
cc:	mingo@...hat.com, hpa@...or.com, linux-kernel@...r.kernel.org,
	henrix@...o.pt, linux-tip-commits@...r.kernel.org
Subject: Re: [tip:irq/genirq] genirq: do not execute DEBUG_SHIRQ when irq
 setup failed

On Thu, 2 Apr 2009, Jaswinder Singh Rajput wrote:
> On Thu, 2009-04-02 at 14:03 +0000, Luis Henriques wrote:
> > Commit-ID:  ba71604fad348656071a2a76eef9a67dab85a773
> > Gitweb:     http://git.kernel.org/tip/ba71604fad348656071a2a76eef9a67dab85a773
> > Author:     Luis Henriques <henrix@...o.pt>
> > AuthorDate: Wed, 1 Apr 2009 18:06:35 +0100
> > Committer:  Thomas Gleixner <tglx@...utronix.de>
> > CommitDate: Thu, 2 Apr 2009 16:02:39 +0200
> > 
> > genirq: do not execute DEBUG_SHIRQ when irq setup failed
> > 
> > When requesting an IRQ, the DEBUG_SHIRQ code executes a fake IRQ just to make
> > sure the driver is ready to receive an IRQ immediately.  The problem was that
> > this fake IRQ was being executed even if interrupt line failed to be allocated
> > by __setup_irq.
> > 
> > Signed-off-by: Luis Henriques <henrix@...o.pt>
> > LKML-Reference: <20090401170635.GA4392@...es.domain.com>
> > Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> > 
> > 
> > ---
> >  kernel/irq/manage.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
> > index 1516ab7..beeb7d1 100644
> > --- a/kernel/irq/manage.c
> > +++ b/kernel/irq/manage.c
> > @@ -768,7 +768,7 @@ int request_irq(unsigned int irq, irq_handler_t handler,
> >  		kfree(action);
> >  
> >  #ifdef CONFIG_DEBUG_SHIRQ
> > -	if (irqflags & IRQF_SHARED) {
> > +	if (!retval & (irqflags & IRQF_SHARED)) {
> >  		/*
> >  		 * It's a shared IRQ -- the driver ought to be prepared for it
> >  		 * to happen immediately, so let's make sure....
> 
> What is this ?

You looking at the wrong place.
 
> There is no retval:
> 
> http://git.kernel.org/?p=linux/kernel/git/x86/linux-2.6-tip.git;a=blob;f=kernel/irq/manage.c;h=a3eb7baf1e46f2c735edb4cc44e0386cfbc4989e;hb=HEAD

Care to read patches you want to comment on carefully _BEFORE_ you
start yelling at people and sending useless copies of the wrong
function around the world.

The patch is perfectly fine and already applied.

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ