quininer / ktls

[deprecated] Linux Kernel TLS for Rust.
MIT License
7 stars 1 forks source link

test failed #3

Closed chuanshan-ali closed 5 years ago

chuanshan-ali commented 5 years ago

Using the ubuntu 18.04, sudo modprobe tls and cargo test

test test_tls12 ... FAILED

failures:

---- test_tls12 stdout ----
thread 'test_tls12' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 92, kind: Other, message: "Protocol not available" }', src/libcore/result.rs:999:5
quininer commented 5 years ago

It's working for me. can you print modinfo tls?

Screenshot_20190822_103851

Anyway, I don't have much energy to play this project. I think using zero-copy tcp + io uring + userspace tls is a better direction.

chuanshan-ali commented 5 years ago

image

Agree, and playing KTLS just for a research.

quininer commented 5 years ago

It has no signature, is this your own compiled kernel module? I am using the Linux 5.2.8 kernel for ArchLinux and it works fine.

chuanshan-ali commented 5 years ago

No, the kernel is provided in ubuntu 18.04. I tried on Manjaro with 4.19 and pass all tests. I don't know what is the problem with ubuntu...

quininer commented 5 years ago

This may be because linux 4.15 does not support TLS RX. It is provided in linux 4.17.

chuanshan-ali commented 5 years ago

Yeah, sudo apt install linux-image-5.0.0-* also solve the problem. Thanks