]> 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)
commit737c9722d50f27e063bf2aab98edcc1613268218
tree1d99c196b9488ed82d0154c98ac34dd7933bc76a
parent14e152acc210446d7823bf5f118ac3643a4c23f2
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