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:	Tue, 3 Jul 2007 21:45:23 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Christoph Lameter <clameter@....com>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andre Noll <maan@...temlinux.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Linux 2.6.22-rc7


* Christoph Lameter <clameter@....com> wrote:

> > However, it might be worth avoiding the warning, even if it seems 
> > bogus in this case. Christoph? Do you agree with the analysis? And 
> > the patch might be as simple as changing 
> > early_kmem_cache_node_alloc() to enable interrupts at the _end_ of 
> > the function, rather than immediately after calling new_slab().
> 
> new_slab() enables and disables interrupts during usual operations. 
> During bootstrap interrupts are enabled and so new_slab() falsely 
> disables interrupts when we do the alloc by hand thing in 
> early_kmem_cache_node_alloc for NUMA. We need to enable interrupts 
> there since otherwise boot will continue with interrupts disabled.

yeah. Your change looks good to me. You could add a 
local_irq_enable_in_hardirq() to the original place, that will map to a 
local_irq_enable() on non-lockdep kernels and will be a NOP on lockdep 
kernels. (This is a bit hacky though.)

Acked-by: Ingo Molnar <mingo@...e.hu>

	Ingo
-
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