[PATCH 0/6] Sanity checks for ERR_PTR argument

From: Marcin Slusarz
Date: Sun May 18 2008 - 17:58:45 EST


This little patchset adds sanity checks to ERR_PTR.

[PATCH 1/6] ERR_PTR: if errno value is known at compile time, make sure it's valid
[PATCH 2/6] ERR_PTR: add ERR_OR_0_PTR
[PATCH 3/6] vfs: open_exec cleanup
[PATCH 4/6] procfs: switch ERR_PTR to ERR_OR_0_PTR when "error" might be 0
[PATCH 5/6] vfs: fix ERR_PTR abuse in generic_readlink
[PATCH 6/6] ERR_PTR: warn when ERR_PTR parameter is not errno value

The most important are patches 1 and 6. 2nd patch adds another ERR_PTR-like helper.
The rest (3-5) fix false positives found by 6th patch.

---
fs/exec.c | 44 ++++++++++++++++++++++----------------------
fs/namei.c | 15 ++++++++-------
fs/proc/base.c | 4 ++--
include/linux/err.h | 14 +++++++++++++-
4 files changed, 45 insertions(+), 32 deletions(-)
---
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/