diff options
author | Kyle McMartin <kyle@mcmartin.ca> | 2006-02-07 12:58:47 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-07 16:12:33 -0800 |
commit | 1fcbf053e55e961112f237dc690129f0858156f1 (patch) | |
tree | c352b63dc2d73e4033d064bb4b5437d76157bfa8 /fs/efs | |
parent | b5173119ff10c5538e92a7957a50887ae170b8da (diff) |
[PATCH] sys_hpux: fix strlen_user() race
Userspace can alter the string after the kernel has run strlen_user().
Also: the strlen_user() return value includes the \0, so fix that.
Also: handle EFAULT from strlen_user().
It's unlikely anyone is using this code. Very, very unlikely. If I
remember correctly, CONFIG_HPUX turns this code on, but one would actually
need CONFIG_BINFMT_SOM to load a binary that could cause a problem, and
BINFMT_SOM has had an #error in it for quite some time.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/efs')
0 files changed, 0 insertions, 0 deletions