OSDN Git Service

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)
commitdbdcc906d978650417b076a875b0f962fcdf79dd
tree1d99c196b9488ed82d0154c98ac34dd7933bc76a
parent3f7282139fe1594be464b90141d56738e7a0ea8a
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