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:	Mon, 9 Feb 2009 08:24:02 -0800
From:	Greg KH <gregkh@...e.de>
To:	Stefan Lippers-Hollmann <s.L-H@....de>
Cc:	linux-kernel@...r.kernel.org, len.brown@...el.com,
	stable@...nel.org
Subject: Re: patch acpi-remove-locking-from-pm1x_sts-register-reads.patch
	added to 2.6.28-stable tree

On Mon, Feb 09, 2009 at 01:24:43AM +0100, Stefan Lippers-Hollmann wrote:
> Hi
> 
> On Sonntag, 8. Februar 2009, gregkh@...e.de wrote:
> > 
> > This is a note to let you know that we have just queued up the patch titled
> > 
> >     Subject: ACPI: remove locking from PM1x_STS register reads
> > 
> > to the 2.6.28-stable tree.  Its filename is
> > 
> >     acpi-remove-locking-from-pm1x_sts-register-reads.patch
> [...]
> > From a2b7b01c072435b7832ab392167545a1b38cabc3 Mon Sep 17 00:00:00 2001
> > From: Len Brown <len.brown@...el.com>
> > Date: Wed, 28 Jan 2009 12:47:15 -0500
> > Subject: ACPI: remove locking from PM1x_STS register reads
> > 
> > From: Len Brown <len.brown@...el.com>
> > 
> > commit a2b7b01c072435b7832ab392167545a1b38cabc3 upstream.
> > 
> > PM1a_STS and PM1b_STS are twins that get OR'd together
> > on reads, and all writes are repeated to both.
> > 
> > The fields in PM1x_STS are single bits only,
> > there are no multi-bit fields.
> > 
> > So it is not necessary to lock PM1x_STS reads against
> > writes because it is impossible to read an intermediate
> > value of a single bit.  It will either be 0 or 1,
> > even if a write is in progress during the read.
> > Reads are asynchronous to writes no matter if a lock
> > is used or not.
> > 
> > Signed-off-by: Len Brown <len.brown@...el.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
> 
> This patch fails to compile on 2.6.28.4 + queue-2.6.28 (and 2.6.27 as 
> well):
> 
> 
>   BUILD   arch/x86/boot/bzImage
> Root device is (254, 1)
> Setup is 11676 bytes (padded to 11776 bytes).
> System is 2175 kB
> CRC d4d9303a
> Kernel: arch/x86/boot/bzImage is ready  (#1)
> ERROR: "acpi_get_register_unlocked" [drivers/acpi/processor.ko] undefined!
> make[4]: *** [__modpost] Error 1
> make[3]: *** [modules] Error 2
> 
> 
> because it seems to depend on the larger changes started in, but not 
> limited to:

Odd, it builds for me.  I see acpi_get_register_unlocked being defined
in include/acpi/acpixf.h and then implemented in
drivers/acpi/hardware/hwregs.c in the 2.6.28.4 + queue tree.

Do you not have it somehow?

Do you think this patch shouldn't be added to the tree?  If so, I have
no objection to removing it, it just looked like a bugfix that would be
good to backport.

thanks,

greg k-h
--
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