diff options
| author | Djalal Harouni <[email protected]> | 2012-07-30 21:42:28 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-07-31 00:25:20 +0000 |
| commit | bc452b4b65bd589083a7a7ba4f14f85dfc8454fa (patch) | |
| tree | 43e2d8031fea729f32f7800936d61fbc59fc7cdd /lib/cpu-notifier-error-inject.c | |
| parent | proc: environ_read() make sure offset points to environment address range (diff) | |
| download | kernel-bc452b4b65bd589083a7a7ba4f14f85dfc8454fa.tar.gz kernel-bc452b4b65bd589083a7a7ba4f14f85dfc8454fa.zip | |
proc: do not allow negative offsets on /proc/<pid>/environ
__mem_open() which is called by both /proc/<pid>/environ and
/proc/<pid>/mem ->open() handlers will allow the use of negative offsets.
/proc/<pid>/mem has negative offsets but not /proc/<pid>/environ.
Clean this by moving the 'force FMODE_UNSIGNED_OFFSET flag' to mem_open()
to allow negative offsets only on /proc/<pid>/mem.
Signed-off-by: Djalal Harouni <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Brad Spengler <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
