Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in DTLS layer #530

Open
OxleyS opened this issue Jun 18, 2024 · 1 comment
Open

Panic in DTLS layer #530

OxleyS opened this issue Jun 18, 2024 · 1 comment

Comments

@OxleyS
Copy link
Contributor

OxleyS commented Jun 18, 2024

One of our servers panicked at this line:

assert!(self.incoming.is_empty());

Unfortunately I don't have a repro or much more information than that. What might be related is every now and then, we get an error like this coming back from Rtc::handle_input():

Dtls(Io(Custom { kind: InvalidData, error: Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 167773415, library: "SSL routines", function: "dtls1_read_bytes", file: "ssl/record/rec_layer_d1.c", line: 613, data: "SSL alert number 255" }]))) } }))

I have not been able to establish whether this is legit data that is getting misprocessed, or just random internet junk.

@algesten
Copy link
Owner

Interesting! On an internet facing server we must of course accept junk. We could probably create a fuzz here which establishes the connection cleanly and then starts sending random UDP gunk maybe mixed with real packets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants