android_kernel_samsung_a7y1.../arch
Yihui ZENG 7747a0a8db s390/cmm: fix information leak in cmm_timeout_handler()
commit b8e51a6a9db94bc1fb18ae831b3dab106b5a4b5f upstream.

The problem is that we were putting the NUL terminator too far:

	buf[sizeof(buf) - 1] = '\0';

If the user input isn't NUL terminated and they haven't initialized the
whole buffer then it leads to an info leak.  The NUL terminator should
be:

	buf[len - 1] = '\0';

Signed-off-by: Yihui Zeng <yzeng56@asu.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[heiko.carstens@de.ibm.com: keep semantics of how *lenp and *ppos are handled]
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 09:28:26 +02:00
..
alpha A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
arc ARC: export "abort" for modules 2020-04-06 21:37:11 +02:00
arm ARM: dts: am4372: Set memory bandwidth limit for DISPC 2020-04-07 09:24:06 +02:00
arm64 arch:arm64:mm: fix errors 2020-04-07 11:52:03 +05:30
avr32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
blackfin A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
c6x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cris A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
frv A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
h8300 h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- 2020-04-06 14:21:05 +02:00
hexagon A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ia64 ia64:unwind: fix double free for mod->arch.init_unw_table 2020-04-07 07:38:19 +02:00
m32r A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m68k bug.h: work around GCC PR82365 in BUG() 2020-04-06 19:20:52 +02:00
metag A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
microblaze A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips MIPS: fw: sni: Fix out of bounds init of o32 stack 2020-04-07 09:27:50 +02:00
mn10300 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nios2 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
openrisc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
parisc parisc: Fix vmap memory leak in ioremap()/iounmap() 2020-04-07 09:26:56 +02:00
powerpc powerpc/powernv: Restrict OPAL symbol map to only be readable by root 2020-04-07 08:07:44 +02:00
s390 s390/cmm: fix information leak in cmm_timeout_handler() 2020-04-07 09:28:26 +02:00
score A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sh sh: kernel: hw_breakpoint: Fix missing break in switch statement 2020-04-06 20:39:52 +02:00
sparc bug.h: work around GCC PR82365 in BUG() 2020-04-06 19:20:52 +02:00
tile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
um um: Silence lockdep complaint about mmap_sem 2020-04-06 20:06:20 +02:00
unicore32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
x86 efi/x86: Do not clean dummy variable in kexec path 2020-04-07 09:27:44 +02:00
xtensa xtensa: drop EXPORT_SYMBOL for outs*/ins* 2020-04-07 09:26:54 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30