dm ioctl: rate limit a couple of ioctl based error messages
authorColin Ian King <colin.i.king@gmail.com>
Thu, 24 Oct 2024 11:04:31 +0000 (12:04 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 20 Nov 2024 10:38:04 +0000 (11:38 +0100)
commit51f0659f8777fe8ba9feef26e1d34f18edd1687c
tree58615b44bc89d6b4bebb59f0a955585be8c7e56a
parentb0e6210e7e616cdd045492576b92417aebcdde99
dm ioctl: rate limit a couple of ioctl based error messages

It is possible to spam the kernel log with a misbehaving user process that
is passing incorrect dm ioctls to /dev/mapper/control. Use a rate limit
on these error messages to reduce the noise.

These errors were hit when running the stress-ng's device test.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-ioctl.c