Files
twx-linux/kernel
Joe Perches 62fd2fcca3 kernel/sys.c: avoid copying possible padding bytes in copy_to_user
[ Upstream commit 5e1aada08c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:12:30 +02:00
..
2020-08-05 10:06:51 +02:00
2020-09-23 10:46:32 +02:00
…
…
2019-12-01 09:14:03 +01:00
…
…
…
…
…
2020-04-02 16:34:21 +02:00
…
…
…
…
…
…
2020-04-02 16:34:20 +02:00
…
…
…
…
…
…
…
2020-04-24 08:00:38 +02:00
…
…
…
…
2020-01-09 10:17:53 +01:00
…
…
…
…
2020-05-20 08:16:58 +02:00
…
…
…