]> www.infradead.org Git - users/dwmw2/linux.git/commit
dm: eliminate potential source of excessive kernel log noise
authorMike Snitzer <snitzer@redhat.com>
Wed, 6 Jan 2021 23:19:05 +0000 (18:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2021 14:48:44 +0000 (15:48 +0100)
commit9189a71746ecbd842246c88a9404f211984d7bb9
tree4d2676491cebcded16c3cb993c4035ae6367dce8
parente7ee3b992a46d04d024b3a5b5f230b847e9a3123
dm: eliminate potential source of excessive kernel log noise

commit 0378c625afe80eb3f212adae42cc33c9f6f31abf upstream.

There wasn't ever a real need to log an error in the kernel log for
ioctls issued with insufficient permissions. Simply return an error
and if an admin/user is sufficiently motivated they can enable DM's
dynamic debugging to see an explanation for why the ioctls were
disallowed.

Reported-by: Nir Soffer <nsoffer@redhat.com>
Fixes: e980f62353c6 ("dm: don't allow ioctls to targets that don't map to whole devices")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm.c