9p: do not crash on unknown lock status code
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Mon, 29 Dec 2014 13:00:19 +0000 (15:00 +0200)
committerEric Van Hensbergen <ericvh@gmail.com>
Fri, 20 Mar 2015 14:34:41 +0000 (07:34 -0700)
commitb642f7269bd40ae9abe9cff01581b2eb5e2c2287
tree40f638e64883cb5224c1c2c0a6a3c34579c9f737
parentad80492df56b4bd2d4da9990678d87b66af42f54
9p: do not crash on unknown lock status code

Current 9p implementation will crash whole system if sees unknown lock
status code. It's trivial target for DOS: 9p server can produce such
code easily.

Let's fallback more gracefully: warning in dmesg + -ENOLCK.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_file.c