diff options
author | Joe Perches <joe@perches.com> | 2019-12-05 03:50:53 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-05 06:44:12 +0300 |
commit | 5e1aada08cd19ea652b2d32a250501d09b02ff2e (patch) | |
tree | b0722199d6d1f1b432a237e47f02cbb150f89dfa /include/asm-generic/bitops | |
parent | ef70eff9dea66f38f8c2c2dcc7fe4b7a2bbb4921 (diff) | |
download | linux-5e1aada08cd19ea652b2d32a250501d09b02ff2e.tar.xz |
kernel/sys.c: avoid copying possible padding bytes in copy_to_user
Initialization is not guaranteed to zero padding bytes so use an
explicit memset instead to avoid leaking any kernel content in any
possible padding bytes.
Link: http://lkml.kernel.org/r/dfa331c00881d61c8ee51577a082d8bebd61805c.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Dan Carpenter <error27@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic/bitops')
0 files changed, 0 insertions, 0 deletions