]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'printk-for-5.11-urgent-fixup' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 25 Jan 2021 18:19:40 +0000 (10:19 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 25 Jan 2021 18:19:40 +0000 (10:19 -0800)
commitd78faef1012f24d8ef4346f4bd3552923d1f7c9a
tree4d95ddea5ee549821b274295ed8038af1c341bdb
parentbb30d010fcc33a6e59b2b501e4ba1a6982895115
parent17559efe2960c0727de58cba984fb8fa88f5e7e7
Merge tag 'printk-for-5.11-urgent-fixup' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux

Pull printk fix from Petr Mladek:
 "The fix of a potential buffer overflow in 5.11-rc5 introduced another
  one. The trailing '\0' might be written up to the message "len" past
  the buffer. Fortunately, it is not that easy to hit.

  Most readers use 1kB buffers for a single message. Typical messages
  fit into the temporary buffer with enough reserve.

  Also readers do not rely on the '\0'. It is related to the previous
  fix. Some readers required the space for the trailing '\0'. We decided
  to write it there to avoid such regressions in the future.

  The most realistic victims are dumpers using kmsg_dump_get_buffer().
  They are filling the entire buffer with as many messages as possible.
  They are typically used when handling panic()"

* tag 'printk-for-5.11-urgent-fixup' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
  printk: fix string termination for record_print_text()