diff options
author | John Ogness <john.ogness@linutronix.de> | 2021-01-24 21:33:28 +0106 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-01-25 10:37:08 +0100 |
commit | 08d60e5999540110576e7c1346d486220751b7f9 (patch) | |
tree | 34dec1b042b178aff436dac062169aec4534fb42 /samples/vfs | |
parent | f0e386ee0c0b71ea6f7238506a4d0965a2dbef11 (diff) | |
download | linux-08d60e5999540110576e7c1346d486220751b7f9.tar.bz2 |
printk: fix string termination for record_print_text()
Commit f0e386ee0c0b ("printk: fix buffer overflow potential for
print_text()") added string termination in record_print_text().
However it used the wrong base pointer for adding the terminator.
This led to a 0-byte being written somewhere beyond the buffer.
Use the correct base pointer when adding the terminator.
Fixes: f0e386ee0c0b ("printk: fix buffer overflow potential for print_text()")
Reported-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210124202728.4718-1-john.ogness@linutronix.de
Diffstat (limited to 'samples/vfs')
0 files changed, 0 insertions, 0 deletions