]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
scsi: scsi_debug: num_tgts must be >= 0
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 15 Nov 2019 16:37:27 +0000 (17:37 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:05:10 +0000 (00:05 -0500)
commitf1a0410d6ebc8bc82f6b708e23036fd6a2ba7212
tree8543ea8beb8155e4fa67d57e19d911742f080d57
parentc9172e3415ffae5b66b59d1c04b7717a2d8de266
scsi: scsi_debug: num_tgts must be >= 0

BugLink: https://bugs.launchpad.net/bugs/1860816
[ Upstream commit aa5334c4f3014940f11bf876e919c956abef4089 ]

Passing the parameter "num_tgts=-1" will start an infinite loop that
exhausts the system memory

Link: https://lore.kernel.org/r/20191115163727.24626-1-mlombard@redhat.com
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/scsi_debug.c