linux/include
Peter Zijlstra 643fd0b9f5 perf: Fix perf_event_open(.flags) test
Vince noticed that we test the (unsigned long) flags field against an
(unsigned int) constant. This would allow setting the high bits on 64bit
platforms and not get an error.

There is nothing that uses the high bits, so it should be entirely
harmless, but we don't want userspace to accidentally set them anyway,
so fix the constants.

Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140423102254.GL11096@twins.programming.kicks-ass.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2014-05-19 21:52:59 +09:00
..
acpi
asm-generic - vexpress platform clocks initialisation moved earlier following the 2014-05-04 14:34:50 -07:00
clocksource
crypto
drm Merge branch 'drm-next-3.15-wip' of git://people.freedesktop.org/~deathsimple/linux into drm-next 2014-04-19 11:16:02 +10:00
dt-bindings dt: tegra: remove non-existent clock IDs 2014-04-24 15:37:08 +02:00
keys
kvm
linux Merge branch 'perf/urgent' into perf/core, to avoid conflicts 2014-05-07 13:39:22 +02:00
math-emu
media
memory
misc
net vsock: Make transport the proto owner 2014-05-05 13:13:50 -04:00
pcmcia
ras
rdma
rxrpc
scsi
sound
target
trace Fix: tracing: use 'E' instead of 'X' for unsigned module tain flag 2014-04-23 13:56:51 +09:30
uapi perf: Fix perf_event_open(.flags) test 2014-05-19 21:52:59 +09:00
video
xen
Kbuild