Project

General

Profile

Actions

Bug #56522

closed

Do not abort MDS on unknown messages

Added by Greg Farnum almost 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Urgent
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
crash
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Right now, in Server::dispatch(), we abort the MDS if we get a message type we don't understand.

This is horrible: it means that any malicious client can crash the server by just sending a message of a new type to the server! That's a trivial denial of service.
Besides malicious clients, it also means that when there's a protocol issue such as a new client erroneously sending new messages to the server, it crashes the whole system instead of just the new client.

Instead, we'll need to drop the message in a way that makes any kind of sense — perhaps we respond to unknown messages by blacklisting the client and closing the session?


Related issues 3 (0 open3 closed)

Related to CephFS - Bug #56529: ceph-fs crashes on getfattrResolvedXiubo Li

Actions
Copied to CephFS - Backport #57665: pacific: Do not abort MDS on unknown messagesResolvedDhairya ParmarActions
Copied to CephFS - Backport #57666: quincy: Do not abort MDS on unknown messagesResolvedDhairya ParmarActions
Actions

Also available in: Atom PDF