summaryrefslogtreecommitdiffstats
path: root/lib/btree.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2014-12-29 14:00:19 +0100
committerEric Van Hensbergen <ericvh@gmail.com>2015-03-20 15:34:41 +0100
commitb642f7269bd40ae9abe9cff01581b2eb5e2c2287 (patch)
tree40f638e64883cb5224c1c2c0a6a3c34579c9f737 /lib/btree.c
parent9p: fix error handling in v9fs_file_do_lock (diff)
downloadlinux-b642f7269bd40ae9abe9cff01581b2eb5e2c2287.tar.xz
linux-b642f7269bd40ae9abe9cff01581b2eb5e2c2287.zip
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>
Diffstat (limited to 'lib/btree.c')
0 files changed, 0 insertions, 0 deletions