1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 16:53:58 -05:00
linux/include
Kees Cook 85caa95b9f bug: switch data corruption check to __must_check
The CHECK_DATA_CORRUPTION() macro was designed to have callers do
something meaningful/protective on failure.  However, using "return
false" in the macro too strictly limits the design patterns of callers.
Instead, let callers handle the logic test directly, but make sure that
the result IS checked by forcing __must_check (which appears to not be
able to be used directly on macro expressions).

Link: http://lkml.kernel.org/r/20170206204547.GA125312@beast
Signed-off-by: Kees Cook <keescook@chromium.org>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-02-24 17:46:56 -08:00
..
acpi
asm-generic mm/ksm: handle protnone saved writes when making page write protect 2017-02-24 17:46:56 -08:00
clocksource
crypto
drm Less anger inducing pull request for 4.11 2017-02-23 18:58:18 -08:00
dt-bindings ARM: SoC driver updates 2017-02-23 15:57:04 -08:00
keys
kvm
linux bug: switch data corruption check to __must_check 2017-02-24 17:46:56 -08:00
math-emu
media
memory
misc
net
pcmcia
ras
rdma
rxrpc
scsi
soc
sound
target
trace mm: vmscan: kick flushers when we encounter dirty pages on the LRU 2017-02-24 17:46:54 -08:00
uapi uapi: mqueue.h: add missing linux/types.h include 2017-02-24 17:46:56 -08:00
video
xen
Kbuild