1. 15 4月, 2022 3 次提交
  2. 22 2月, 2022 7 次提交
  3. 26 1月, 2022 1 次提交
  4. 26 11月, 2021 2 次提交
  5. 05 10月, 2021 2 次提交
  6. 22 9月, 2021 1 次提交
  7. 14 9月, 2021 7 次提交
  8. 27 7月, 2021 2 次提交
    • J
      tty: drop put_tty_driver · 9f90a4dd
      Jiri Slaby 提交于
      put_tty_driver() is an alias for tty_driver_kref_put(). There is no need
      for two exported identical functions, therefore switch all users of
      old put_tty_driver() to new tty_driver_kref_put() and remove the former
      for good.
      
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
      Cc: Jens Taprogge <jens.taprogge@taprogge.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Scott Branden <scott.branden@broadcom.com>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: David Lin <dtwlin@gmail.com>
      Cc: Johan Hovold <johan@kernel.org>
      Cc: Alex Elder <elder@kernel.org>
      Cc: Jiri Slaby <jirislaby@kernel.org>
      Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: David Sterba <dsterba@suse.com>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: NXP Linux Team <linux-imx@nxp.com>
      Cc: Oliver Neukum <oneukum@suse.com>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Mathias Nyman <mathias.nyman@intel.com>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Acked-by: NAlex Elder <elder@linaro.org>
      Acked-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Acked-by: NMax Filippov <jcmvbkbc@gmail.com>
      Acked-by: NDavid Sterba <dsterba@suse.com>
      Acked-by: NSamuel Iglesias Gonsálvez <siglesias@igalia.com>
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Link: https://lore.kernel.org/r/20210723074317.32690-8-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9f90a4dd
    • J
      tty: stop using alloc_tty_driver · 39b7b42b
      Jiri Slaby 提交于
      alloc_tty_driver was deprecated by tty_alloc_driver in commit
      7f0bc6a6 (TTY: pass flags to alloc_tty_driver) in 2012.
      
      I never got into eliminating alloc_tty_driver until now. So we still
      have two functions for allocating drivers which might be confusing. So
      get rid of alloc_tty_driver uses to eliminate it for good in the next
      patch.
      
      Note we need to switch return value checking as tty_alloc_driver uses
      ERR_PTR. And flags are now a parameter of tty_alloc_driver.
      
      Cc: Richard Henderson <rth@twiddle.net>(odd fixer:ALPHA PORT)
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
      Cc: Jens Taprogge <jens.taprogge@taprogge.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: David Sterba <dsterba@suse.com>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Oliver Neukum <oneukum@suse.com>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Johan Hovold <johan@kernel.org>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Acked-by: NSamuel Iglesias Gonsálvez <siglesias@igalia.com>
      Acked-by: NMax Filippov <jcmvbkbc@gmail.com>
      Acked-by: NDavid Sterba <dsterba@suse.com>
      Acked-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Link: https://lore.kernel.org/r/20210723074317.32690-5-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      39b7b42b
  9. 20 5月, 2021 1 次提交
  10. 14 5月, 2021 1 次提交
    • J
      tty: make tty_operations::chars_in_buffer return uint · fff4ef17
      Jiri Slaby 提交于
      tty_operations::chars_in_buffer is another hook which is expected to
      return values >= 0. So make it explicit by the return type too -- use
      unsigned int.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Acked-By: NAnton Ivanov <anton.ivanov@cambridgegreys.com>
      Acked-by: NDavid Sterba <dsterba@suse.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
      Cc: Jens Taprogge <jens.taprogge@taprogge.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: David Lin <dtwlin@gmail.com>
      Cc: Johan Hovold <johan@kernel.org>
      Cc: Alex Elder <elder@kernel.org>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Oliver Neukum <oneukum@suse.com>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Mathias Nyman <mathias.nyman@intel.com>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Link: https://lore.kernel.org/r/20210505091928.22010-27-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fff4ef17
  11. 13 5月, 2021 6 次提交
    • J
      tty: make tty_operations::write_room return uint · 03b3b1a2
      Jiri Slaby 提交于
      Line disciplines expect a positive value or zero returned from
      tty->ops->write_room (invoked by tty_write_room). So make this
      assumption explicit by using unsigned int as a return value. Both of
      tty->ops->write_room and tty_write_room.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Acked-by: NLaurentiu Tudor <laurentiu.tudor@nxp.com>
      Acked-by: NAlex Elder <elder@linaro.org>
      Acked-by: Max Filippov <jcmvbkbc@gmail.com> # xtensa
      Acked-by: NDavid Sterba <dsterba@suse.com>
      Acked-By: NAnton Ivanov <anton.ivanov@cambridgegreys.com>
      Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
      Cc: Jens Taprogge <jens.taprogge@taprogge.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Scott Branden <scott.branden@broadcom.com>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: David Lin <dtwlin@gmail.com>
      Cc: Johan Hovold <johan@kernel.org>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Oliver Neukum <oneukum@suse.com>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Mathias Nyman <mathias.nyman@intel.com>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Link: https://lore.kernel.org/r/20210505091928.22010-23-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      03b3b1a2
    • J
      tty: no checking of tty_unregister_ldisc · 357a6a87
      Jiri Slaby 提交于
      tty_unregister_ldisc now returns 0 = success. No need to check the
      return value. In fact, the users only warned if an error occured and
      didn't do anything useful anyway -- the ldisc module was unloaded in any
      case.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: William Hubbs <w.d.hubbs@gmail.com>
      Cc: Chris Brannon <chris@the-brannons.com>
      Cc: Kirk Reiser <kirk@reisers.ca>
      Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Rodolfo Giometti <giometti@enneenne.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Link: https://lore.kernel.org/r/20210505091928.22010-19-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      357a6a87
    • J
      tty: make tty_ldisc_ops a param in tty_unregister_ldisc · f81ee8b8
      Jiri Slaby 提交于
      Make tty_unregister_ldisc symmetric to tty_register_ldisc by accepting
      struct tty_ldisc_ops as a parameter instead of ldisc number. This avoids
      checking of the ldisc number bounds in tty_unregister_ldisc.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: William Hubbs <w.d.hubbs@gmail.com>
      Cc: Chris Brannon <chris@the-brannons.com>
      Cc: Kirk Reiser <kirk@reisers.ca>
      Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Rodolfo Giometti <giometti@enneenne.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Link: https://lore.kernel.org/r/20210505091928.22010-17-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f81ee8b8
    • J
      n_gsm: use goto-failpaths in gsm_init · 839e0f22
      Jiri Slaby 提交于
      Use the classic failpath handling using gotos in gsm_init. That way,
      tty_unregister_ldisc needs not be repeated on two places.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Link: https://lore.kernel.org/r/20210505091928.22010-16-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      839e0f22
    • J
      tty: set tty_ldisc_ops::num statically · fbadf70a
      Jiri Slaby 提交于
      There is no reason to pass the ldisc number to tty_register_ldisc
      separately. Just set it in the already defined tty_ldisc_ops in all the
      ldiscs.
      
      This simplifies tty_register_ldisc a bit too (no need to set the num
      member there).
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: William Hubbs <w.d.hubbs@gmail.com>
      Cc: Chris Brannon <chris@the-brannons.com>
      Cc: Kirk Reiser <kirk@reisers.ca>
      Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Rodolfo Giometti <giometti@enneenne.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Link: https://lore.kernel.org/r/20210505091928.22010-15-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fbadf70a
    • J
      tty: make fp of tty_ldisc_ops::receive_buf{,2} const · 0f3dcf3b
      Jiri Slaby 提交于
      Char pointer (cp) passed to tty_ldisc_ops::receive_buf{,2} is const.
      There is no reason for flag pointer (fp) not to be too. So switch it in
      the definition and all uses.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: William Hubbs <w.d.hubbs@gmail.com>
      Cc: Chris Brannon <chris@the-brannons.com>
      Cc: Kirk Reiser <kirk@reisers.ca>
      Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
      Link: https://lore.kernel.org/r/20210505091928.22010-12-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0f3dcf3b
  12. 15 4月, 2021 2 次提交
    • G
      tty: clean include/linux/tty.h up · 5ffa6e34
      Greg Kroah-Hartman 提交于
      There are a lot of tty-core-only functions that are listed in
      include/linux/tty.h.  Move them to drivers/tty/tty.h so that no one else
      can accidentally call them or think that they are public functions.
      
      Cc: Jiri Slaby <jirislaby@kernel.org>
      Link: https://lore.kernel.org/r/20210408125134.3016837-14-gregkh@linuxfoundation.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5ffa6e34
    • H
      tty: n_gsm: check error while registering tty devices · 0a360e8b
      Hillf Danton 提交于
      Add the error path for registering tty devices and roll back in case of error
      in bid to avoid the UAF like the below one reported.
      
      Plus syzbot reported general protection fault in cdev_del() on Sep 24, 2020
      and both cases are down to the kobject_put() in tty_cdev_add().
      
       ------------[ cut here ]------------
       refcount_t: underflow; use-after-free.
       WARNING: CPU: 1 PID: 8923 at lib/refcount.c:28
       refcount_warn_saturate+0x1cf/0x210 -origin/lib/refcount.c:28
       Modules linked in:
       CPU: 1 PID: 8923 Comm: executor Not tainted 5.12.0-rc5+ #8
       Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
       1.13.0-1ubuntu1.1 04/01/2014
       RIP: 0010:refcount_warn_saturate+0x1cf/0x210 -origin/lib/refcount.c:28
       Code: 4f ff ff ff e8 32 fa b5 fe 48 c7 c7 3d f8 f6 86 e8 d6 ab c6 fe
       c6 05 7c 34 67 04 01 48 c7 c7 68 f8 6d 86 31 c0 e8 81 2e 9d fe <0f> 0b
       e9 22 ff ff ff e8 05 fa b5 fe 48 c7 c7 3e f8 f6 86 e8 a9 ab
       RSP: 0018:ffffc90001633c60 EFLAGS: 00010246
       RAX: 15d08b2e34b77800 RBX: 0000000000000003 RCX: ffff88804c056c80
       RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
       RBP: 0000000000000003 R08: ffffffff813767aa R09: 0001ffffffffffff
       R10: 0001ffffffffffff R11: ffff88804c056c80 R12: ffff888040b7d000
       R13: ffff88804c206938 R14: ffff88804c206900 R15: ffff888041b18488
       FS:  00000000022c9940(0000) GS:ffff88807ec00000(0000) knlGS:0000000000000000
       CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
       CR2: 00007f9f9b122008 CR3: 0000000044b4b000 CR4: 0000000000750ee0
       PKRU: 55555554
       Call Trace:
        __refcount_sub_and_test -origin/./include/linux/refcount.h:283 [inline]
        __refcount_dec_and_test -origin/./include/linux/refcount.h:315 [inline]
        refcount_dec_and_test -origin/./include/linux/refcount.h:333 [inline]
        kref_put -origin/./include/linux/kref.h:64 [inline]
        kobject_put+0x17b/0x180 -origin/lib/kobject.c:753
        cdev_del+0x4b/0x50 -origin/fs/char_dev.c:597
        tty_unregister_device+0x99/0xd0 -origin/drivers/tty/tty_io.c:3343
        gsmld_detach_gsm -origin/drivers/tty/n_gsm.c:2409 [inline]
        gsmld_close+0x6c/0x140 -origin/drivers/tty/n_gsm.c:2478
        tty_ldisc_close -origin/drivers/tty/tty_ldisc.c:488 [inline]
        tty_ldisc_kill -origin/drivers/tty/tty_ldisc.c:636 [inline]
        tty_ldisc_release+0x1b6/0x400 -origin/drivers/tty/tty_ldisc.c:809
        tty_release_struct+0x19/0xb0 -origin/drivers/tty/tty_io.c:1714
        tty_release+0x9ad/0xa00 -origin/drivers/tty/tty_io.c:1885
        __fput+0x260/0x4e0 -origin/fs/file_table.c:280
        ____fput+0x11/0x20 -origin/fs/file_table.c:313
        task_work_run+0x8e/0x110 -origin/kernel/task_work.c:140
        tracehook_notify_resume -origin/./include/linux/tracehook.h:189 [inline]
        exit_to_user_mode_loop -origin/kernel/entry/common.c:174 [inline]
        exit_to_user_mode_prepare+0x16b/0x1a0 -origin/kernel/entry/common.c:208
        __syscall_exit_to_user_mode_work -origin/kernel/entry/common.c:290 [inline]
        syscall_exit_to_user_mode+0x20/0x40 -origin/kernel/entry/common.c:301
        do_syscall_64+0x45/0x80 -origin/arch/x86/entry/common.c:56
        entry_SYSCALL_64_after_hwframe+0x44/0xae
      
      Reported-by: syzbot+c49fe6089f295a05e6f8@syzkaller.appspotmail.com
      Reported-and-tested-by: NHao Sun <sunhao.th@gmail.com>
      Signed-off-by: NHillf Danton <hdanton@sina.com>
      Link: https://lore.kernel.org/r/20210412035758.1974-1-hdanton@sina.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0a360e8b
  13. 07 4月, 2021 1 次提交
  14. 10 3月, 2021 4 次提交