]> git.baikalelectronics.ru Git - kernel.git/commit
dm ioctl: log an error if the ioctl structure is corrupted
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 20 Mar 2022 21:12:46 +0000 (17:12 -0400)
committerMike Snitzer <snitzer@kernel.org>
Fri, 1 Apr 2022 14:29:43 +0000 (10:29 -0400)
commitf6b510e4afea82eefc4372d2e8668049c645253f
tree1d99c196b9488ed82d0154c98ac34dd7933bc76a
parent5a82643f0023c1f281833d32fd48eea3ba087259
dm ioctl: log an error if the ioctl structure is corrupted

This will help triage bugs when userspace is passing invalid ioctl
structure to the kernel.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
[snitzer: log errors using DMERR instead of DMWARN]
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-ioctl.c