public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration
@ 2025-11-10 15:24 Lauri Jakku, CEO Of Paxsudos IT
  2025-11-10 23:55 ` Greg KH
  2025-11-11 20:25 ` Miguel Ojeda
  0 siblings, 2 replies; 7+ messages in thread
From: Lauri Jakku, CEO Of Paxsudos IT @ 2025-11-10 15:24 UTC (permalink / raw)
  To: rust-for-linux

Hello all,

I have been developing a new Secure TCP (STCP) implementation written 
primarily in Rust, designed for kernel-space integration. It provides an 
authenticated and encrypted transport layer that can operate alongside 
or replace traditional TCP, and is implemented as a loadable kernel 
module with Rust userspace hooks.

The project includes:
   - Kernel-side Rust module (out-of-tree)
   - Fully static userspace Rust library
   - Secure handshake and AES-GCM transport
   - C ABI bridge for compatibility

Repository: https://github.com/MiesSuomesta/STCP/tree/main/kernel-module

I would appreciate feedback from the Rust-for-Linux and netdev 
communities on integration strategy and long-term direction.

Regards,
Lauri Jakku / Paxsudos IT

.---<[ Paxsudos IT / Security Screening ]>---------------------------------------------------------------->
| Known viruses: 8708706
| Engine version: 1.4.3
| Scanned directories: 0
| Scanned files: 1
| Infected files: 0
| Data scanned: 0.00 MB
| Data read: 0.00 MB (ratio 0.00:1)
| Time: 19.142 sec (0 m 19 s)
| Start Date: 2025:11:10 19:24:17
| End Date:   2025:11:10 19:24:36
| SPAM hints: []
| SPAM hints: []
| Message not from DMARC.
`-------------------------------------------------------------------->

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration
  2025-11-10 15:24 [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration Lauri Jakku, CEO Of Paxsudos IT
@ 2025-11-10 23:55 ` Greg KH
  2025-11-11 20:25 ` Miguel Ojeda
  1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2025-11-10 23:55 UTC (permalink / raw)
  To: Lauri Jakku, CEO Of Paxsudos IT; +Cc: rust-for-linux

On Mon, Nov 10, 2025 at 05:24:12PM +0200, Lauri Jakku, CEO Of Paxsudos IT wrote:
> Hello all,
> 
> I have been developing a new Secure TCP (STCP) implementation written
> primarily in Rust, designed for kernel-space integration. It provides an
> authenticated and encrypted transport layer that can operate alongside or
> replace traditional TCP, and is implemented as a loadable kernel module with
> Rust userspace hooks.
> 
> The project includes:
>   - Kernel-side Rust module (out-of-tree)
>   - Fully static userspace Rust library
>   - Secure handshake and AES-GCM transport
>   - C ABI bridge for compatibility
> 
> Repository: https://github.com/MiesSuomesta/STCP/tree/main/kernel-module
> 
> I would appreciate feedback from the Rust-for-Linux and netdev communities
> on integration strategy and long-term direction.

Why not just submit patches like any other normal kernel feature/submission?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration
  2025-11-10 15:24 [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration Lauri Jakku, CEO Of Paxsudos IT
  2025-11-10 23:55 ` Greg KH
@ 2025-11-11 20:25 ` Miguel Ojeda
  2025-11-12  4:04   ` Lauri Jakku, CEO Of Paxsudos IT
  1 sibling, 1 reply; 7+ messages in thread
From: Miguel Ojeda @ 2025-11-11 20:25 UTC (permalink / raw)
  To: Lauri Jakku, CEO Of Paxsudos IT; +Cc: rust-for-linux

On Mon, Nov 10, 2025 at 11:27 PM Lauri Jakku, CEO Of Paxsudos IT
<lauri.jakku@paxsudos.fi> wrote:
>
> I would appreciate feedback from the Rust-for-Linux and netdev
> communities on integration strategy and long-term direction.

Sounds good -- I would suggest Cc'ing netdev, since they are the ones
that will decide if they want this. I would also suggest Cc'ing the
relevant maintainers directly, not just the list.

