Some of them aren't too difficult to find and fix, but others are turning
out to be deeply hidden. The timing is poor -- disable this for now.
We need to revisit this right after tree unlock.
-/* $OpenBSD: subr_poison.c,v 1.10 2014/07/08 22:30:26 tedu Exp $ */
+/* $OpenBSD: subr_poison.c,v 1.11 2014/07/22 21:41:09 deraadt Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
l = l >> PAGE_SHIFT;
- switch (l & 3) {
- case 0:
- return POISON0;
- case 1:
- return POISON1;
- case 2:
- return ~POISON0;
- case 3:
- return ~POISON1;
- }
- return 0;
+ return (l & 1) ? POISON0 : POISON1;
}
void