Files
twx-linux/include/linux
Kees Cook 24c792fb7c uaccess: disallow > INT_MAX copy sizes
commit 6d13de1489 upstream.

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 <keescook@chromium.org>
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-04 19:18:42 +01:00
..
2019-09-17 10:27:46 -07:00
2019-09-16 09:56:27 -07:00
2019-12-17 19:56:49 +01:00
2019-12-17 19:55:30 +01:00
2019-11-29 10:10:13 +01:00
2019-09-24 15:54:08 -07:00
2019-10-02 06:36:50 -07:00
2019-12-13 08:42:53 +01:00
2019-12-13 08:43:18 +01:00
2019-11-29 10:10:13 +01:00
2019-10-31 14:01:40 -07:00
2019-09-25 17:51:41 -07:00
2019-10-02 10:06:45 +02:00
2019-10-14 15:04:01 -07:00