aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2018-05-25 14:47:30 -0700
committerLinus Torvalds <[email protected]>2018-05-25 18:12:11 -0700
commit8f89c007b6dec16a1793cb88de88fcc02117bbbc (patch)
tree8fad454a036ae457f9329d884687da84ff2c5746 /tools/perf/util/scripting-engines/trace-event-python.c
parenta73ab244f0dad8fffb3291b905f73e2d3eaa7c00 (diff)
ipc/shm: fix shmat() nil address after round-down when remapping
shmat()'s SHM_REMAP option forbids passing a nil address for; this is in fact the very first thing we check for. Andrea reported that for SHM_RND|SHM_REMAP cases we can end up bypassing the initial addr check, but we need to check again if the address was rounded down to nil. As of this patch, such cases will return -EINVAL. Link: http://lkml.kernel.org/r/20180503204934.kk63josdu6u53fbd@linux-n805 Signed-off-by: Davidlohr Bueso <[email protected]> Reported-by: Andrea Arcangeli <[email protected]> Cc: Joe Lawrence <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions