mbox series

[0/2] block: avoid integer overflow of `max-workers` and assert `max_busy_tasks`

Message ID 20211005161157.282396-1-sgarzare@redhat.com (mailing list archive)
Headers show
Series block: avoid integer overflow of `max-workers` and assert `max_busy_tasks` | expand

Message

Stefano Garzarella Oct. 5, 2021, 4:11 p.m. UTC
This series contains a patch that avoids an integer overflow of
`max-workers` (struct BackupPerf) by adding a check and a patch
that asserts this condition where the problem occurs.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2009310
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>

Stefano Garzarella (2):
  block/backup: avoid integer overflow of `max-workers`
  block/aio_task: assert `max_busy_tasks` is greater than 0

 block/aio_task.c | 2 ++
 block/backup.c   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)