In general, as Greg said, you will likely want to have at least
patches for a prototype that can be applied upstream, i.e. to the
mainline kernel.

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration
  2025-11-11 20:25 ` Miguel Ojeda
@ 2025-11-12  4:04   ` Lauri Jakku, CEO Of Paxsudos IT
  2025-12-22 13:31     ` Lauri Jakku, CEO Of Paxsudos IT
  0 siblings, 1 reply; 7+ messages in thread
From: Lauri Jakku, CEO Of Paxsudos IT @ 2025-11-12  4:04 UTC (permalink / raw)
  To: Miguel Ojeda; +Cc: rust-for-linux

Hi,

   Nice, I'll do just that then. I'll clean up the code for patch 
submission.

--Lauri

Miguel Ojeda kirjoitti 11.11.2025 klo 23.25:
> On Mon, Nov 10, 2025 at 11:27 PM Lauri Jakku, CEO Of Paxsudos IT
> <lauri.jakku@paxsudos.fi> wrote:
>> I would appreciate feedback from the Rust-for-Linux and netdev
>> communities on integration strategy and long-term direction.
> Sounds good -- I would suggest Cc'ing netdev, since they are the ones
> that will decide if they want this. I would also suggest Cc'ing the
> relevant maintainers directly, not just the list.
>
> In general, as Greg said, you will likely want to have at least
> patches for a prototype that can be applied upstream, i.e. to the
> mainline kernel.
>
> Cheers,
> Miguel
> .---<[ Paxsudos IT / Security Screening ]>---------------------------------------------------------------->
> | Known viruses: 8708713
> | Engine version: 1.4.3
> | Scanned directories: 0
> | Scanned files: 1
> | Infected files: 0
> | Data scanned: 0.00 MB
> | Data read: 0.00 MB (ratio 1.00:1)
> | Time: 18.996 sec (0 m 18 s)
> | Start Date: 2025:11:11 22:26:09
> | End Date:   2025:11:11 22:26:28
> | SPAM hints: []
> | SPAM hints: []
> | Message not from DMARC.
> `-------------------------------------------------------------------->
.---<[ Paxsudos IT / Security Screening ]>---------------------------------------------------------------->
| Known viruses: 8708713
| Engine version: 1.4.3
| Scanned directories: 0
| Scanned files: 1
| Infected files: 0
| Data scanned: 0.00 MB
| Data read: 0.00 MB (ratio 1.00:1)
| Time: 22.838 sec (0 m 22 s)
| Start Date: 2025:11:12 06:04:13
| End Date:   2025:11:12 06:04:36
| SPAM hints: []
| SPAM hints: []
| Message not from DMARC.
`-------------------------------------------------------------------->

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration
  2025-11-12  4:04   ` Lauri Jakku, CEO Of Paxsudos IT
@ 2025-12-22 13:31     ` Lauri Jakku, CEO Of Paxsudos IT
       [not found]       ` <c6cdc094-6714-437b-ba37-e3e62667f4aa@paxsudos.fi>
  0 siblings, 1 reply; 7+ messages in thread
From: Lauri Jakku, CEO Of Paxsudos IT @ 2025-12-22 13:31 UTC (permalink / raw)
  To: Miguel Ojeda; +Cc: rust-for-linux

Hi,

   Now i've cleaned the code from warnings, the code now is at:

https://github.com/MiesSuomesta/STCP/tree/main/kernel/OOT/linux


   The STCP module is brand new addition to kernel, and it upgrades any 
ordinary TCP connection to very secure TCP

   connection, just by a protocol number change from IPPROTO_TCP to 
IPPROTO_STCP.


   I've done it for userspace also, but I tought that kernel module is 
more practical and the effort to use the encrypted

   TCP would be minimal, just a change the socket creation from TCP => STCP.


   Next: I'll create patch for submission ..

--Lauri Jakku / Paxsudos IT


