locking, fs/locks: Add missing file_sem locks
authorPeter Zijlstra <peterz@infradead.org>
Sat, 8 Oct 2016 08:12:28 +0000 (10:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Oct 2016 10:21:28 +0000 (12:21 +0200)
commit5f43086bb9224987010460dcf3dee68fbd4f574d
treeda735ff3aaa51076a11b84e1e05a89cbc5578253
parent55a76b59b5fef408442e16121faa9eb00a65fd50
locking, fs/locks: Add missing file_sem locks

I overlooked a few code-paths that can lead to
locks_delete_global_locks().

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Bruce Fields <bfields@fieldses.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-fsdevel@vger.kernel.org
Cc: syzkaller <syzkaller@googlegroups.com>
Link: http://lkml.kernel.org/r/20161008081228.GF3142@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/locks.c