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
| ||
|
Date: Wed, 23 May 2012 10:37:28 -0700 From: Linus Torvalds <torvalds@...ux-foundation.org> To: Borislav Petkov <bp@...en8.de>, Linus Torvalds <torvalds@...ux-foundation.org>, "H. Peter Anvin" <hpa@...or.com>, Peter Zijlstra <a.p.zijlstra@...llo.nl>, Borislav Petkov <borislav.petkov@....com>, mingo@...nel.org, linux-kernel@...r.kernel.org, frank.arnold@....com, akpm@...ux-foundation.org, tglx@...utronix.de, linux-tip-commits@...r.kernel.org Subject: Re: [tip:x86/mce] x86/bitops: Move BIT_64() for a wider use On Wed, May 23, 2012 at 10:11 AM, Borislav Petkov <bp@...en8.de> wrote: > > And, in addition, hpa's example won't work too: > > u64 msr = ~BIT(1); Yes, that's a good example of something that can be problematic, and is fundamentally different on 32-bit and 64-bit. So maybe BIT() unconditionally being long, and BIT_64() being u64 simply is the right model. Linus -- 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