Messages in this thread | | | From | Marcin Slusarz <> | Subject | [PATCH 0/6] Sanity checks for ERR_PTR argument | Date | Sun, 18 May 2008 23:56:52 +0200 |
| |
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(-) ---
| |