aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2019-12-04 16:52:40 -0800
committerLinus Torvalds <[email protected]>2019-12-04 19:44:14 -0800
commit6d13de1489b6bf539695f96d945de3860e6d5e17 (patch)
tree1d7f9e2f577347588bdc4335cc78340b7ea9947b /lib/memory-notifier-error-inject.c
parent5bf8bec3f4ce044a223c40cbce92590d938f0e9c (diff)
uaccess: disallow > INT_MAX copy sizes
As we've done with VFS, string operations, etc, reject usercopy sizes larger than INT_MAX, which would be nice to have for catching bugs related to size calculation overflows[1]. This adds 10 bytes to x86_64 defconfig text and 1980 bytes to the data section: text data bss dec hex filename 19691167 5134320 1646664 26472151 193eed7 vmlinux.before 19691177 5136300 1646664 26474141 193f69d vmlinux.after [1] https://marc.info/?l=linux-s390&m=156631939010493&w=2 Link: http://lkml.kernel.org/r/201908251612.F9902D7A@keescook Signed-off-by: Kees Cook <[email protected]> Suggested-by: Dan Carpenter <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions