Here is a single tty kgdb fix for 5.3-rc4.
 
 It fixes an annoying log message that has caused kdb to become useless.
 It's another fallout from ddde3c18b7 ("vt: More locking checks") which
 tries to enforce locking checks more strictly in the tty layer,
 unfortunatly when kdb is stopped, there's no need for locks :)
 
 This patch has been linux-next for a while with no reported issues
 
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 -----BEGIN PGP SIGNATURE-----
 
 iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCXU6sCg8cZ3JlZ0Brcm9h
 aC5jb20ACgkQMUfUDdst+ykBNwCgwbxPP9bmqcyCW+0gx3SfpHAxAAYAn19DGKgV
 o5Es4DDBbXkspoW7ck7D
 =dcGv
 -----END PGP SIGNATURE-----

Merge tag 'tty-5.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull tty fix from Greg KH:
 "Here is a single tty kgdb fix for 5.3-rc4.

  It fixes an annoying log message that has caused kdb to become
  useless. It's another fallout from commit ddde3c18b7 ("vt: More
  locking checks") which tries to enforce locking checks more strictly
  in the tty layer, unfortunatly when kdb is stopped, there's no need
  for locks :)

  This patch has been linux-next for a while with no reported issues"

* tag 'tty-5.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
  kgdboc: disable the console lock when in kgdb
This commit is contained in:
Linus Torvalds 2019-08-10 12:17:12 -07:00
Родитель 15fa98e40e 81eaadcae8
Коммит c13f86701e
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -277,10 +277,14 @@ static void kgdboc_pre_exp_handler(void)
/* Increment the module count when the debugger is active */ /* Increment the module count when the debugger is active */
if (!kgdb_connected) if (!kgdb_connected)
try_module_get(THIS_MODULE); try_module_get(THIS_MODULE);
atomic_inc(&ignore_console_lock_warning);
} }
static void kgdboc_post_exp_handler(void) static void kgdboc_post_exp_handler(void)
{ {
atomic_dec(&ignore_console_lock_warning);
/* decrement the module count when the debugger detaches */ /* decrement the module count when the debugger detaches */
if (!kgdb_connected) if (!kgdb_connected)
module_put(THIS_MODULE); module_put(THIS_MODULE);