-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Randy Dunlap
authored and
Linus Torvalds
committed
Jun 28, 2006
1 parent
498cbe9
commit 5c42147
Showing
10 changed files
with
62 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e6e5494cb23d1933735ee47cc674ffe1c4afed6f | ||
refs/heads/master: c9cf55285e87ac423c45d9efca750d3f50234d10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef _LINUX_POISON_H | ||
#define _LINUX_POISON_H | ||
|
||
/********** include/linux/list.h **********/ | ||
/* | ||
* These are non-NULL pointers that will result in page faults | ||
* under normal circumstances, used to verify that nobody uses | ||
* non-initialized list entries. | ||
*/ | ||
#define LIST_POISON1 ((void *) 0x00100100) | ||
#define LIST_POISON2 ((void *) 0x00200200) | ||
|
||
/********** mm/slab.c **********/ | ||
/* | ||
* Magic nums for obj red zoning. | ||
* Placed in the first word before and the first word after an obj. | ||
*/ | ||
#define RED_INACTIVE 0x5A2CF071UL /* when obj is inactive */ | ||
#define RED_ACTIVE 0x170FC2A5UL /* when obj is active */ | ||
|
||
/* ...and for poisoning */ | ||
#define POISON_INUSE 0x5a /* for use-uninitialised poisoning */ | ||
#define POISON_FREE 0x6b /* for use-after-free poisoning */ | ||
#define POISON_END 0xa5 /* end-byte of poisoning */ | ||
|
||
/********** arch/$ARCH/mm/init.c **********/ | ||
#define POISON_FREE_INITMEM 0xcc | ||
|
||
/********** arch/x86_64/mm/init.c **********/ | ||
#define POISON_FREE_INITDATA 0xba | ||
|
||
/********** arch/ia64/hp/common/sba_iommu.c **********/ | ||
/* | ||
* arch/ia64/hp/common/sba_iommu.c uses a 16-byte poison string with a | ||
* value of "SBAIOMMU POISON\0" for spill-over poisoning. | ||
*/ | ||
|
||
/********** fs/jbd/journal.c **********/ | ||
#define JBD_POISON_FREE 0x5b | ||
|
||
/********** drivers/base/dmapool.c **********/ | ||
#define POOL_POISON_FREED 0xa7 /* !inuse */ | ||
#define POOL_POISON_ALLOCATED 0xa9 /* !initted */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters