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]
Message-ID: <20080710085730.GC19918@elte.hu>
Date:	Thu, 10 Jul 2008 10:57:30 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	Jack Steiner <steiner@....com>, tglx@...utronix.de,
	linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] - Map UV chipset space - pagetable


* Andrew Morton <akpm@...ux-foundation.org> wrote:

> On Tue, 1 Jul 2008 14:45:32 -0500 Jack Steiner <steiner@....com> wrote:
> 
> > +	BUG_ON((phys & ~PMD_MASK) || (size & ~PMD_MASK));
> 
> BUG_ON(A || B) is usually a bad idea.  If it goes bang, you'll really wish
> that it had been
> 
> 	BUG_ON(A);
> 	BUG_ON(B);

if you check how it's used:

+       init_extra_mapping_uc(UV_GLOBAL_MMR32_BASE, UV_GLOBAL_MMR32_SIZE);
+       init_extra_mapping_uc(UV_LOCAL_MMR_BASE, UV_LOCAL_MMR_SIZE);

those base/size pairs are really supposed to be aligned on 2MB. I.e. 
this is a really 'impossible' scenario that is not really driven by any 
external factor (hw or driver detail) and a compact check for it is 
acceptable too.

	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