diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-10-29 10:10:43 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-08 09:08:31 (GMT) |
commit | ffb76bb8aa9e18e97b40cd60f9cb0670cc1b8096 (patch) | |
tree | 8cbd4718cf6ca7195fca0705fc56c6675294a28d /fs/udf | |
parent | c778c8187e442f6f5d111ae41c4730e265dcf084 (diff) | |
download | linux-ffb76bb8aa9e18e97b40cd60f9cb0670cc1b8096.tar.xz |
ALSA: seq: Fix nested rwsem annotation for lockdep splat
commit 1f20f9ff57ca23b9f5502fca85ce3977e8496cb1 upstream.
syzkaller reported the lockdep splat due to the possible deadlock of
grp->list_mutex of each sequencer client object. Actually this is
rather a false-positive report due to the missing nested lock
annotations. The sequencer client may deliver the event directly to
another client which takes another own lock.
For addressing this issue, this patch replaces the simple down_read()
with down_read_nested(). As a lock subclass, the already existing
"hop" can be re-used, which indicates the depth of the call.
Reference: http://lkml.kernel.org/r/089e082686ac9b482e055c832617@google.com
Reported-by: syzbot <bot+7feb8de6b4d6bf810cf098bef942cc387e79d0ad@syzkaller.appspotmail.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/udf')
0 files changed, 0 insertions, 0 deletions