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] [day] [month] [year] [list]
Date:	Thu, 10 May 2007 23:01:56 -0700
From:	David Brownell <david-b@...bell.net>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	Marc Pignat <marc.pignat@...s.ch>, andrew@...people.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCHv2] at91: fix enable/disable_irq_wake symmetry in pcmcia driver

On Thursday 10 May 2007, Andrew Morton wrote:

> "disable_irq_wake call must be symmetric with enable_irq_wake".  hmm, OK,
> I'll take your word for it.

In the same way that enable_irq() and disable_irq() must be matched,
and for the same reasons:  when the IRQ is shared between drivers,
they can't all treat enable/disable status as boolean.  Those calls
mask refcountig.


> Does the present code actually fail in some manner, or what?

Yes ... runtime warnings flagging various misbehaviors associated
with refcount mismatches.

- Dave


-
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