Lauri Jakku, CEO Of Paxsudos IT kirjoitti 12.11.2025 klo 6.04:
> Hi,
>
>   Nice, I'll do just that then. I'll clean up the code for patch 
> submission.
>
> --Lauri
>
> Miguel Ojeda kirjoitti 11.11.2025 klo 23.25:
>> On Mon, Nov 10, 2025 at 11:27 PM Lauri Jakku, CEO Of Paxsudos IT
>> <lauri.jakku@paxsudos.fi> wrote:
>>> I would appreciate feedback from the Rust-for-Linux and netdev
>>> communities on integration strategy and long-term direction.
>> Sounds good -- I would suggest Cc'ing netdev, since they are the ones
>> that will decide if they want this. I would also suggest Cc'ing the
>> relevant maintainers directly, not just the list.
>>
>> In general, as Greg said, you will likely want to have at least
>> patches for a prototype that can be applied upstream, i.e. to the
>> mainline kernel.
>>
>> Cheers,
>> Miguel
>> .---<[ Paxsudos IT / Security Screening 
>> ]>---------------------------------------------------------------->
>> | Known viruses: 8708713
>> | Engine version: 1.4.3
>> | Scanned directories: 0
>> | Scanned files: 1
>> | Infected files: 0
>> | Data scanned: 0.00 MB
>> | Data read: 0.00 MB (ratio 1.00:1)
>> | Time: 18.996 sec (0 m 18 s)
>> | Start Date: 2025:11:11 22:26:09
>> | End Date:   2025:11:11 22:26:28
>> | SPAM hints: []
>> | SPAM hints: []
>> | Message not from DMARC.
>> `-------------------------------------------------------------------->
.---<[ Paxsudos IT / Security Screening ]>---------------------------------------------------------------->
| Known viruses: 3626996
| Engine version: 1.4.3
| Scanned directories: 0
| Scanned files: 1
| Infected files: 0
| Data scanned: 0.00 MB
| Data read: 0.00 MB (ratio 0.00:1)
| Time: 12.238 sec (0 m 12 s)
| Start Date: 2025:12:22 15:31:53
| End Date:   2025:12:22 15:32:05
| SPAM hints: []
| SPAM hints: []
| Message not from DMARC.
`-------------------------------------------------------------------->

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] STCP: secure-by-default transport (kernel-level, experimental)
       [not found]         ` <aceecca9-61ae-454f-957f-875c740c0686@lja.fi>
@ 2026-01-02 23:49           ` Jakub Kicinski
       [not found]             ` <ad8f797b-529a-49e2-bcda-a30d0396c1a9@lja.fi>
  0 siblings, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2026-01-02 23:49 UTC (permalink / raw)
  To: Lauri Jakku; +Cc: Miguel Ojeda, rust-for-linux, netdev

On Mon, 22 Dec 2025 20:13:40 +0200 Lauri Jakku wrote:
> STCP is an experimental, TCP-like transport protocol that integrates 
> encryption and authentication directly into the transport layer, instead 
> of layering TLS on top of TCP.
> 
> The motivation is not to replace TCP, TLS, or QUIC for general Internet 
> traffic, but to explore whether *security-by-default at the transport 
> layer* can simplify certain classes of systems—particularly embedded, 
> industrial, and controlled environments—where TLS configuration, 
> certificate management, and user-space complexity are a significant 
> operational burden.

We tend to merge transport crypto protocol support upstream if:
 - HW integration is needed; or
 - some network filesystem/block device needs it.
Otherwise user space is a better place for the implementation.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] STCP: secure-by-default transport (kernel-level, experimental)
       [not found]             ` <ad8f797b-529a-49e2-bcda-a30d0396c1a9@lja.fi>
@ 2026-01-05 23:45               ` Jakub Kicinski
  0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2026-01-05 23:45 UTC (permalink / raw)
  To: Lauri Jakku; +Cc: Miguel Ojeda, rust-for-linux, netdev

On Mon, 5 Jan 2026 17:38:28 +0200 Lauri Jakku wrote:
> Jakub Kicinski kirjoitti 3.1.2026 klo 1.49:
> > On Mon, 22 Dec 2025 20:13:40 +0200 Lauri Jakku wrote:  
> >> STCP is an experimental, TCP-like transport protocol that integrates
> >> encryption and authentication directly into the transport layer, instead
> >> of layering TLS on top of TCP.
> >>
> >> The motivation is not to replace TCP, TLS, or QUIC for general Internet
> >> traffic, but to explore whether *security-by-default at the transport
> >> layer* can simplify certain classes of systems—particularly embedded,
> >> industrial, and controlled environments—where TLS configuration,
> >> certificate management, and user-space complexity are a significant
> >> operational burden.  
> > We tend to merge transport crypto protocol support upstream if:
> >   - HW integration is needed; or
> >   - some network filesystem/block device needs it.
> > Otherwise user space is a better place for the implementation.  
> 
>   I got Nordic Semiconductor contact, that asked if it is upcoming 
> feature for kernel, the need is there (For modem use).

Please come back once it's actually adopted and deployed somewhere.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-05 23:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 15:24 [RFC] Secure TCP (STCP): Rust-based encrypted transport protocol for kernel integration Lauri Jakku, CEO Of Paxsudos IT
2025-11-10 23:55 ` Greg KH
2025-11-11 20:25 ` Miguel Ojeda
2025-11-12  4:04   ` Lauri Jakku, CEO Of Paxsudos IT
2025-12-22 13:31     ` Lauri Jakku, CEO Of Paxsudos IT
     [not found]       ` <c6cdc094-6714-437b-ba37-e3e62667f4aa@paxsudos.fi>
     [not found]         ` <aceecca9-61ae-454f-957f-875c740c0686@lja.fi>
2026-01-02 23:49           ` [RFC] STCP: secure-by-default transport (kernel-level, experimental) Jakub Kicinski
     [not found]             ` <ad8f797b-529a-49e2-bcda-a30d0396c1a9@lja.fi>
2026-01-05 23:45               ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox