linux-stable/fs/dlm
Alexander Aring 1323c3eb50 fs: dlm: handle -EBUSY first in lock arg validation
commit 44637ca41d upstream.

During lock arg validation, first check for -EBUSY cases, then for
-EINVAL cases. The -EINVAL checks look at lkb state variables
which are not stable when an lkb is busy and would cause an
-EBUSY result, e.g. lkb->lkb_grmode.

Cc: stable@vger.kernel.org
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 13:16:55 +02:00
..
ast.c fs: dlm: fix race between test_bit() and queue_work() 2022-10-26 13:16:55 +02:00
ast.h
config.c fs: dlm: fix memory leak when fenced 2021-07-20 16:17:33 +02:00
config.h dlm: add log_info config option 2016-06-21 09:04:24 -05:00
debug_fs.c fs: dlm: fix debugfs dump 2021-05-22 10:57:35 +02:00
dir.c dlm: use INFO for recovery messages 2014-02-14 11:54:44 -06:00
dir.h
dlm_internal.h dlm: remove BUG() before panic() 2020-06-25 15:41:52 +02:00
Kconfig
lock.c fs: dlm: handle -EBUSY first in lock arg validation 2022-10-26 13:16:55 +02:00
lock.h dlm: adopt orphan locks 2014-11-19 14:48:02 -06:00
lockspace.c dlm: Fix kobject memleak 2020-08-21 09:48:13 +02:00
lockspace.h
lowcomms.c fs: dlm: cancel work sync othercon 2021-07-20 16:17:33 +02:00
lowcomms.h
lvb_table.h
main.c dlm: audit and remove any unnecessary uses of module.h 2016-10-19 11:00:03 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
member.c dlm: fix possible call to kfree() for non-initialized pointer 2019-12-17 20:37:41 +01:00
member.h
memory.c dlm: NULL check before kmem_cache_destroy is not needed 2019-12-17 20:38:17 +01:00
memory.h
midcomms.c
midcomms.h
netlink.c dlm for 4.10 2016-12-14 08:31:37 -08:00
plock.c dlm: fix plock invalid read 2022-06-14 16:53:52 +02:00
rcom.c dlm: fix missing endian conversion of rcom_status flags 2014-10-14 15:11:48 -05:00
rcom.h
recover.c dlm: use INFO for recovery messages 2014-02-14 11:54:44 -06:00
recover.h
recoverd.c dlm: use INFO for recovery messages 2014-02-14 11:54:44 -06:00
recoverd.h
requestqueue.c
requestqueue.h
user.c dlm: fix invalid cluster name warning 2019-12-17 20:38:33 +01:00
user.h
util.c
util.h